update apparmor profiles

This commit is contained in:
Alexandre Pujol 2021-10-22 15:41:13 +01:00
parent 6c34573727
commit 7da59b4984
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
18 changed files with 122 additions and 6 deletions

View file

@ -49,6 +49,9 @@ profile gajim @{exec_path} {
/{usr/,}bin/gpgconf rCx -> gpg,
/{usr/,}bin/gpgsm rCx -> gpg,
/{usr/,}bin/ccache rCx -> ccache,
/{usr/,}bin/{,@{multiarch}-}ld.bfd rCx -> ccache,
# External apps
/{usr/,}bin/xdg-settings rPx,
/{usr/,}lib/firefox/firefox rPx,
@ -98,6 +101,27 @@ profile gajim @{exec_path} {
deny /usr/share/gajim/** w,
profile ccache {
include <abstractions/base>
include <abstractions/consoles>
/{usr/,}bin/ccache mr,
/{usr/,}lib/llvm-[0-9]*/bin/clang rix,
/{usr/,}bin/{,@{multiarch}-}gcc-[0-9]* rix,
/{usr/,}bin/{,@{multiarch}-}g++-[0-9]* rix,
/{usr/,}bin/{,@{multiarch}-}ld.bfd rix,
/{usr/,}lib/gcc/@{multiarch}/[0-9]*/collect2 rix,
owner /tmp/cc* rw,
owner /tmp/tmp* rw,
/media/ccache/*/** rw,
/etc/debian_version r,
}
profile gpg {
include <abstractions/base>

View file

@ -52,6 +52,14 @@ profile git @{exec_path} {
/{usr/,}bin/cat rix,
/{usr/,}bin/dirname rix,
owner @{BUILD_DIR}/*/.repo/repo/hooks/* rwix,
/{usr/,}bin/mv rix,
/{usr/,}bin/whoami rix,
/{usr/,}bin/hostname rix,
/{usr/,}bin/rm rix,
/{usr/,}bin/cat rix,
/{usr/,}bin/date rix,
/{usr/,}bin/pager rPx -> child-pager,
/{usr/,}bin/less rPx -> child-pager,
/{usr/,}bin/more rPx -> child-pager,
@ -71,7 +79,7 @@ profile git @{exec_path} {
/{usr/,}bin/vim rCx -> editor,
/{usr/,}bin/vim.* rCx -> editor,
owner @{HOME}/.gitconfig rw,
owner @{HOME}/.gitconfig r,
owner @{user_config_dirs}/git/{,*} rw,
/usr/share/git-core/{,**} r,

View file

@ -20,6 +20,8 @@ profile iw @{exec_path} {
@{exec_path} mr,
@{sys}/devices/pci[0-9]*/**/ieee80211/phy[0-9]*/index r,
# file_inherit
owner /dev/tty[0-9]* rw,