apparmor.d/apparmor.d/groups/systemd/userdbctl
2022-10-08 13:13:44 +01:00

29 lines
No EOL
636 B
Text

# 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/userdbctl
profile userdbctl @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
capability dac_read_search,
capability sys_resource,
@{exec_path} mr,
/{usr/,}bin/less rPx -> child-pager,
/{usr/,}bin/more rPx -> child-pager,
/{usr/,}bin/pager rPx -> child-pager,
/etc/shadow r,
/etc/gshadow r,
@{PROC}/@{pid}/cgroup r,
include if exists <local/userdbctl>
}