mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-20 08:55:34 +01:00
parent
5938079dfd
commit
cdc10fdb31
20 changed files with 64 additions and 16 deletions
|
@ -35,7 +35,7 @@ profile akonadi_indexing_agent @{exec_path} {
|
|||
|
||||
owner @{user_config_dirs}/akonadi_indexing_agentrc r,
|
||||
owner @{user_config_dirs}/akonadi/#[0-9]* rw,
|
||||
owner @{user_config_dirs}/akonadi/agent_config_akonadi_indexing_agent{,.*} rwlk,
|
||||
owner @{user_config_dirs}/akonadi/agent_config_akonadi_indexing_agent* rwlk,
|
||||
owner @{user_config_dirs}/akonadi/akonadiconnectionrc r,
|
||||
owner @{user_config_dirs}/kdedefaults/kdeglobals r,
|
||||
owner @{user_config_dirs}/kdedefaults/kwinrc r,
|
||||
|
|
|
@ -130,6 +130,7 @@ profile firefox @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
@{bin}/{,ba,da}sh rix,
|
||||
@{bin}/basename rix,
|
||||
@{bin}/expr rix,
|
||||
|
||||
@{firefox_lib_dirs}/{,**} r,
|
||||
@{firefox_lib_dirs}/*.so mr,
|
||||
|
@ -212,13 +213,16 @@ profile firefox @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
/tmp/ r,
|
||||
/var/tmp/ r,
|
||||
owner /tmp/@{firefox_name}/ rw,
|
||||
owner /tmp/@{firefox_name}/* rwk,
|
||||
owner /tmp/* rw,
|
||||
owner /tmp/firefox_*/ rw,
|
||||
owner /tmp/firefox_*/* rwk,
|
||||
owner /tmp/@{firefox_name}/ rw,
|
||||
owner /tmp/@{firefox_name}/* rwk,
|
||||
owner /tmp/mozilla_*/ rw,
|
||||
owner /tmp/mozilla_*/* rw,
|
||||
owner /tmp/MozillaBackgroundTask-*-removeDirectory/ rw,
|
||||
owner /tmp/MozillaBackgroundTask-*-removeDirectory/** rwk,
|
||||
owner /tmp/Mozillato-be-removed-cachePurge-* k,
|
||||
owner /tmp/Temp-*/ rw,
|
||||
|
||||
@{run}/mount/utab r,
|
||||
|
@ -240,6 +244,8 @@ profile firefox @{exec_path} flags=(attach_disconnected) {
|
|||
@{sys}/devices/system/cpu/present r,
|
||||
@{sys}/fs/cgroup/cpu,cpuacct/cpu.cfs_quota_us r,
|
||||
|
||||
owner @{sys}/fs/cgroup/user.slice/user-@{uid}.slice/user@@{uid}.service/background.slice/*/cpu.max r,
|
||||
|
||||
@{PROC}/@{pid}/net/arp r,
|
||||
@{PROC}/@{pid}/net/if_inet6 r,
|
||||
@{PROC}/@{pid}/net/route r,
|
||||
|
|
|
@ -173,8 +173,12 @@ profile pulseaudio @{exec_path} {
|
|||
|
||||
@{run}/systemd/users/@{uid} r,
|
||||
|
||||
@{run}/udev/data/+pci* r,
|
||||
@{run}/udev/data/+sound:card[0-9]* r, # For sound
|
||||
@{run}/udev/data/c116:[0-9]* r, # for ALSA
|
||||
@{run}/udev/data/c23[4-9]:[0-9]* r, # For dynamic assignment range 234 to 254
|
||||
@{run}/udev/data/c24[0-9]:[0-9]* r,
|
||||
@{run}/udev/data/c25[0-4]:[0-9]* r,
|
||||
|
||||
@{sys}/class/sound/ r,
|
||||
@{sys}/devices/**/sound/**/{uevent,pcm_class} r,
|
||||
|
|
|
@ -30,6 +30,7 @@ profile xdg-settings @{exec_path} {
|
|||
|
||||
@{bin}/dbus-launch rCx -> dbus,
|
||||
@{bin}/dbus-send rCx -> dbus,
|
||||
@{bin}/kreadconfig5 rPx,
|
||||
@{bin}/xdg-mime rPx,
|
||||
@{bin}/xprop rPx,
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@ profile xrdb @{exec_path} {
|
|||
owner /tmp/xauth-[0-9]*-_[0-9] r,
|
||||
|
||||
@{run}/sddm/\{@{uuid}\} r,
|
||||
@{run}/sddm/xauth_?????? r,
|
||||
|
||||
# file_inherit
|
||||
owner /dev/tty[0-9]* rw,
|
||||
|
|
|
@ -16,6 +16,7 @@ profile xset @{exec_path} {
|
|||
owner @{HOME}/.Xauthority r,
|
||||
|
||||
@{run}/sddm/\{@{uuid}\} r,
|
||||
@{run}/sddm/xauth_?????? r,
|
||||
|
||||
# file_inherit
|
||||
owner /dev/tty[0-9]* rw,
|
||||
|
|
|
@ -24,8 +24,8 @@ profile xsetroot @{exec_path} {
|
|||
owner @{user_share_dirs}/sddm/xorg-session.log w,
|
||||
|
||||
@{run}/sddm/\{@{uuid}\} r,
|
||||
@{run}/user/@{uid}/xauth_* rl,
|
||||
@{run}/sddm/xauth_?????? r,
|
||||
@{run}/user/@{uid}/xauth_* rl,
|
||||
|
||||
include if exists <local/xsetroot>
|
||||
}
|
||||
|
|
|
@ -9,6 +9,8 @@ include <tunables/global>
|
|||
@{exec_path} = @{lib}/kactivitymanagerd
|
||||
profile kactivitymanagerd @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/freedesktop.org>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/qt5>
|
||||
include <abstractions/X-strict>
|
||||
|
||||
|
@ -26,6 +28,7 @@ profile kactivitymanagerd @{exec_path} {
|
|||
owner @{user_config_dirs}/kactivitymanagerdrc.lock rwk,
|
||||
|
||||
owner @{user_share_dirs}/kactivitymanagerd/{,**} rwlk,
|
||||
owner @{user_share_dirs}/RecentDocuments/*.desktop w,
|
||||
|
||||
@{PROC}/sys/kernel/core_pattern r,
|
||||
@{PROC}/sys/kernel/random/boot_id r,
|
||||
|
|
|
@ -11,6 +11,7 @@ profile kalendarac @{exec_path} {
|
|||
include <abstractions/base>
|
||||
include <abstractions/dri-common>
|
||||
include <abstractions/dri-enumerate>
|
||||
include <abstractions/fonts>
|
||||
include <abstractions/freedesktop.org>
|
||||
include <abstractions/mesa>
|
||||
include <abstractions/nameservice-strict>
|
||||
|
|
|
@ -15,7 +15,8 @@ profile kcminit @{exec_path} {
|
|||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{bin}/xrdb rPx,
|
||||
@{bin}/xrdb rPx,
|
||||
@{bin}/xsetroot rPx,
|
||||
|
||||
/usr/share/icu/[0-9]*.[0-9]*/*.dat r,
|
||||
/usr/share/hwdata/pnp.ids r,
|
||||
|
|
|
@ -13,6 +13,7 @@ profile kded5 @{exec_path} {
|
|||
include <abstractions/consoles>
|
||||
include <abstractions/dconf-write>
|
||||
include <abstractions/dri-common>
|
||||
include <abstractions/dri-enumerate>
|
||||
include <abstractions/fonts>
|
||||
include <abstractions/freedesktop.org>
|
||||
include <abstractions/gtk>
|
||||
|
@ -38,22 +39,23 @@ profile kded5 @{exec_path} {
|
|||
|
||||
@{exec_path} mr,
|
||||
|
||||
@{lib}/kf5/kconf_update rPx,
|
||||
@{lib}/utempter/utempter rPx,
|
||||
@{bin}/kcminit rPx,
|
||||
@{bin}/pgrep rCx -> pgrep,
|
||||
@{bin}/setxkbmap rix,
|
||||
@{bin}/xsettingsd rPx,
|
||||
@{lib}/kf5/kconf_update rPx,
|
||||
@{lib}/utempter/utempter rPx,
|
||||
|
||||
/usr/share/hwdata/*.ids r,
|
||||
/usr/share/icu/[0-9]*.[0-9]*/*.dat r,
|
||||
/usr/share/kconf_update/ r,
|
||||
/usr/share/kded5/{,**} r,
|
||||
/usr/share/kf5/kcookiejar/* r,
|
||||
/usr/share/khotkeys/{,**} r,
|
||||
/usr/share/knotifications5/{,**} r,
|
||||
/usr/share/kservices5/{,**} r,
|
||||
/usr/share/kservicetypes5/{,**} r,
|
||||
/usr/share/mime/ r,
|
||||
/usr/share/kconf_update/ r,
|
||||
|
||||
/etc/fstab r,
|
||||
/etc/machine-id r,
|
||||
|
@ -74,28 +76,39 @@ profile kded5 @{exec_path} {
|
|||
owner @{user_config_dirs}/gtk-{3,4}.0/{,**} rwl,
|
||||
owner @{user_config_dirs}/kcminputrc r,
|
||||
owner @{user_config_dirs}/kconf_updaterc r,
|
||||
owner @{user_config_dirs}/kded5rc* rwl,
|
||||
owner @{user_config_dirs}/kcookiejarrc r,
|
||||
owner @{user_config_dirs}/kdebugrc r,
|
||||
owner @{user_config_dirs}/kded5rc.lock rwk,
|
||||
owner @{user_config_dirs}/kded5rc* rwl,
|
||||
owner @{user_config_dirs}/kdedefaults/{,**} r,
|
||||
owner @{user_config_dirs}/kdeglobals r,
|
||||
owner @{user_config_dirs}/khotkeysrc.lock rwk,
|
||||
owner @{user_config_dirs}/khotkeysrc* rwl,
|
||||
owner @{user_config_dirs}/kioslaverc r,
|
||||
owner @{user_config_dirs}/ktimezonedrc r,
|
||||
owner @{user_config_dirs}/kwinrc* rwl,
|
||||
owner @{user_config_dirs}/kwinrc.lock rwk,
|
||||
owner @{user_config_dirs}/kwinrc* rwl,
|
||||
owner @{user_config_dirs}/kxkbrc r,
|
||||
owner @{user_config_dirs}/libaccounts-glib/ rw,
|
||||
owner @{user_config_dirs}/libaccounts-glib/accounts.db{,-shm,-wal,-journal} rwk,
|
||||
owner @{user_config_dirs}/menus/ r,
|
||||
owner @{user_config_dirs}/menus/applications-merged/ r,
|
||||
owner @{user_config_dirs}/plasma-nm r,
|
||||
owner @{user_config_dirs}/touchpadrc r,
|
||||
owner @{user_config_dirs}/xsettingsd/{,**} rw,
|
||||
|
||||
owner @{user_share_dirs}/icc/{,edid-*} r,
|
||||
owner @{user_share_dirs}/kded5/{,**} r,
|
||||
owner @{user_share_dirs}/kscreen/{,**} rw,
|
||||
owner @{user_share_dirs}/kcookiejar/#*[0-9] rw,
|
||||
owner @{user_share_dirs}/kcookiejar/cookies rw,
|
||||
owner @{user_share_dirs}/kcookiejar/cookies.?????? rwlk,
|
||||
owner @{user_share_dirs}/kded5/{,**} rw,
|
||||
owner @{user_share_dirs}/kscreen/{,**} rwl,
|
||||
owner @{user_share_dirs}/ktp/cache.db rwk,
|
||||
owner @{user_share_dirs}/kcookiejar/#@{hex}* rw,
|
||||
owner @{user_share_dirs}/kcookiejar/cookies.* rwkl,
|
||||
owner @{user_share_dirs}/remoteview/ r,
|
||||
owner @{user_share_dirs}/services5/{,**} r,
|
||||
|
||||
owner @{run}/user/@{uid}/#[0-9]* rw,
|
||||
owner @{run}/user/@{uid}/gvfs/ r,
|
||||
owner @{run}/user/@{uid}/kded5*kioworker.socket rwl,
|
||||
|
||||
owner /tmp/plasma-csd-generator.??????/{,**} rw,
|
||||
|
|
|
@ -16,6 +16,7 @@ profile kioslave5 @{exec_path} {
|
|||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/openssl>
|
||||
include <abstractions/qt5>
|
||||
include <abstractions/ssl_certs>
|
||||
include <abstractions/trash>
|
||||
|
||||
network inet dgram,
|
||||
|
@ -23,7 +24,9 @@ profile kioslave5 @{exec_path} {
|
|||
network inet stream,
|
||||
network inet6 stream,
|
||||
network netlink raw,
|
||||
network netlink dgram,
|
||||
|
||||
signal (receive) set=term peer=firefox-kmozillahelper,
|
||||
signal (receive) set=term peer=plasmashell,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
|
|
@ -96,6 +96,7 @@ profile kscreenlocker-greet @{exec_path} {
|
|||
@{sys}/devices/system/node/node[0-9]*/meminfo r,
|
||||
|
||||
@{PROC}/@{pid}/cmdline r,
|
||||
@{PROC}/@{pid}/loginuid r,
|
||||
@{PROC}/@{pid}/mounts r,
|
||||
@{PROC}/sys/kernel/core_pattern r,
|
||||
owner @{PROC}/@{pid}/loginuid r,
|
||||
|
|
|
@ -145,10 +145,10 @@ profile plasmashell @{exec_path} flags=(mediate_deleted) {
|
|||
owner @{user_share_dirs}/plasma/plasmoids/{,**} r,
|
||||
owner @{user_share_dirs}/user-places.xbel r,
|
||||
|
||||
@{run}/user/@{uid}/gvfs/ r,
|
||||
owner @{run}/user/@{uid}/#[0-9]* rw,
|
||||
owner @{run}/user/@{uid}/kdesud_:1 w,
|
||||
owner @{run}/user/@{uid}/plasmashell??????.[0-9].kioworker.socket rwl,
|
||||
owner @{run}/user/@{uid}/gvfs/ r,
|
||||
owner @{run}/user/@{uid}/pulse/ rw,
|
||||
|
||||
@{sys}/bus/ r,
|
||||
|
|
|
@ -9,6 +9,7 @@ include <tunables/global>
|
|||
@{exec_path} = @{bin}/xembedsniproxy
|
||||
profile xembedsniproxy @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/fonts>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/qt5>
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@ profile aa-notify @{exec_path} {
|
|||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/python>
|
||||
|
||||
capability setgid,
|
||||
capability setuid,
|
||||
capability sys_ptrace,
|
||||
|
||||
ptrace (read),
|
||||
|
@ -24,10 +26,14 @@ profile aa-notify @{exec_path} {
|
|||
/etc/apparmor/*.conf r,
|
||||
/etc/inputrc r,
|
||||
|
||||
/usr/share/terminfo/x/xterm-256color r,
|
||||
/usr/etc/inputrc.keys r,
|
||||
/usr/share/terminfo/d/dumb r,
|
||||
/usr/share/terminfo/x/xterm r,
|
||||
/usr/share/terminfo/x/xterm-256color r,
|
||||
|
||||
/var/log/audit/audit.log r,
|
||||
|
||||
owner @{HOME}/.inputrc r,
|
||||
owner @{HOME}/.terminfo/[0-9]*/dumb r,
|
||||
|
||||
owner /tmp/[a-z0-9]* rw,
|
||||
|
|
|
@ -31,7 +31,9 @@ profile agetty @{exec_path} {
|
|||
/{etc,run,lib,usr/lib}/issue.d/{,*} r,
|
||||
/etc/inittab r,
|
||||
/etc/login.defs r,
|
||||
/etc/login.defs.d/ r,
|
||||
/etc/os-release r,
|
||||
/usr/etc/login.defs r,
|
||||
|
||||
@{run}/resolvconf/resolv.conf r,
|
||||
owner @{run}/agetty.reload rw,
|
||||
|
|
|
@ -14,6 +14,7 @@ profile augenrules @{exec_path} {
|
|||
@{exec_path} mr,
|
||||
|
||||
@{bin}/auditctl rPx,
|
||||
@{bin}/cat rix,
|
||||
@{bin}/chmod rix,
|
||||
@{bin}/cmp rix,
|
||||
@{bin}/cp rix,
|
||||
|
|
|
@ -42,6 +42,7 @@ profile kmod @{exec_path} flags=(attach_disconnected) {
|
|||
/usr/src/*/*.ko r,
|
||||
/var/lib/dkms/**/module/*.ko r,
|
||||
/var/lib/dpkg/triggers/* r,
|
||||
/var/lib/ebtables/lock r,
|
||||
/var/tmp/dracut.*/{,**} rw,
|
||||
owner /boot/System.map-* r,
|
||||
owner /tmp/mkinitcpio.*/{,**} rw,
|
||||
|
|
|
@ -21,6 +21,7 @@ profile os-prober @{exec_path} flags=(attach_disconnected) {
|
|||
@{bin}/{,ba,da}sh rix,
|
||||
@{bin}/{e,f,}grep rix,
|
||||
@{bin}/blkid rPx,
|
||||
@{bin}/cat rix,
|
||||
@{bin}/cut rix,
|
||||
@{bin}/dmraid rPUx,
|
||||
@{bin}/find rix,
|
||||
|
@ -34,6 +35,7 @@ profile os-prober @{exec_path} flags=(attach_disconnected) {
|
|||
@{bin}/lvm rPx,
|
||||
@{bin}/mkdir rix,
|
||||
@{bin}/mktemp rix,
|
||||
@{bin}/multipath rPUx,
|
||||
@{bin}/readlink rix,
|
||||
@{bin}/rm rix,
|
||||
@{bin}/rmdir rix,
|
||||
|
|
Loading…
Add table
Reference in a new issue