mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
Add userdbctl.
This commit is contained in:
parent
204ff035e7
commit
1956680160
31
apparmor.d/groups/systemd/userdbctl
Normal file
31
apparmor.d/groups/systemd/userdbctl
Normal 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>
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user