feat: add agetty profile.
This commit is contained in:
parent
10cdde9fb7
commit
711c7d917c
1 changed files with 31 additions and 0 deletions
31
apparmor.d/profiles-a-f/agetty
Normal file
31
apparmor.d/profiles-a-f/agetty
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/,}sbin/agetty
|
||||||
|
profile agetty @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
include <abstractions/wutmp>
|
||||||
|
|
||||||
|
capability fsetid,
|
||||||
|
capability sys_admin,
|
||||||
|
capability sys_tty_config,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/{usr/,}bin/login rPx,
|
||||||
|
|
||||||
|
/etc/issue r,
|
||||||
|
|
||||||
|
owner @{run}/agetty.reload rw,
|
||||||
|
@{run}/resolvconf/resolv.conf r,
|
||||||
|
|
||||||
|
/dev/tty[0-9]* rw,
|
||||||
|
|
||||||
|
include if exists <local/agetty>
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue