usr.bin.gpg (1403B)
- # Copyright 2020 Haelwenn (lanodan) Monnier <contact+apparmor.d@hacktivis.me>
- # Distributed under the terms of the GNU General Public License v2
- #include <tunables/global>
- profile /usr/bin/gpg{,2} flags=(complain) {
- #include <abstractions/base>
- #include <abstractions/consoles>
- /{,**} rw,
- /usr/bin/gpg{,2} mr,
- /dev/tty rw,
- /usr/bin/gpg-agent mrix,
- /usr/libexec/scdaemon mrcx,
- /usr/bin/pinentry-qt mrcx,
- @{HOME}/.gnupg/{,**} mrwkl,
- audit deny @{HOME}/.ssh/{,**} mrwkl,
- audit deny @{HOME}/.mozilla/{,**} mrwkl,
- audit deny @{HOME}/.config/{,**} mrwkl,
- audit deny @{HOME}/.mutt** mrwkl,
- audit deny @{HOME}/.viminfo** mrwkl,
- signal receive peer=/usr/bin/gpg{,2}///usr/libexec/scdaemon,
- network,
- profile /usr/libexec/scdaemon {
- #include <abstractions/base>
- /usr/libexec/scdaemon mr,
- @{HOME}/.gnupg/S.scdaemon mrwk,
- @{HOME}/.gnupg/reader_*.status mrwk,
- signal send peer=/usr/bin/gpg{,2},
- @{PROC}/@{pid}/task/** rw,
- @{PROC}/@{pid}/mountinfo rw,
- /dev/ r,
- /dev/bus/usb/{,**} rw,
- /sys/bus/ r,
- /sys/bus/usb/{,**} rw,
- /sys/devices/{,**} r,
- /etc/udev/udev.conf r,
- /run/udev/data/** r,
- /sys/class/ r,
- }
- profile /usr/bin/pinentry-qt {
- #include <abstractions/base>
- #include <abstractions/X>
- #include <abstractions/wayland>
- #include <abstractions/fonts>
- #include <abstractions/mesa>
- #include <abstractions/qt5>
- /usr/bin/pinentry-qt mr,
- }
- }