aboutsummaryrefslogtreecommitdiff
path: root/straper/db/public/apparmor/apparmor.d/abstractions/hosts_access
diff options
context:
space:
mode:
Diffstat (limited to 'straper/db/public/apparmor/apparmor.d/abstractions/hosts_access')
-rw-r--r--straper/db/public/apparmor/apparmor.d/abstractions/hosts_access17
1 files changed, 17 insertions, 0 deletions
diff --git a/straper/db/public/apparmor/apparmor.d/abstractions/hosts_access b/straper/db/public/apparmor/apparmor.d/abstractions/hosts_access
new file mode 100644
index 0000000..bc49814
--- /dev/null
+++ b/straper/db/public/apparmor/apparmor.d/abstractions/hosts_access
@@ -0,0 +1,17 @@
+# vim:syntax=apparmor
+# ------------------------------------------------------------------
+#
+# Copyright (C) 2020 Canonical Ltd.
+#
+# 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>,
+
+ /etc/hosts.deny r,
+ /etc/hosts.allow r,
+
+ include if exists <abstractions/hosts_access.d>