51 lines
No EOL
1.2 KiB
Text
51 lines
No EOL
1.2 KiB
Text
# 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/,}lib/update-notifier/update-motd-fsck-at-reboot
|
|
profile update-motd-fsck-at-reboot @{exec_path} {
|
|
include <abstractions/base>
|
|
|
|
@{exec_path} mr,
|
|
|
|
/{usr/,}{s,}bin/dumpe2fs rPx,
|
|
/{usr/,}bin/{,ba,da}sh rix,
|
|
/{usr/,}bin/{m,g,}awk rix,
|
|
/{usr/,}bin/cat rix,
|
|
/{usr/,}bin/cut rix,
|
|
/{usr/,}bin/date rix,
|
|
/{usr/,}bin/grep rix,
|
|
/{usr/,}bin/id rix,
|
|
/{usr/,}bin/mount rCx -> mount,
|
|
/{usr/,}bin/stat rix,
|
|
|
|
/var/lib/update-notifier/fsck-at-reboot rw,
|
|
|
|
@{PROC}/uptime r,
|
|
|
|
/dev/tty[0-9]* rw,
|
|
|
|
profile mount {
|
|
include <abstractions/base>
|
|
|
|
/{usr/,}bin/mount mr,
|
|
|
|
@{run}/mount/utab r,
|
|
|
|
@{sys}/devices/virtual/block/**/ r,
|
|
@{sys}/devices/virtual/block/**/autoclear r,
|
|
@{sys}/devices/virtual/block/**/backing_file r,
|
|
@{sys}/devices/virtual/block/dm-[0-9]*/dm/name r,
|
|
|
|
@{PROC}/@{pid}/mountinfo r,
|
|
|
|
/dev/tty[0-9]* rw,
|
|
|
|
}
|
|
|
|
include if exists <local/update-motd-fsck-at-reboot>
|
|
} |