apparmor.d/apparmor.d/profiles-a-f/blkdeactivate

35 lines
815 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Jeroen Rijken
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,
include <tunables/global>
@{exec_path} = @{sbin}/blkdeactivate
profile blkdeactivate @{exec_path} flags=(complain) {
include <abstractions/base>
include <abstractions/nameservice-strict>
@{exec_path} rm,
@{sh_path} rix,
@{sbin}/dmsetup rPUx,
@{bin}/grep rix,
@{bin}/touch rix,
@{bin}/lsblk rPx,
@{sbin}/lvm rPx,
@{sbin}/multipathd rPx,
@{bin}/sort rix,
@{bin}/umount rPx,
@{sys}/devices/virtual/block/*/holders/ r,
/dev/tty rw,
include if exists <local/blkdeactivate>
}
# vim:syntax=apparmor