feat(profiles): general update.

This commit is contained in:
Alexandre Pujol 2023-11-11 22:02:47 +00:00
parent 02115a194b
commit f0a2cb3897
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
9 changed files with 26 additions and 21 deletions

View File

@ -56,6 +56,7 @@
network netlink raw,
@{lib_dirs}/{,**} r,
@{lib_dirs}/*.so* mr,
@{lib_dirs}/chrome_crashpad_handler rPx,
@{lib_dirs}/chrome-sandbox rPx,

View File

@ -39,7 +39,8 @@ profile gnome-extension-manager @{exec_path} {
/usr/share/themes/{,**} r,
/usr/share/X11/xkb/{,**} r,
@{PROC}/sys/net/ipv6/conf/all/disable_ipv6 r,
@{PROC}/sys/net/ipv6/conf/all/disable_ipv6 r,
owner @{PROC}/@{pid}/cmdline r,
# Silencer
deny owner @{user_share_dirs}/gvfs-metadata/{,*} r,

View File

@ -9,11 +9,10 @@ include <tunables/global>
@{exec_path} = @{lib}/systemd/systemd-binfmt
profile systemd-binfmt @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/systemd-common>
capability net_admin,
ptrace (read) peer=unconfined,
@{exec_path} mr,
@{bin}/* r,
@ -23,12 +22,8 @@ profile systemd-binfmt @{exec_path} flags=(attach_disconnected) {
@{run}/binfmt.d/{,*.conf} r,
/usr/lib/binfmt.d/{,*.conf} r,
@{PROC}/1/environ r,
@{PROC}/cmdline r,
@{PROC}/sys/fs/binfmt_misc/register w,
@{PROC}/sys/fs/binfmt_misc/status w,
@{PROC}/sys/kernel/osrelease r,
owner @{PROC}/@{pid}/stat r,
@{PROC}/sys/fs/binfmt_misc/register w,
@{PROC}/sys/fs/binfmt_misc/status w,
/dev/tty@{int} rw,
/dev/pts/@{int} rw,

View File

@ -7,7 +7,7 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/auditctl
profile auditctl @{exec_path} {
profile auditctl @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
capability audit_control,

View File

@ -7,22 +7,23 @@ abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/augenrules
profile augenrules @{exec_path} {
profile augenrules @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/nameservice-strict>
@{exec_path} mr,
@{bin}/auditctl rPx,
@{bin}/cat rix,
@{bin}/chmod rix,
@{bin}/cmp rix,
@{bin}/cp rix,
@{bin}/{,g,m}awk rix,
@{bin}/{,e,f}grep rix,
@{bin}/ls rix,
@{bin}/mktemp rix,
@{bin}/rm rix,
@{bin}/{,ba,da}sh rix,
@{bin}/{,e,f}grep rix,
@{bin}/{,g,m}awk rix,
@{bin}/auditctl rPx,
@{bin}/cat rix,
@{bin}/chmod rix,
@{bin}/cmp rix,
@{bin}/cp rix,
@{bin}/ls rix,
@{bin}/mktemp rix,
@{bin}/rm rix,
/etc/audit/audit.rules rw,
/etc/audit/rules.d/{,*} r,

View File

@ -13,6 +13,7 @@ profile fprintd @{exec_path} flags=(attach_disconnected) {
include <abstractions/devices-usb>
include <abstractions/nameservice-strict>
capability net_admin,
capability sys_nice,
network netlink raw,

View File

@ -21,6 +21,7 @@ profile fwupd @{exec_path} flags=(complain,attach_disconnected) {
capability dac_read_search,
capability linux_immutable,
capability mknod,
capability net_admin,
capability sys_admin,
capability sys_nice,
capability sys_rawio,

View File

@ -16,6 +16,10 @@ profile irqbalance @{exec_path} {
@{exec_path} mr,
/etc/default/irqbalance r,
/ r,
@{run}/irqbalance/irqbalance[0-9]*.sock w,
@{sys}/bus/pci/devices/ r,

View File

@ -73,6 +73,7 @@ profile sudo @{exec_path} {
/var/lib/sudo/ts/ rw,
/var/lib/sudo/ts/* rwk,
/var/log/sudo.log wk,
owner /var/db/sudo/lectured/@{uid} rw,
owner /var/lib/sudo/lectured/* rw,
owner @{HOME}/.sudo_as_admin_successful rw,