mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 17:08:09 +01:00
feat(profiles): add systemd-resolve.
This commit is contained in:
parent
f6de2fbe7a
commit
d04bb8f5b2
1 changed files with 22 additions and 0 deletions
22
apparmor.d/groups/systemd/systemd-resolve
Normal file
22
apparmor.d/groups/systemd/systemd-resolve
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = /{usr/,}bin/resolvectl
|
||||||
|
@{exec_path} += /{usr/,}bin/systemd-resolve
|
||||||
|
profile systemd-resolve @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
capability mknod,
|
||||||
|
capability net_admin,
|
||||||
|
|
||||||
|
network netlink raw,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
include if exists <local/systemd-resolve>
|
||||||
|
}
|
Loading…
Reference in a new issue