]> jfr.im git - irc/unrealircd/unrealircd.git/commitdiff
Add AppArmor profile in extras/security/apparmor/unrealircd
authorBram Matthys <redacted>
Sat, 25 Nov 2017 08:54:47 +0000 (09:54 +0100)
committerBram Matthys <redacted>
Sat, 25 Nov 2017 08:54:47 +0000 (09:54 +0100)
See: https://www.unrealircd.org/docs/Using_AppArmor_with_UnrealIRCd

extras/security/apparmor/unrealircd [new file with mode: 0644]

diff --git a/extras/security/apparmor/unrealircd b/extras/security/apparmor/unrealircd
new file mode 100644 (file)
index 0000000..3bce651
--- /dev/null
@@ -0,0 +1,28 @@
+# AppArmor profile for UnrealIRCd 4.0.16+
+#
+# Note that you may still see some DENIED warnings in logs with
+# operation="chmod". These are harmless and can be safely ignored.
+#
+# Tested on Ubuntu 16.x and 17.x
+#
+# NOTE: you will have to modify the path to executable below
+#       if it's not /home/ircd/unrealircd/bin/unrealircd.
+
+#include <tunables/global>
+
+# Change the pathname of your UnrealIRCd executable here:
+/home/ircd/unrealircd/bin/unrealircd {
+  #include <abstractions/base>
+  #include <abstractions/nameservice>
+
+  @{HOME}/unrealircd/conf/ r,
+  @{HOME}/unrealircd/conf/** r,
+  @{HOME}/unrealircd/data/ircd.tune rw,
+  @{HOME}/unrealircd/data/unrealircd.pid rw,
+  @{HOME}/unrealircd/lib/*.so* mr,
+  @{HOME}/unrealircd/logs/* rw,
+  @{HOME}/unrealircd/modules/**.so r,
+  @{HOME}/unrealircd/tmp/ r,
+  @{HOME}/unrealircd/tmp/* mrw,
+  @{HOME}/unrealircd/bin/unrealircd mr,
+}