feat(systemd): add systemd-cryptsetup
This commit is contained in:
parent
45ca052063
commit
a804fe7b56
2 changed files with 37 additions and 0 deletions
36
apparmor.d/groups/systemd/systemd-cryptsetup
Normal file
36
apparmor.d/groups/systemd/systemd-cryptsetup
Normal file
|
|
@ -0,0 +1,36 @@
|
||||||
|
# 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/,}lib/systemd/systemd-cryptsetup
|
||||||
|
profile systemd-cryptsetup @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/systemd-common>
|
||||||
|
include <abstractions/disks-write>
|
||||||
|
include <abstractions/openssl>
|
||||||
|
|
||||||
|
capability ipc_lock,
|
||||||
|
capability net_admin,
|
||||||
|
capability sys_admin,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/etc/fstab r,
|
||||||
|
|
||||||
|
@{run}/ r,
|
||||||
|
@{run}/cryptsetup/ r,
|
||||||
|
@{run}/cryptsetup/* rwk,
|
||||||
|
@{run}/systemd/ask-password/* rw,
|
||||||
|
|
||||||
|
@{sys}/devices/virtual/bdi/*/read_ahead_kb r,
|
||||||
|
@{sys}/fs/ r,
|
||||||
|
|
||||||
|
@{PROC}/devices r,
|
||||||
|
owner @{PROC}/@{pid}/mountinfo r,
|
||||||
|
|
||||||
|
include if exists <local/systemd-cryptsetup>
|
||||||
|
}
|
||||||
|
|
@ -210,6 +210,7 @@ systemd-cat complain
|
||||||
systemd-cgls complain
|
systemd-cgls complain
|
||||||
systemd-cgtop complain
|
systemd-cgtop complain
|
||||||
systemd-coredump attach_disconnected,complain
|
systemd-coredump attach_disconnected,complain
|
||||||
|
systemd-cryptsetup complain
|
||||||
systemd-dissect complain
|
systemd-dissect complain
|
||||||
systemd-environment-d-generator complain
|
systemd-environment-d-generator complain
|
||||||
systemd-escape complain
|
systemd-escape complain
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue