From caedb45e8131892dfcde78ca636a8f808bd36fea Mon Sep 17 00:00:00 2001 From: curiosityseeker <60518106+curiosityseeker@users.noreply.github.com> Date: Tue, 5 Sep 2023 18:38:47 +0200 Subject: [PATCH] Update os-prober --- apparmor.d/profiles-m-r/os-prober | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apparmor.d/profiles-m-r/os-prober b/apparmor.d/profiles-m-r/os-prober index 646b7595d..bba20dec4 100644 --- a/apparmor.d/profiles-m-r/os-prober +++ b/apparmor.d/profiles-m-r/os-prober @@ -21,6 +21,7 @@ profile os-prober @{exec_path} flags=(attach_disconnected) { @{bin}/{,ba,da}sh rix, @{bin}/{e,f,}grep rix, @{bin}/blkid rPx, + @{bin}/btrfs rPx, @{bin}/cat rix, @{bin}/cut rix, @{bin}/dmraid rPUx, @@ -35,6 +36,7 @@ profile os-prober @{exec_path} flags=(attach_disconnected) { @{bin}/lvm rPx, @{bin}/mkdir rix, @{bin}/mktemp rix, + @{bin}/mount rix, @{bin}/multipath rPx, @{bin}/readlink rix, @{bin}/rm rix, @@ -43,6 +45,7 @@ profile os-prober @{exec_path} flags=(attach_disconnected) { @{bin}/udevadm rPx, @{bin}/umount rix, @{bin}/uname rix, + @{bin}/which rix, @{lib}/newns rix, @{lib}/os-prober/* rix, @{lib}/os-probes/{,**} rix, @@ -65,7 +68,10 @@ profile os-prober @{exec_path} flags=(attach_disconnected) { @{sys}/devices/virtual/block/*/ r, @{PROC}/swaps r, + owner @{PROC}/@{pid}/mountinfo r, owner @{PROC}/@{pid}/mounts r, + /dev/tty@{int} rw, + include if exists -} \ No newline at end of file +}