aboutsummaryrefslogtreecommitdiff
path: root/straper/db/public/apparmor/apparmor.d/abstractions/devices-usb
diff options
context:
space:
mode:
Diffstat (limited to 'straper/db/public/apparmor/apparmor.d/abstractions/devices-usb')
-rw-r--r--straper/db/public/apparmor/apparmor.d/abstractions/devices-usb22
1 files changed, 22 insertions, 0 deletions
diff --git a/straper/db/public/apparmor/apparmor.d/abstractions/devices-usb b/straper/db/public/apparmor/apparmor.d/abstractions/devices-usb
new file mode 100644
index 0000000..9c3d5bb
--- /dev/null
+++ b/straper/db/public/apparmor/apparmor.d/abstractions/devices-usb
@@ -0,0 +1,22 @@
+# ------------------------------------------------------------------
+#
+# Copyright (C) 2021 Mikhail Morfikov
+# Copyright (C) 2021-2025 Alexandre Pujol <alexandre@pujol.io>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of version 2 of the GNU General Public
+# License published by the Free Software Foundation.
+#
+# ------------------------------------------------------------------
+
+ abi <abi/4.0>,
+
+ include <abstractions/devices-usb-read>
+
+ /dev/bus/usb/@{int}/@{int} wk,
+
+ @{sys}/devices/**/usb@{int}/{,**} w,
+
+ include if exists <abstractions/devices-usb.d>
+
+# vim:syntax=apparmor