feat(profiles): add sbctl.

This commit is contained in:
Alexandre Pujol 2022-09-18 11:21:33 +01:00
parent 4920922394
commit a432d656c8
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 37 additions and 0 deletions

View 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>
}

View File

@ -130,6 +130,7 @@ resolvconf complain
run-parts complain
runuser complain
s3fs complain
sbctl complain
scrcpy complain
sftp-server complain
slirp4netns attach_disconnected,complain