mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
Add rules for xdg-* profiles.
This commit is contained in:
parent
6044e403e7
commit
c35f793ba1
4 changed files with 11 additions and 1 deletions
|
@ -13,6 +13,9 @@ profile xdg-email @{exec_path} flags=(complain) {
|
||||||
|
|
||||||
@{exec_path} r,
|
@{exec_path} r,
|
||||||
/{usr/,}bin/{,ba,da}sh rix,
|
/{usr/,}bin/{,ba,da}sh rix,
|
||||||
|
/{usr/,}bin/sed rix,
|
||||||
|
|
||||||
|
owner /dev/tty[0-9]* rw,
|
||||||
|
|
||||||
include if exists <local/xdg-email>
|
include if exists <local/xdg-email>
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,6 +25,7 @@ profile xdg-mime @{exec_path} {
|
||||||
/{usr/,}bin/sed rix,
|
/{usr/,}bin/sed rix,
|
||||||
/{usr/,}bin/uname rix,
|
/{usr/,}bin/uname rix,
|
||||||
/{usr/,}bin/file rix,
|
/{usr/,}bin/file rix,
|
||||||
|
/{usr/,}bin/tr rix,
|
||||||
|
|
||||||
/{usr/,}bin/mimetype rPx,
|
/{usr/,}bin/mimetype rPx,
|
||||||
/{usr/,}bin/xprop rPx,
|
/{usr/,}bin/xprop rPx,
|
||||||
|
@ -46,6 +47,8 @@ profile xdg-mime @{exec_path} {
|
||||||
|
|
||||||
owner @{run}/user/[0-9]*/ r,
|
owner @{run}/user/[0-9]*/ r,
|
||||||
|
|
||||||
|
/dev/tty rw,
|
||||||
|
|
||||||
# For shell pwd
|
# For shell pwd
|
||||||
owner @{HOME}/ r,
|
owner @{HOME}/ r,
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ profile xdg-open @{exec_path} {
|
||||||
|
|
||||||
# file_inherit
|
# file_inherit
|
||||||
/dev/dri/card[0-9]* rw,
|
/dev/dri/card[0-9]* rw,
|
||||||
|
/dev/tty rw,
|
||||||
|
|
||||||
profile dbus {
|
profile dbus {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
|
|
|
@ -45,9 +45,13 @@ profile xdg-settings @{exec_path} {
|
||||||
|
|
||||||
/etc/xdg/xfce4/helpers.rc r,
|
/etc/xdg/xfce4/helpers.rc r,
|
||||||
owner @{user_config_dirs}/xfce4/helpers.rc{,.*} rw,
|
owner @{user_config_dirs}/xfce4/helpers.rc{,.*} rw,
|
||||||
|
owner @{user_share_dirs}/applications/ r,
|
||||||
|
owner @{user_share_dirs}/applications/*.desktop r,
|
||||||
|
|
||||||
owner @{HOME}/.Xauthority r,
|
owner @{HOME}/.Xauthority r,
|
||||||
|
|
||||||
|
/usr/share/terminfo/x/xterm-256color r,
|
||||||
|
/usr/share/applications/ r,
|
||||||
/var/lib/dbus/machine-id r,
|
/var/lib/dbus/machine-id r,
|
||||||
/etc/machine-id r,
|
/etc/machine-id r,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue