feat(profiles): general update.

This commit is contained in:
Alexandre Pujol 2023-05-07 20:34:00 +01:00
parent b740a1c3e6
commit 526dcc3252
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
14 changed files with 29 additions and 9 deletions

View file

@ -157,6 +157,7 @@ profile gnome-session-binary @{exec_path} flags=(attach_disconnected) {
/{usr/,}bin/aa-notify rPx,
/{usr/,}bin/baloo_file rPx,
@{libexec}/baloo_file rPx,
/{usr/,}bin/blueman-applet rPx,
/{usr/,}bin/firewall-applet rPUx,
/{usr/,}bin/gnome-keyring-daemon rPx,

View file

@ -7,7 +7,7 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{libexec}/tracker-extract-3
profile tracker-extract @{exec_path} {
profile tracker-extract @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/dbus-session-strict>
include <abstractions/dconf-write>

View file

@ -40,6 +40,7 @@ profile mullvad-daemon @{exec_path} flags=(attach_disconnected) {
"/opt/Mullvad VPN/resources/*" r,
/etc/mullvad-vpn/{,*} r,
/etc/mullvad-vpn/@{uid} rw,
/etc/mullvad-vpn/*.json rw,
@{etc_rw}/resolv.conf rw,
@{etc_rw}/resolv.conf.mullvadbackup rw,

View file

@ -27,6 +27,7 @@ profile ssh @{exec_path} {
/{usr/,}bin/{,b,d,rb}ash rix,
/{usr/,}bin/{c,k,tc,z}sh rix,
@{etc_ro}/ssh/ssh_config r,
@{etc_ro}/ssh/sshd_config r,
@{etc_ro}/ssh/sshd_config.d/{,*} r,

View file

@ -7,16 +7,24 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/systemd-machine-id-setup
profile systemd-machine-id-setup @{exec_path} {
profile systemd-machine-id-setup @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/consoles>
capability dac_override,
capability setgid,
capability setuid,
capability sys_admin,
capability sys_chroot,
ptrace (read),
mount /,
umount /etc/machine-id,
@{exec_path} mr,
/ r,
/etc/machine-id rw,
/etc/ r,
/var/ r,
@ -25,6 +33,7 @@ profile systemd-machine-id-setup @{exec_path} {
@{PROC}/cmdline r,
@{PROC}/sys/kernel/osrelease r,
owner @{PROC}/@{pid}/stat r,
owner @{PROC}/@{pid}/setgroups r,
include if exists <local/systemd-machine-id-setup>
}

View file

@ -18,7 +18,11 @@ profile systemd-sleep-grub @{exec_path} {
/etc/sysconfig/bootloader r,
/var/lib/nscd/passwd r,
@{PROC}/@{pid}/maps r,
/dev/tty rw,
include if exists <local/systemd-sleep-grub>
}