mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-16 00:13:48 +01:00
feat: add sulogin profile.
This commit is contained in:
parent
e078fe2767
commit
53682c678d
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…
Reference in New Issue
Block a user