aboutsummaryrefslogtreecommitdiff
path: root/straper/db/public/apparmor/apparmor.d/sbuild-createchroot
diff options
context:
space:
mode:
Diffstat (limited to 'straper/db/public/apparmor/apparmor.d/sbuild-createchroot')
-rw-r--r--straper/db/public/apparmor/apparmor.d/sbuild-createchroot17
1 files changed, 17 insertions, 0 deletions
diff --git a/straper/db/public/apparmor/apparmor.d/sbuild-createchroot b/straper/db/public/apparmor/apparmor.d/sbuild-createchroot
new file mode 100644
index 0000000..556ea90
--- /dev/null
+++ b/straper/db/public/apparmor/apparmor.d/sbuild-createchroot
@@ -0,0 +1,17 @@
+# This profile allows everything and only exists to give the
+# application a name instead of having the label "unconfined"
+
+abi <abi/4.0>,
+include <tunables/global>
+
+profile sbuild-createchroot /usr/bin/sbuild-createchroot flags=(complain,attach_disconnected mediate_deleted) {
+ allow all,
+
+ # override default pix
+ /usr/bin/unshare ix,
+
+ userns,
+
+ # Site-specific additions and overrides. See local/README for details.
+ include if exists <local/sbuild-createchroot>
+}