mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
Update profiles.
This commit is contained in:
parent
cb6344c64f
commit
2372188d8e
@ -8,5 +8,14 @@
|
||||
owner @{HOME}/@{XDG_VIDEOS_DIR}/{,**} r,
|
||||
owner @{HOME}/@{XDG_PROJECTS_DIR}/{,**} r,
|
||||
owner @{HOME}/@{XDG_BOOKS_DIR}/{,**} r,
|
||||
owner @{HOME}/@{XDG_WALLPAPERS_DIR}/{,**} r,
|
||||
|
||||
owner @{MOUNTS}/*/@{XDG_DOCUMENTS_DIR}/{,**} r,
|
||||
owner @{MOUNTS}/*/@{XDG_MUSIC_DIR}/{,**} r,
|
||||
owner @{MOUNTS}/*/@{XDG_PICTURES_DIR}/{,**} r,
|
||||
owner @{MOUNTS}/*/@{XDG_VIDEOS_DIR}/{,**} r,
|
||||
owner @{MOUNTS}/*/@{XDG_PROJECTS_DIR}/{,**} r,
|
||||
owner @{MOUNTS}/*/@{XDG_BOOKS_DIR}/{,**} r,
|
||||
owner @{MOUNTS}/*/@{XDG_WALLPAPERS_DIR}/{,**} r,
|
||||
|
||||
include if exists <abstractions/user-read.d>
|
@ -35,11 +35,18 @@ profile gdm-xsession @{exec_path} {
|
||||
owner @{run}/user/@{uid}/dconf/ rw,
|
||||
owner @{run}/user/@{uid}/dconf/user rw,
|
||||
|
||||
# file_inherit
|
||||
/dev/tty rw,
|
||||
/dev/tty[0-9]* rw,
|
||||
|
||||
profile dbus {
|
||||
include <abstractions/base>
|
||||
|
||||
/{usr/,}bin/dbus-update-activation-environment mr,
|
||||
|
||||
# file_inherit
|
||||
/dev/tty rw,
|
||||
/dev/tty[0-9]* rw,
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
}
|
||||
|
||||
|
@ -26,5 +26,7 @@ profile gnome-calculator-search-provider @{exec_path} {
|
||||
|
||||
owner @{PROC}/@{pid}/fd/ r,
|
||||
|
||||
owner @{run}/user/@{uid}/gdm/Xauthority r,
|
||||
|
||||
include if exists <local/gnome-calculator-search-provider>
|
||||
}
|
||||
|
@ -21,5 +21,7 @@ profile gnome-control-center-search-provider @{exec_path} {
|
||||
owner @{run}/user/@{uid}/dconf/ rw,
|
||||
owner @{run}/user/@{uid}/dconf/user rw,
|
||||
|
||||
owner @{run}/user/@{uid}/gdm/Xauthority r,
|
||||
|
||||
include if exists <local/gnome-control-center-search-provider>
|
||||
}
|
@ -31,9 +31,10 @@ profile gnome-shell @{exec_path} flags=(attach_disconnected) {
|
||||
ptrace (read),
|
||||
|
||||
signal (receive) set=(term, hup) peer=gdm*,
|
||||
signal (send) set=(usr1) peer=ibus-daemon,
|
||||
signal (send) set=(kill) peer=unconfined,
|
||||
signal (send) set=(term) peer=polkit*,
|
||||
signal (send) set=(term) peer=xwayland,
|
||||
signal (send) set=(usr1) peer=ibus-daemon,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
|
@ -40,5 +40,7 @@ profile tracker-miner @{exec_path} {
|
||||
owner @{run}/user/@{uid}/dconf/ rw,
|
||||
owner @{run}/user/@{uid}/dconf/user rw,
|
||||
|
||||
@{run}/mount/utab r,
|
||||
|
||||
include if exists <local/tracker-miner>
|
||||
}
|
||||
|
@ -9,9 +9,9 @@ include <tunables/global>
|
||||
@{exec_path} = /{usr/,}bin/reflector
|
||||
profile reflector @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/python>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/openssl>
|
||||
include <abstractions/python>
|
||||
include <abstractions/ssl_certs>
|
||||
|
||||
network inet dgram,
|
||||
|
@ -42,6 +42,7 @@ profile systemd-logind @{exec_path} flags=(complain) {
|
||||
@{run}/udev/data/c13:[0-9]* r, # for /dev/input/*
|
||||
@{run}/udev/data/c116:[0-9]* r, # for ALSA
|
||||
@{run}/udev/data/c226:[0-9]* r, # for /dev/dri/card*
|
||||
@{run}/udev/data/c237:[0-9]* r,
|
||||
@{run}/udev/data/c238:[0-9]* r,
|
||||
|
||||
@{run}/udev/data/+input* r, # for mouse, keyboard, touchpad
|
||||
|
@ -12,6 +12,7 @@ profile gtk-query-immodules @{exec_path} {
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}lib/gtk-{3,4}.0/**/immodules.cache w,
|
||||
/{usr/,}lib/gtk-{3,4}.0/**/immodules.cache.[0-9A-Z]* w,
|
||||
|
||||
# Silencer
|
||||
|
@ -13,6 +13,7 @@ profile start-pulseaudio-x11 @{exec_path} {
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}bin/{,ba,da}sh rix,
|
||||
/{usr/,}bin/pactl rPx,
|
||||
|
||||
/dev/tty rw,
|
||||
|
||||
|
@ -18,7 +18,7 @@ profile xhost @{exec_path} {
|
||||
owner @{run}/user/@{uid}/gdm/Xauthority r,
|
||||
|
||||
# file_inherit
|
||||
owner /dev/tty[0-9]* rw,
|
||||
/dev/tty[0-9]* rw,
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
|
||||
include if exists <local/xhost>
|
||||
|
Loading…
Reference in New Issue
Block a user