mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-07 10:45:09 +01:00
29 lines
623 B
Text
29 lines
623 B
Text
![]() |
# apparmor.d - Full set of apparmor profiles
|
||
|
# Copyright (C) 2022 Jeroen Rijken
|
||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||
|
|
||
|
abi <abi/3.0>,
|
||
|
|
||
|
include <tunables/global>
|
||
|
|
||
|
@{exec_path} = /{usr/,}{s,}bin/blkdeactivate
|
||
|
profile blkdeactivate @{exec_path} flags=(complain) {
|
||
|
include <abstractions/base>
|
||
|
include <abstractions/nameservice-strict>
|
||
|
|
||
|
@{exec_path} rm,
|
||
|
/{usr/,}{s,}bin/dmsetup rPUx,
|
||
|
/{usr/,}bin/grep rix,
|
||
|
/{usr/,}bin/lsblk rPx,
|
||
|
/{usr/,}{s,}bin/lvm rPx,
|
||
|
/{usr/,}bin/sort rix,
|
||
|
/{usr/,}bin/umount rPx,
|
||
|
|
||
|
@{sys}/devices/virtual/block/*/holders/ r,
|
||
|
|
||
|
/dev/tty rw,
|
||
|
|
||
|
include if exists <local/blkdeactivate>
|
||
|
}
|
||
|
|