mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(systemd): add systemd-cryptsetup
This commit is contained in:
parent
45ca052063
commit
a804fe7b56
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-cgtop complain
|
||||
systemd-coredump attach_disconnected,complain
|
||||
systemd-cryptsetup complain
|
||||
systemd-dissect complain
|
||||
systemd-environment-d-generator complain
|
||||
systemd-escape complain
|
||||
|
Loading…
Reference in New Issue
Block a user