Create unbound
This commit is contained in:
parent
a85efd5305
commit
854025fedc
1 changed files with 64 additions and 0 deletions
64
apparmor.d/profiles-s-z/unbound
Normal file
64
apparmor.d/profiles-s-z/unbound
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
# Copyright (C) 2024 Barmogund <set508@proton.me>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/4.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
{exec_path} = @{bin}/unbound
|
||||
profile unbound @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/bus-system>
|
||||
include <abstractions/bus/org.freedesktop.login1>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/p11-kit>
|
||||
include <abstractions/ssl_certs>
|
||||
include <abstractions/common/systemd>
|
||||
|
||||
capability net_bind_service,
|
||||
capability net_raw,
|
||||
capability sys_resource,
|
||||
capability sys_chroot,
|
||||
capability setgid,
|
||||
capability setuid,
|
||||
capability setpcap,
|
||||
|
||||
network unix stream,
|
||||
network unix dgram,
|
||||
network inet dgram,
|
||||
network inet stream,
|
||||
network inet6 dgram,
|
||||
network inet6 stream,
|
||||
network netlink raw,
|
||||
|
||||
signal (receive) set=(term, cont) peer=runsv,
|
||||
#aa:dbus own bus=system name=org.freedesktop.resolve1
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/DBus
|
||||
interface=org.freedesktop.DBus
|
||||
member={GetConnectionUnixUser,GetConnectionUnixProcessID}
|
||||
peer=(name=org.freedesktop.DBus, label=dbus-system),
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/etc/unbound/{,**} rw,
|
||||
/etc/systemd/resolved.conf r,
|
||||
/etc/systemd/resolved.conf.d/{,*} r,
|
||||
|
||||
@{run}/systemd/netif/links/* r,
|
||||
@{run}/systemd/notify rw,
|
||||
@{run}/systemd/resolve/{,**} rw,
|
||||
|
||||
@{PROC}/@{pid}/cgroup r,
|
||||
@{PROC}/ r,
|
||||
owner @{PROC}/@{pids}/fd/ r,
|
||||
@{PROC}/pressure/* r,
|
||||
@{PROC}/sys/kernel/hostname r,
|
||||
@{PROC}/sys/net/ipv{4,6}/conf/all/disable_ipv{4,6} r,
|
||||
|
||||
include if exists <local/unbound>
|
||||
}
|
||||
|
||||
# vim:syntax=apparmor
|
||||
Loading…
Add table
Add a link
Reference in a new issue