void-packages/srcpkgs/ippusbxd/patches/apparmor.patch

27 lines
685 B
Diff

commit 48d519066cceac1afa2596ebfbce5ad19277160c
Author: Cameron Nemo <camerontnorman@gmail.com>
Date: Sun Nov 18 10:45:32 2018 -0800
apparmor: match path when bin and sbin are merged
diff --git src/apparmor/usr.sbin.ippusbxd src/apparmor/usr.sbin.ippusbxd
index d017dbf..bfeddf7 100644
--- src/apparmor/usr.sbin.ippusbxd
+++ src/apparmor/usr.sbin.ippusbxd
@@ -4,13 +4,13 @@
#include <tunables/global>
-/usr/sbin/ippusbxd {
+profile ippusbxd /usr/{bin,sbin}/ippusbxd {
#include <abstractions/base>
#include <abstractions/dbus>
capability wake_alarm,
- /usr/sbin/ippusbxd mr,
+ /usr/{bin,sbin}/ippusbxd mr,
# Scanning for USB devices
/dev/bus/usb/ r,