Add AppArmor profiles for addpkg and delpkg scripts
This commit is contained in:
17
misc/apparmor/usr.bin.addpkg
Normal file
17
misc/apparmor/usr.bin.addpkg
Normal file
@ -0,0 +1,17 @@
|
||||
#include <tunables/global>
|
||||
|
||||
/usr/bin/addpkg {
|
||||
#include <abstractions/base>
|
||||
#include <abstractions/bash>
|
||||
#include <abstractions/python>
|
||||
|
||||
/usr/bin/repo-add Ux,
|
||||
|
||||
/etc/pacman.conf r,
|
||||
/etc/pacman.d/ r,
|
||||
/etc/pacman.d/** r,
|
||||
/home/*/{Packages,Projects} r,
|
||||
/home/*/{Packages,Projects}/** rw,
|
||||
/var/cache/pacman/ r,
|
||||
/var/cache/pacman/** rw,
|
||||
}
|
17
misc/apparmor/usr.bin.delpkg
Normal file
17
misc/apparmor/usr.bin.delpkg
Normal file
@ -0,0 +1,17 @@
|
||||
#include <tunables/global>
|
||||
|
||||
/usr/bin/delpkg {
|
||||
#include <abstractions/base>
|
||||
#include <abstractions/bash>
|
||||
#include <abstractions/python>
|
||||
|
||||
/usr/bin/repo-remove Ux,
|
||||
|
||||
/etc/pacman.conf r,
|
||||
/etc/pacman.d/ r,
|
||||
/etc/pacman.d/** r,
|
||||
/home/*/{Packages,Projects} r,
|
||||
/home/*/{Packages,Projects}/** rw,
|
||||
/var/cache/pacman/ r,
|
||||
/var/cache/pacman/** rw,
|
||||
}
|
Reference in New Issue
Block a user