mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
42 lines
874 B
Text
42 lines
874 B
Text
# 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}/partprobe
|
|
profile partprobe @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/disks-write>
|
|
|
|
capability sys_admin,
|
|
capability sys_rawio,
|
|
|
|
ptrace read,
|
|
|
|
@{exec_path} mr,
|
|
|
|
@{sh_path} rix,
|
|
|
|
@{bin}/udevadm rCx -> udevadm,
|
|
@{bin}/dmidecode rPx,
|
|
|
|
@{PROC}/devices r,
|
|
@{PROC}/swaps r,
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
|
|
profile udevadm {
|
|
include <abstractions/base>
|
|
include <abstractions/app/udevadm>
|
|
include <abstractions/disks-write>
|
|
|
|
include if exists <local/partprobe_udevadm>
|
|
}
|
|
|
|
include if exists <local/partprobe>
|
|
}
|
|
|
|
# vim:syntax=apparmor
|