Add rules for xdg-* profiles.

This commit is contained in:
Alexandre Pujol 2021-04-01 23:54:41 +01:00
parent 6044e403e7
commit c35f793ba1
Failed to generate hash of commit
4 changed files with 11 additions and 1 deletions

View file

@ -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>
} }

View file

@ -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,

View file

@ -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>

View file

@ -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,