mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-15 07:54:17 +01:00
40b171ee94
Signed-off-by: Jeroen Rijken <jeroen.rijken@xs4all.nl>
63 lines
1.3 KiB
Plaintext
63 lines
1.3 KiB
Plaintext
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
|
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{bin}/fatresize
|
|
profile fatresize @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/disks-write>
|
|
|
|
# Needed to inform the system of newly created/removed partitions
|
|
# ioctl(3, BLKFLSBUF) = -1 EACCES (Permission denied)
|
|
capability sys_admin,
|
|
|
|
# Needed? (##FIXME##)
|
|
capability sys_rawio,
|
|
|
|
# Needed?
|
|
ptrace (read),
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{sh_path} rix,
|
|
|
|
@{bin}/dmidecode rPx,
|
|
|
|
@{bin}/udevadm rCx -> udevadm,
|
|
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
@{PROC}/swaps r,
|
|
|
|
|
|
profile udevadm {
|
|
include <abstractions/base>
|
|
|
|
ptrace (read),
|
|
|
|
@{bin}/udevadm mr,
|
|
|
|
/etc/udev/udev.conf r,
|
|
|
|
owner @{PROC}/@{pid}/stat r,
|
|
owner @{PROC}/@{pid}/cgroup r,
|
|
@{PROC}/cmdline r,
|
|
@{PROC}/1/sched r,
|
|
@{PROC}/1/environ r,
|
|
@{PROC}/sys/kernel/osrelease r,
|
|
@{PROC}/sys/kernel/random/boot_id r,
|
|
|
|
@{sys}/firmware/efi/efivars/SecureBoot-@{uuid} r,
|
|
|
|
# file_inherit
|
|
/dev/{s,v}d[a-z]* rw,
|
|
|
|
}
|
|
|
|
include if exists <local/fatresize>
|
|
}
|