apparmor.d/apparmor.d/profiles-m-z/mkswap
Alexandre Pujol 79904cb616
Archlinux has no sbin.
sbin -> {s,}bin for Archlinux support.
Purposelly not replaced on Debian only programs
2021-04-01 23:15:47 +01:00

23 lines
478 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2019-2021 Mikhail Morfikov
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}{s,}bin/mkswap
profile mkswap @{exec_path} {
include <abstractions/base>
include <abstractions/disks-write>
@{exec_path} mr,
owner @{PROC}/@{pid}/mounts r,
@{PROC}/swaps r,
# SWAP file common locations
owner /swapfile rw,
include if exists <local/mkswap>
}