From 9de29b5f25a6484d1354578d982b0be50718a099 Mon Sep 17 00:00:00 2001 From: npwc <51269503+npwc@users.noreply.github.com> Date: Tue, 16 Jan 2024 14:19:21 +0000 Subject: [PATCH] Update sing-box --- apparmor.d/profiles-s-z/sing-box | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/apparmor.d/profiles-s-z/sing-box b/apparmor.d/profiles-s-z/sing-box index 211e11128..0ebe76ad7 100644 --- a/apparmor.d/profiles-s-z/sing-box +++ b/apparmor.d/profiles-s-z/sing-box @@ -7,14 +7,10 @@ abi , include -@{exec_path} = /{,usr/}{,local/}bin/sing-box +@{exec_path} = @{bin}/sing-box profile sing-box @{exec_path} { include - include - include - include - include - include + include include capability net_bind_service, @@ -27,11 +23,11 @@ profile sing-box @{exec_path} { /proc/meminfo r, /sys/kernel/mm/transparent_hugepage/hpage_pmd_size r, - /usr/bin/tor mrix, - /usr/{,local/}bin/sing-box mr, + @{bin}/tor mrix, + @{bin}/sing-box mr, /usr/{,local/}share/sing-box/geoip.db r, /usr/{,local/}share/sing-box/geosite.db r, owner /{,usr/local/}etc/sing-box/config.json r, - owner @{home_dirs}/.local/share/certmagic/** rw, + owner @{user_share_dirs}/certmagic/** rw, }