feat(profiles): add losetup profile.

This commit is contained in:
Alexandre Pujol 2022-08-31 21:58:55 +01:00
parent 0f61c4649c
commit 30f0b69a67
Failed to generate hash of commit

View file

@ -0,0 +1,26 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}bin/losetup
profile losetup @{exec_path} {
include <abstractions/base>
capability dac_override,
capability dac_read_search,
unix (receive) type=stream,
@{exec_path} mr,
@{sys}/devices/system/cpu/possible r,
/dev/loop-control rw,
/dev/loop[0-9]* rw,
include if exists <local/losetup>
}