feat(profile): update mullvad.

This commit is contained in:
Alexandre Pujol 2025-07-10 00:53:29 +02:00
parent e9fbc35036
commit 51560bbbf5
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
2 changed files with 11 additions and 4 deletions

View file

@ -10,6 +10,7 @@ include <tunables/global>
@{exec_path} += /opt/Mullvad*/resources/mullvad-daemon
profile mullvad-daemon @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/bus-system>
include <abstractions/nameservice-strict>
capability dac_override,
@ -39,7 +40,8 @@ profile mullvad-daemon @{exec_path} flags=(attach_disconnected) {
"/opt/Mullvad VPN/resources/*.so*" mr,
"/opt/Mullvad VPN/resources/*" r,
/etc/mullvad-vpn/{,*} r,
/etc/mullvad-vpn/ rw,
/etc/mullvad-vpn/* r,
/etc/mullvad-vpn/@{uuid} rw,
/etc/mullvad-vpn/*.json rw,
@{etc_rw}/resolv.conf rw,
@ -49,16 +51,19 @@ profile mullvad-daemon @{exec_path} flags=(attach_disconnected) {
owner /var/log/mullvad-vpn/{,*} rw,
owner /var/log/private/mullvad-vpn/*.log rw,
owner @{tmp}/@{uuid} rw,
owner @{tmp}/talpid-openvpn-@{uuid} rw,
@{run}/NetworkManager/resolv.conf r,
owner @{run}/mullvad-vpn rw,
@{sys}/fs/cgroup/net_cls/ w,
@{sys}/fs/cgroup/net_cls/mullvad-exclusions/ w,
@{sys}/fs/cgroup/net_cls/mullvad-exclusions/net_cls.classid rw,
@{sys}/fs/cgroup/system.slice/cpu.max r,
@{sys}/fs/cgroup/system.slice/mullvad-daemon.service/cpu.max r,
owner @{tmp}/@{uuid} rw,
owner @{tmp}/talpid-openvpn-@{uuid} rw,
@{PROC}/@{pid}/cgroup r,
@{PROC}/sys/net/ipv{4,6}/conf/all/arp_ignore rw,
@{PROC}/sys/net/ipv{4,6}/conf/all/src_valid_mark rw,
owner @{PROC}/@{pid}/mounts r,

View file

@ -37,6 +37,8 @@ profile mullvad-gui @{exec_path} flags=(attach_disconnected) {
@{att}/@{run}/systemd/inhibit/@{int}.ref rw,
@{run}/mullvad-vpn rw,
/dev/tty rw,
deny @{user_share_dirs}/gvfs-metadata/* r,