# apparmor.d - Full set of apparmor profiles # Copyright (C) 2021-2024 Alexandre Pujol # SPDX-License-Identifier: GPL-3.0-only abi , include @{exec_path} = @{lib}/systemd/systemd-resolved profile systemd-resolved @{exec_path} flags=(attach_disconnected) { include include include include include include include capability net_bind_service, capability net_raw, capability setpcap, network unix stream, network unix dgram, network inet dgram, network inet stream, network inet6 dgram, network inet6 stream, network netlink raw, #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/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}/pressure/* r, @{PROC}/sys/kernel/hostname r, @{PROC}/sys/net/ipv{4,6}/conf/all/disable_ipv{4,6} r, include if exists } # vim:syntax=apparmor