mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(profile): cleanup xsession logs.
This commit is contained in:
parent
4b4e14b1d6
commit
c2d786200f
@ -12,14 +12,15 @@
|
||||
/usr/share/xsessions/{,*.desktop} r, # Available Xsessions
|
||||
|
||||
/etc/X11/cursors/{,**} r,
|
||||
|
||||
owner @{HOME}/.ICEauthority r, # ICEauthority files required for X authentication, per user
|
||||
owner @{HOME}/.Xauthority r, # Xauthority files required for X connections, per user
|
||||
|
||||
|
||||
owner @{HOME}/.ICEauthority rw, # ICEauthority files required for X authentication, per user
|
||||
owner @{HOME}/.Xauthority rw, # Xauthority files required for X connections, per user
|
||||
owner @{HOME}/.xsession-errors rw,
|
||||
|
||||
/tmp/.ICE-unix/* rw,
|
||||
/tmp/.X@{int}-lock rw,
|
||||
/tmp/.X11-unix/* rw,
|
||||
owner @{tmp}/xauth_@{rand6} rl -> /tmp/#@{int},
|
||||
owner @{tmp}/xauth_@{rand6} rl -> @{tmp}/#@{int},
|
||||
|
||||
owner @{run}/user/@{uid}/.mutter-Xwaylandauth.@{rand6} rw, # Xwayland
|
||||
owner @{run}/user/@{uid}/gdm{[1-9],}/Xauthority r,
|
||||
|
@ -68,8 +68,6 @@ profile lightdm @{exec_path} flags=(attach_disconnected) {
|
||||
/var/log/lightdm/{,**} rw,
|
||||
|
||||
owner @{HOME}/.dmrc r,
|
||||
owner @{HOME}/.Xauthority rw,
|
||||
owner @{HOME}/.xsession-errors{,.old} rw,
|
||||
|
||||
@{run}/faillock/ rw,
|
||||
@{run}/faillock/user rwk,
|
||||
|
@ -63,8 +63,6 @@ profile x11-xsession @{exec_path} {
|
||||
/etc/profile.d/*.sh r,
|
||||
/etc/X11/{,**} r,
|
||||
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
|
||||
owner @{tmp}/file* rw,
|
||||
owner @{tmp}/tmp.@{rand10} rw,
|
||||
|
||||
|
@ -115,7 +115,6 @@ profile pulseaudio @{exec_path} {
|
||||
|
||||
# file_inherit
|
||||
owner /dev/tty@{int} rw,
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
|
||||
include if exists <local/pulseaudio>
|
||||
}
|
||||
|
@ -15,8 +15,6 @@ profile xhost @{exec_path} {
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
|
||||
/dev/tty@{int} rw,
|
||||
|
||||
# Silencer
|
||||
|
@ -63,7 +63,6 @@ profile xorg @{exec_path} flags=(attach_disconnected) {
|
||||
/etc/X11/{,**} r,
|
||||
|
||||
owner @{HOME}/ r,
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
|
||||
owner @{user_share_dirs}/xorg/ rw,
|
||||
owner @{user_share_dirs}/xorg/Xorg.@{int}.log{,.old} rw,
|
||||
@ -84,7 +83,7 @@ profile xorg @{exec_path} flags=(attach_disconnected) {
|
||||
/tmp/ r,
|
||||
/tmp/server-@{int}.xkm rw,
|
||||
owner @{tmp}/.tX@{int}-lock rwk,
|
||||
owner @{tmp}/.X@{int}-lock rwkl -> /tmp/.tX@{int}-lock,
|
||||
owner @{tmp}/.X@{int}-lock rwkl -> @{tmp}/.tX@{int}-lock,
|
||||
owner @{tmp}/server-* rwk,
|
||||
owner @{tmp}/serverauth.* r,
|
||||
|
||||
|
@ -20,17 +20,11 @@ profile xsetroot @{exec_path} {
|
||||
|
||||
/usr/share/icons/{,**} r,
|
||||
|
||||
/etc/X11/cursors/*.theme r,
|
||||
|
||||
owner @{HOME}/.icons/** r,
|
||||
owner @{HOME}/.Xauthority r,
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
|
||||
owner @{user_share_dirs}/sddm/xorg-session.log w,
|
||||
owner @{user_share_dirs}/sddm/wayland-session.log w,
|
||||
|
||||
owner @{tmp}/xauth_@{rand6} r,
|
||||
|
||||
@{run}/sddm/\{@{uuid}\} r,
|
||||
@{run}/user/@{uid}/xauth_@{rand6} rl,
|
||||
@{run}/sddm/xauth_@{rand6} r,
|
||||
|
@ -67,7 +67,6 @@ profile kscreenlocker_greet @{exec_path} {
|
||||
/var/lib/dbus/machine-id r,
|
||||
|
||||
owner @{HOME}/.face.icon r,
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
owner @{user_pictures_dirs}/{,**} r,
|
||||
|
||||
owner @{user_cache_dirs}/ rw,
|
||||
|
@ -13,8 +13,6 @@ profile xfpm-power-backlight-helper @{exec_path} {
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
|
||||
@{sys}/class/backlight/ r,
|
||||
@{sys}/class/leds/ r,
|
||||
@{sys}/devices/@{pci}/backlight/**/{max_brightness,actual_brightness} r,
|
||||
|
@ -167,7 +167,6 @@ profile thunderbird @{exec_path} {
|
||||
|
||||
# file_inherit
|
||||
owner /dev/tty@{int} rw,
|
||||
owner @{HOME}/.xsession-errors w,
|
||||
|
||||
# Silencer
|
||||
deny @{HOME}/.mozilla/** mrwkl,
|
||||
|
Loading…
Reference in New Issue
Block a user