apparmor.d/apparmor.d/groups/systemd/userdbctl
2024-09-08 13:25:49 +01:00

29 lines
576 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/userdbctl
profile userdbctl @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
capability dac_read_search,
capability sys_resource,
@{exec_path} mr,
@{pager_path} rPx -> child-pager,
/etc/shadow r,
/etc/gshadow r,
@{PROC}/@{pid}/cgroup r,
include if exists <local/userdbctl>
}
# vim:syntax=apparmor