mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-19 01:18:16 +01:00
38 lines
872 B
Text
38 lines
872 B
Text
# 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/,}{s,}bin/agetty
|
|
profile agetty @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/wutmp>
|
|
|
|
capability fsetid,
|
|
capability sys_admin,
|
|
capability sys_tty_config,
|
|
capability chown,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}bin/login rPx,
|
|
|
|
/{etc,run,lib,usr/lib}/issue r,
|
|
/{etc,run,lib,usr/lib}/issue.d/{,*} r,
|
|
/{,usr/}lib/os-release r,
|
|
/etc/inittab r,
|
|
/etc/os-release r,
|
|
|
|
owner @{run}/agetty.reload rw,
|
|
@{run}/resolvconf/resolv.conf r,
|
|
|
|
/dev/tty[0-9]* rw,
|
|
owner /dev/ttyGS[0-9]* rw,
|
|
owner /dev/ttyS[0-9]* rw,
|
|
|
|
include if exists <local/agetty>
|
|
}
|