git » apparmor » commit d979b33

Add bogofilter

author Alberto Bertogli
2014-04-09 22:33:21 UTC
committer Alberto Bertogli
2014-04-09 22:33:21 UTC
parent 59f6bfb96889b98cd27241519b4a3b6c4f0641e7

Add bogofilter

usr.bin.bogofilter +18 -0

diff --git a/usr.bin.bogofilter b/usr.bin.bogofilter
new file mode 100644
index 0000000..c24e0ad
--- /dev/null
+++ b/usr.bin.bogofilter
@@ -0,0 +1,18 @@
+# vim:syntax=apparmor
+
+#include <tunables/global>
+
+/usr/bin/bogofilter* {
+    #include <abstractions/base>
+
+    # Bogofilter configuration.
+    /etc/bogofilter.cf r,
+    @{HOME}/.bogofilter/ rwk,
+    @{HOME}/.bogofilter/* rwk,
+
+    # It wants to read the list of users. It's still functional if we deny
+    # this, but it shouldn't be very harmful either.
+    /etc/nsswitch.conf r,
+    /etc/passwd r,
+}
+