Package Details: krathalans-apparmor-profiles-git r701.91207c1-1

Git Clone URL: https://aur.archlinux.org/krathalans-apparmor-profiles-git.git (read-only, click to copy)
Package Base: krathalans-apparmor-profiles-git
Description: Krathalan's apparmor profiles for desktop and server software (Firefox, nginx, postfix, and more)
Upstream URL: https://github.com/krathalan/apparmor-profiles
Licenses: GPL3
Submitter: krathalan
Maintainer: krathalan
Last Packager: krathalan
Votes: 3
Popularity: 0.150666
First Submitted: 2021-05-09 04:41 (UTC)
Last Updated: 2024-04-05 05:07 (UTC)

Dependencies (1)

Required by (0)

Sources (2)

Latest Comments

swm commented on 2023-06-01 14:44 (UTC)

@krathalan: Thank you. That makes things easier.

krathalan commented on 2023-05-31 22:59 (UTC)

@swm

Not all profiles contain such an include rule. (Should they?)

Yes, they should! Sorry, I have just pushed a new commit for all profiles and child profiles to have an include if exists <local/profilename> line.

swm commented on 2023-05-29 21:40 (UTC)

@krathalan Sorry for the very late reply - I forgot to enable email notifications for this AUR package.

@swm files in /etc/apparmor.d/ are not meant to be edited. You should be using /etc/apparmor.d/local to make changes.

Not all profiles contain such an include rule. (Should they?) For example, /etc/apparmor.d/NetworkManager doesn't, but I need it to give access to some user certificate files, among others. So I added the include if exists <local/NetworkManager>.

For other profiles, I make larger changes, where it makes sense for me to see the diff with a .pacnew on updates. Currently I'm solving both by having a copy of the relevant profiles in my home and doing a vimdiff with those after an update.

krathalan commented on 2022-08-30 14:55 (UTC)

@swm files in /etc/apparmor.d/ are not meant to be edited. You should be using /etc/apparmor.d/local to make changes.

swm commented on 2022-08-22 18:30 (UTC)

@krathalan It would be cool if you could mark the /etc/apparmor.d/ files in the package as config files for backup, so local changes won't be overwritten on package updates. These lines at the end of package() (based on the apparmor package) do the trick:

  # adding files below /etc/apparmor.d to backup array
  cd "$pkgdir"
  # trick extract_function_variable() in makepkg into not detecting the
  # backup array modification and adding remaining configuration files
  true && backup=( $(find "etc/apparmor.d/" -type f | LC_ALL=C sort) )

With just backup=... in the last line you get multiple "find: 'etc/apparmor.d/': No such file or directory" errors when building the package, but with the trick (true && backup=...) it works without errors.

krathalan commented on 2021-10-28 20:01 (UTC)

@GraysonPeddie the error message tells you what the problem is: "unknown public key C0F9AEE56E47D174"

You have to get my GPG key first in order to check the repo against it. You can do so with the command:

$ gpg --recv-keys C0F9AEE56E47D174

You may need to change your keyserver if the default one isn't working. See https://wiki.archlinux.org/title/GnuPG#Key_servers

GraysonPeddie commented on 2021-10-28 13:12 (UTC)

Package integrity cannot be verified.

pacaur -S krathalans-apparmor-profiles-git
:: Package krathalans-apparmor-profiles-git not found in repositories, trying AUR...
:: resolving dependencies...
:: looking for inter-conflicts...

AUR Packages  (1) krathalans-apparmor-profiles-git-latest  

:: Proceed with installation? [Y/n] y
:: Retrieving package(s)...
clone complete: /home/ldapusers/gpadmin/.cache/pacaur/krathalans-apparmor-profiles-git
:: View krathalans-apparmor-profiles-git PKGBUILD? [Y/n] y
:: krathalans-apparmor-profiles-git PKGBUILD viewed
:: Checking krathalans-apparmor-profiles-git integrity...
==> Making package: krathalans-apparmor-profiles-git r612.26170ff-1 (Thu 28 Oct 2021 09:05:14 AM EDT)
==> Retrieving sources...
  -> Cloning krathalans-apparmor-profiles-git git repo...
Cloning into bare repository '/home/ldapusers/gpadmin/.cache/pacaur/krathalans-apparmor-profiles-git/krathalans-apparmor-profiles-git'...
remote: Enumerating objects: 3314, done.
remote: Counting objects: 100% (3314/3314), done.
remote: Compressing objects: 100% (1009/1009), done.
remote: Total 3314 (delta 2483), reused 3127 (delta 2301), pack-reused 0
Receiving objects: 100% (3314/3314), 705.19 KiB | 589.00 KiB/s, done.
Resolving deltas: 100% (2483/2483), done.
  -> Found 99-apparmor-profiles.hook
==> Validating source files with sha256sums...
    krathalans-apparmor-profiles-git ... Skipped
    99-apparmor-profiles.hook ... Skipped
==> Verifying source file signatures with gpg...
    krathalans-apparmor-profiles-git git repo ... FAILED (unknown public key C0F9AEE56E47D174)
==> ERROR: One or more PGP signatures could not be verified!
:: Preparing krathalans-apparmor-profiles-git...
==> Making package: krathalans-apparmor-profiles-git r612.26170ff-1 (Thu 28 Oct 2021 09:05:16 AM EDT)
==> WARNING: Skipping dependency checks.
==> Retrieving sources...
  -> Updating krathalans-apparmor-profiles-git git repo...
Fetching origin
  -> Found 99-apparmor-profiles.hook
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Creating working copy of krathalans-apparmor-profiles-git git repo...
Cloning into 'krathalans-apparmor-profiles-git'...
done.
==> Starting pkgver()...
==> Updated version: krathalans-apparmor-profiles-git r632.b4683be-1
==> Sources are ready.
:: failed to verify integrity or prepare krathalans-apparmor-profiles-git package