feat: add sulogin profile.
This commit is contained in:
parent
e078fe2767
commit
53682c678d
1 changed files with 26 additions and 0 deletions
26
apparmor.d/profiles-s-z/sulogin
Normal file
26
apparmor.d/profiles-s-z/sulogin
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = /{usr/,}{s,}bin/sulogin
|
||||||
|
profile sulogin @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
|
||||||
|
capability sys_admin,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/etc/shadow r,
|
||||||
|
|
||||||
|
/dev/ r,
|
||||||
|
/dev/tty[0-9]* rw,
|
||||||
|
|
||||||
|
@{PROC}/consoles r,
|
||||||
|
|
||||||
|
include if exists <local/sulogin>
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue