feat(profiles): general update.

This commit is contained in:
Alexandre Pujol 2022-05-07 11:42:18 +01:00
parent 6aadd82293
commit da1b3e1f1c
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
26 changed files with 114 additions and 126 deletions

View file

@ -1,5 +1,6 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2019-2021 Mikhail Morfikov
# Copyright (C) 2020-2022 Mikhail Morfikov
# Copyright (C) 2021-2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
@ -13,6 +14,7 @@ profile fsck @{exec_path} {
capability dac_override,
capability dac_read_search,
capability sys_rawio,
@{exec_path} mr,
@ -21,19 +23,20 @@ profile fsck @{exec_path} {
/etc/fstab r,
@{PROC}/partitions r,
owner @{PROC}/@{pid}/mountinfo r,
owner @{run}/fsck/ rw,
owner @{run}/fsck/*.lock rwk,
# When a mount dir is passed to fsck as an argument.
@{MOUNTS}/*/ r,
/boot/ r,
/home/ r,
owner @{run}/fsck/ rw,
owner @{run}/fsck/*.lock rwk,
owner @{run}/blkid/blkid.tab{,-*} rw,
owner @{run}/blkid/blkid.tab.old rwl -> @{run}/blkid/blkid.tab,
owner @{run}/systemd/fsck.progress w,
@{run}/mount/utab r,
@{PROC}/@{pids}/mountinfo r,
@{PROC}/partitions r,
include if exists <local/fsck>
}