From d73ab29514e8431ea6810cb943a2cd3f7a94e4fd Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 17 Dec 2011 18:32:02 +0000 Subject: adding apparmor profile for gnunet-helper-nat-server from Jacob --- contrib/apparmor/usr.bin.gnunet-helper-nat-server | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 contrib/apparmor/usr.bin.gnunet-helper-nat-server (limited to 'contrib') diff --git a/contrib/apparmor/usr.bin.gnunet-helper-nat-server b/contrib/apparmor/usr.bin.gnunet-helper-nat-server new file mode 100644 index 000000000..d590021d5 --- /dev/null +++ b/contrib/apparmor/usr.bin.gnunet-helper-nat-server @@ -0,0 +1,30 @@ +# ------------------------------------------------------------------ +# +# Copyright (C) 2011 Jacob Appelbaum +# +# 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. +# +# This should be placed in /etc/apparmor.d/usr.sbin.gnunet-helper-nat-server +# This profile may be a reasonable starting point for other NAT helpers. +# +# ------------------------------------------------------------------ + +#include +/usr/bin/gnunet-helper-nat-server { + #include + #include + + # Allow these + capability net_raw, + capability setuid, + network inet raw, + network inet dgram, # UDP IPv4 + + # Deny these + deny network inet6 stream, # TCP IPv6 + deny network inet6 dgram, # UDP IPv6 + + # Deny everything else by default with AppArmor +} -- cgit v1.2.3