mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(profiles): add sbctl.
This commit is contained in:
parent
4920922394
commit
a432d656c8
36
apparmor.d/profiles-s-z/sbctl
Normal file
36
apparmor.d/profiles-s-z/sbctl
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/,}bin/sbctl
|
||||||
|
profile sbctl @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
capability dac_read_search,
|
||||||
|
capability linux_immutable,
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/{usr/,}bin/lsblk rPx,
|
||||||
|
|
||||||
|
/usr/share/secureboot/{,**} rw,
|
||||||
|
|
||||||
|
/{boot,efi}/{,**} r,
|
||||||
|
/{boot,efi}/EFI/{,**} rw,
|
||||||
|
/{usr/,}lib/fwupd/efi/{,**} rw,
|
||||||
|
/boot/vmlinuz-linux* rw,
|
||||||
|
|
||||||
|
@{sys}/firmware/efi/efivars/db-@{uuid} rw,
|
||||||
|
@{sys}/firmware/efi/efivars/KEK-@{uuid} rw,
|
||||||
|
@{sys}/firmware/efi/efivars/PK-@{uuid} rw,
|
||||||
|
@{sys}/firmware/efi/efivars/SecureBoot-@{uuid} r,
|
||||||
|
@{sys}/firmware/efi/efivars/SetupMode-@{uuid} r,
|
||||||
|
|
||||||
|
@{sys}/kernel/mm/transparent_hugepage/hpage_pmd_size r,
|
||||||
|
|
||||||
|
include if exists <local/sbctl>
|
||||||
|
}
|
@ -130,6 +130,7 @@ resolvconf complain
|
|||||||
run-parts complain
|
run-parts complain
|
||||||
runuser complain
|
runuser complain
|
||||||
s3fs complain
|
s3fs complain
|
||||||
|
sbctl complain
|
||||||
scrcpy complain
|
scrcpy complain
|
||||||
sftp-server complain
|
sftp-server complain
|
||||||
slirp4netns attach_disconnected,complain
|
slirp4netns attach_disconnected,complain
|
||||||
|
Loading…
Reference in New Issue
Block a user