mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
Add systemd-update-utmp.
This commit is contained in:
parent
6890fff556
commit
0d5d65b0af
1 changed files with 30 additions and 0 deletions
30
apparmor.d/groups/systemd/systemd-update-utmp
Normal file
30
apparmor.d/groups/systemd/systemd-update-utmp
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# 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-update-utmp
|
||||||
|
profile systemd-update-utmp @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
capability audit_write,
|
||||||
|
capability net_admin,
|
||||||
|
|
||||||
|
network netlink raw,
|
||||||
|
|
||||||
|
ptrace (read) peer=unconfined,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
owner /var/log/wtmp rwk,
|
||||||
|
owner @{run}/utmp rwk,
|
||||||
|
|
||||||
|
@{PROC}/1/environ r,
|
||||||
|
@{PROC}/cmdline r,
|
||||||
|
@{PROC}/sys/kernel/osrelease r,
|
||||||
|
|
||||||
|
include if exists <local/systemd-update-utmp>
|
||||||
|
}
|
Loading…
Reference in a new issue