feat(profiles): add os-prober.

This commit is contained in:
Alexandre Pujol 2022-10-23 11:27:50 +01:00
parent d6cd1af9c8
commit fabddee9d6
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,34 @@
# 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/os-prober
profile os-prober @{exec_path} {
include <abstractions/base>
@{exec_path} mr,
/{usr/,}bin/{,ba,da}sh rix,
/{usr/,}bin/{e,f,}grep rix,
/{usr/,}bin/cut rix,
/{usr/,}bin/head rix,
/{usr/,}bin/logger rix,
/{usr/,}bin/lsblk rPx,
/{usr/,}bin/mktemp rix,
/{usr/,}bin/readlink rix,
/{usr/,}bin/rm rix,
/{usr/,}bin/sed rix,
/{usr/,}bin/uname rix,
/{usr/,}lib/os-prober/* rix,
/{usr/,}lib/os-probes/{,**} rix,
/usr/share/os-prober/common.sh r,
owner /tmp/os-prober.*/{,**} rw,
include if exists <local/os-prober>
}

View File

@ -122,6 +122,7 @@ nft complain
nmap complain
nmcli complain
nullmailer-send complain
os-prober complain
packagekitd attach_disconnected,complain
pass complain
pass-import complain
@ -139,10 +140,10 @@ repo complain
resolvconf complain
run-parts complain
runuser complain
setpriv complain
s3fs complain
sbctl complain
scrcpy complain
setpriv complain
sftp-server complain
slirp4netns attach_disconnected,complain
snap complain