feat: add sulogin profile.

This commit is contained in:
Alexandre Pujol 2022-04-07 21:00:39 +01:00
parent e078fe2767
commit 53682c678d
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View 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>
}