feat(profiles): general update.

This commit is contained in:
Alexandre Pujol 2023-04-24 18:58:58 +01:00
parent 4523a61425
commit ef687d7149
Failed to generate hash of commit
8 changed files with 17 additions and 12 deletions

View file

@ -44,10 +44,11 @@ profile cron @{exec_path} flags=(attach_disconnected) {
@{etc_ro}/security/limits.d/{,**} r,
/var/spool/cron/crontabs/{,*} r,
/var/spool/cron/tabs/{,*} r,
@{run}/crond.pid rwk,
@{run}/crond.reboot rw,
@{run}/systemd/sessions/*.ref rw,
owner @{run}/crond.pid rwk,
owner @{run}/crond.reboot rw,
owner /tmp/#[0-9]*[0-9] rw,

View file

@ -11,6 +11,7 @@ profile ModemManager @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/dbus-strict>
include <abstractions/devices-usb>
network qipcrtr dgram,
network netlink raw,

View file

@ -36,6 +36,7 @@ profile mullvad-daemon @{exec_path} flags=(attach_disconnected) {
/{usr/,}bin/ip rix,
"/opt/Mullvad VPN/resources/openvpn" rix,
"/opt/Mullvad VPN/resources/*.so*" mr,
"/opt/Mullvad VPN/resources/*" r,
/etc/mullvad-vpn/{,*} r,

View file

@ -50,13 +50,8 @@ profile openvpn @{exec_path} {
@{exec_path} mr,
# OpenVPN config
/etc/openvpn/*.{conf,ovpn} r,
/etc/openvpn/client/*.{conf,ovpn} r,
/etc/openvpn/client/*_userpass.txt r,
/etc/openvpn/server/*.{conf,ovpn} r,
/etc/openvpn/auth/*.auth r,
/etc/openvpn/certs/*.{key,crt} r,
/etc/openvpn/{,**} r,
@{HOME}/.cert/{,**} r,
/var/log/openvpn/*.log w,

View file

@ -12,6 +12,8 @@ profile systemd-userwork @{exec_path} flags=(attach_disconnected) {
include <abstractions/nameservice-strict>
include <abstractions/systemd-common>
capability sys_resource,
@{exec_path} mr,
/etc/machine-id r,

View file

@ -34,6 +34,7 @@ profile firewalld @{exec_path} {
/{usr/,}bin/false rix,
/usr/share/libalternatives/ r,
/usr/share/libalternatives/ebtables*/{,*} r,
/usr/share/libalternatives/ip{,4,6}tables*/{,*} r,
/etc/firewalld/{,**} r,
@ -41,12 +42,15 @@ profile firewalld @{exec_path} {
/etc/iproute2/group r,
/etc/iproute2/rt_realms r,
/var/lib/ebtables/lock rwk,
/var/log/firewalld rw,
@{run}/firewalld/{,*} rw,
@{run}/xtables.lock rwk,
@{PROC}/sys/kernel/modprobe r,
@{PROC}/sys/net/ipv{4,6}/ip_forward rw,
owner @{PROC}/@{pid}/fd/ r,
owner @{PROC}/@{pid}/mounts r,
owner @{PROC}/@{pids}/net/ip_tables_names r,

View file

@ -17,6 +17,7 @@ profile kmod @{exec_path} flags=(attach_disconnected) {
capability dac_override,
capability mknod,
capability net_admin,
capability sys_module,
capability syslog,

View file

@ -160,8 +160,8 @@ profile packagekitd @{exec_path} flags=(attach_disconnected) {
owner /etc/pacman.d/gnupg/ r, # only: arch
owner /etc/pacman.d/gnupg/** rwkl -> /tmp/pacman.d/gnupg/**,
owner /var/tmp/zypp.*/zypp-*/ r, # only: opensuse
owner /var/tmp/zypp.*/zypp-*/** rwkl -> /var/tmp/zypp.*/zypp-trusted-*/**,
/var/tmp/zypp.*/zypp-*/ r, # only: opensuse
/var/tmp/zypp.*/zypp-*/** rwkl -> /var/tmp/zypp.*/zypp-trusted-*/**,
owner @{run}/user/@{uid}/gnupg/ r,
owner @{run}/user/@{uid}/gnupg/ rwkl -> @{run}/user/@{uid}/gnupg/**,