Update sing-box

This commit is contained in:
npwc 2024-01-16 14:19:21 +00:00 committed by GitHub
parent 62f2f24546
commit 9de29b5f25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,14 +7,10 @@ abi <abi/3.0>,
include <tunables/global> include <tunables/global>
@{exec_path} = /{,usr/}{,local/}bin/sing-box @{exec_path} = @{bin}/sing-box
profile sing-box @{exec_path} { profile sing-box @{exec_path} {
include <abstractions/base> include <abstractions/base>
include <abstractions/nameservice> include <abstractions/nameservice-strict>
include <abstractions/nis>
include <abstractions/ssl_certs>
include <abstractions/ssl_keys>
include <abstractions/tor>
include <abstractions/user-tmp> include <abstractions/user-tmp>
capability net_bind_service, capability net_bind_service,
@ -27,11 +23,11 @@ profile sing-box @{exec_path} {
/proc/meminfo r, /proc/meminfo r,
/sys/kernel/mm/transparent_hugepage/hpage_pmd_size r, /sys/kernel/mm/transparent_hugepage/hpage_pmd_size r,
/usr/bin/tor mrix, @{bin}/tor mrix,
/usr/{,local/}bin/sing-box mr, @{bin}/sing-box mr,
/usr/{,local/}share/sing-box/geoip.db r, /usr/{,local/}share/sing-box/geoip.db r,
/usr/{,local/}share/sing-box/geosite.db r, /usr/{,local/}share/sing-box/geosite.db r,
owner /{,usr/local/}etc/sing-box/config.json r, owner /{,usr/local/}etc/sing-box/config.json r,
owner @{home_dirs}/.local/share/certmagic/** rw, owner @{user_share_dirs}/certmagic/** rw,
} }