apparmor.d/apparmor.d/groups/systemd/userdbctl
2024-10-16 23:50:16 +01:00

29 lines
571 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/4.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}/1/cgroup r,
include if exists <local/userdbctl>
}
# vim:syntax=apparmor