Add userdbctl.

This commit is contained in:
Alexandre Pujol 2021-09-15 20:44:40 +01:00
parent 204ff035e7
commit 1956680160
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,31 @@
# 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,
/etc/group r,
/etc/shadow r,
/etc/gshadow r,
@{run}/systemd/userdb/ r,
@{PROC}/@{pid}/cgroup r,
@{PROC}/sys/kernel/random/boot_id r,
include if exists <local/userdbctl>
}

View File

@ -170,6 +170,7 @@ umount.udisks2 complain
update-ca-trust complain
update-mime-database complain
update-pciids complain
userdbctl complain
virt-manager attach_disconnected,complain
virtlockd complain
virtlogd complain