mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
feat(systemd): add systemd-user{db,work}
This commit is contained in:
parent
c2076a213b
commit
5d6a4e4e4c
3 changed files with 58 additions and 0 deletions
34
apparmor.d/groups/systemd/systemd-userdbd
Normal file
34
apparmor.d/groups/systemd/systemd-userdbd
Normal file
|
@ -0,0 +1,34 @@
|
|||
# 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/,}lib/systemd/systemd-userdbd
|
||||
profile systemd-userdbd @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/systemd-common>
|
||||
|
||||
capability dac_read_search,
|
||||
capability sys_resource,
|
||||
|
||||
network inet dgram,
|
||||
network inet6 dgram,
|
||||
network inet raw,
|
||||
network inet6 raw,
|
||||
network netlink raw,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/{usr/,}lib/systemd/systemd-userwork rPx,
|
||||
|
||||
/etc/shadow r,
|
||||
/etc/machine-id r,
|
||||
|
||||
@{run}/systemd/userdb/{,**} rw,
|
||||
|
||||
include if exists <local/systemd-userdbd>
|
||||
}
|
22
apparmor.d/groups/systemd/systemd-userwork
Normal file
22
apparmor.d/groups/systemd/systemd-userwork
Normal file
|
@ -0,0 +1,22 @@
|
|||
# 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/,}lib/systemd/systemd-userwork
|
||||
profile systemd-userwork @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/systemd-common>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/etc/machine-id r,
|
||||
|
||||
@{run}/systemd/userdb/ r,
|
||||
|
||||
include if exists <local/systemd-userwork>
|
||||
}
|
|
@ -240,6 +240,8 @@ systemd-update-done complain
|
|||
systemd-update-utmp complain
|
||||
systemd-user-runtime-dir complain
|
||||
systemd-user-sessions complain
|
||||
systemd-userdbd attach_disconnected,complain
|
||||
systemd-userwork complain
|
||||
systemd-vconsole-setup complain
|
||||
systemd-xdg-autostart-generator complain
|
||||
tracker-extract complain
|
||||
|
|
Loading…
Reference in a new issue