apparmor.d/apparmor.d/profiles-a-f/blkdeactivate
REmerald 293217aee2
fix(profiles-a-f): move vim modeline
Move vim syntax comment to the end of the file, separated by newline, as requested in #380.
2024-06-15 21:59:31 +01:00

33 lines
753 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/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/blkdeactivate
profile blkdeactivate @{exec_path} flags=(complain) {
include <abstractions/base>
include <abstractions/nameservice-strict>
@{exec_path} rm,
@{bin}/dmsetup rPUx,
@{bin}/grep rix,
@{bin}/lsblk rPx,
@{bin}/lvm rPx,
@{bin}/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