apparmor.d/apparmor.d/profiles-s-z/ssurl
2024-10-14 19:32:48 +01:00

29 lines
657 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
# shadowsocks-rust only:
# https://github.com/shadowsocks/shadowsocks-rust
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{bin}/ssurl
profile ssurl @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
capability dac_read_search,
capability dac_override,
@{exec_path} mr,
/etc/shadowsocks-rust/{server,local}/*/ss.json{,5} r,
owner @{user_config_dirs}/shadowsocks-rust/{server,local}/*/ss.json{,5} r,
include if exists <local/ssurl>
}
# vim:syntax=apparmor