Remove unnecessary (and perilous) function pointer cast.
[oweals/gnunet.git] / contrib / apparmor / gnunet-service-revocation
index 6e6412820289a3fd69024d73833b9c2ecbff091a..cd3c59f03dc425b3d5f34b2f9f89875856452a1d 100644 (file)
@@ -1,27 +1,19 @@
 # Last Modified: Thu Jul  9 10:16:30 2015
-
 #include <tunables/global>
 #include <tunables/gnunet>
 
 profile @{GNUNET_PREFIX}/lib/gnunet/libexec/gnunet-service-revocation {
+  #include <abstractions/base>
   #include <abstractions/gnunet-common>
   
-  /etc/gnunet.conf r,
-  @{HOME}/.config/gnunet.conf r,
-
-  /tmp/gnunet-system-runtime/gnunet-service-revocation.unix w,
+  /tmp/gnunet-system-runtime/gnunet-service-revocation.sock rw,
 
-  /var/lib/gnunet/.local/share/gnunet/revocation.dat rw,
+  @{GNUNET_USER}/.local/share/gnunet/revocation.dat rw,
 
   @{HOME}/.local/share/gnunet/revocation.dat rw,
 
-  /usr/lib/ld-*.so r,
-
   @{GNUNET_PREFIX}/lib/gnunet/libexec/gnunet-service-revocation mr,
-
-  #Gnunet librairies
-  @{GNUNET_PREFIX}/lib/libgnunetcore.so.* mr,
-  @{GNUNET_PREFIX}/lib/libgnunetrevocation.so.* mr,
-  @{GNUNET_PREFIX}/lib/libgnunetset.so.* mr,
-  @{GNUNET_PREFIX}/lib/libgnunetstatistics.so.* mr,
+  
+  # Site-specific additions and overrides. See local/README for details.
+  #include <local/gnunet>
 }