source: debian/apparmor/i2p @ ac56a63

Last change on this file since ac56a63 was ac56a63, checked in by kytv <kytv@…>, 5 years ago

remove /dev/(u)?random since these are included in the base abstraction

  • Property mode set to 100644
File size: 2.6 KB
Line 
1# Last Modified: Sun Apr 12 22:08:32 2015
2# vim:syntax=apparmor et ts=4 sw=4
3
4  #include <abstractions/base>
5  #include <abstractions/fonts>
6  #include <abstractions/nameservice>
7  #include <abstractions/ssl_certs>
8  #include <abstractions/user-tmp>
9
10  network inet stream,
11  network inet6 stream,
12
13  # Needed by Java
14  @{PROC}                                                 r,
15  owner @{PROC}/[0-9]*/                                   r,
16  owner @{PROC}/[0-9]*/status                             r,
17  @{PROC}/[0-9]*/net/ipv6_route                           r,
18  @{PROC}/[0-9]*/net/if_inet6                             r,
19  /sys/devices/system/cpu/                                r,
20  /sys/devices/system/cpu/**                              r,
21
22  /etc/ssl/certs/java/**                                  r,
23  /etc/timezone                                           r,
24  /usr/share/javazi/**                                    r,
25
26  /etc/java-*-openjdk/**                                  r,
27  /usr/lib/jvm/default-java/jre/bin/java                  rix,
28  /usr/lib/jvm/java-*-openjdk-*/jre/bin/java              rix,
29  /usr/lib/jvm/java-*-openjdk-*/jre/bin/keytool           rix,
30
31  # Oracle Java is needed on the Raspberry Pi and is included in Raspbian's repositories
32  /usr/lib/jvm/jdk-*-oracle-*/jre/bin/java                rix,
33  /usr/lib/jvm/jdk-*-oracle-*/jre/bin/keytool             rix,
34
35  # */client/classes.jsa is only found (and needed) in 32-bit JVMs.
36  /usr/lib/jvm/java-*-openjdk-*/jre/lib/i386/client/classes.jsa m,
37  /usr/lib/jvm/java-*-oracle-*/jre/lib/i386/client/classes.jsa m,
38
39  # needed for I2P's graphs
40  /usr/share/java/java-atk-wrapper.jar                    r,
41
42  # I2P specific
43  /usr/share/i2p/**                                       r,
44
45  # Used by some plugins
46  /usr/share/java/eclipse-ecj-*.jar                       r,
47
48  # Tanuki java wrapper
49  /etc/i2p/wrapper.config                                 r,
50  /usr/sbin/wrapper                                       rix,
51  /usr/share/java/wrapper*.jar                            r,
52
53  # 'm' is needed by the I2P-Bote plugin
54  /{,var/}tmp/                                            rwm,
55  owner /{,var/}tmp/**                                    rwklm,
56
57  # Prevent spamming the logs
58  deny /dev/tty                                           rw,
59  deny @{PROC}/[0-9]*/fd/                                 r,
60  deny /usr/sbin/                                         r,
61  deny /var/cache/fontconfig/                             wk,
62
63  # Used by some versions of the Tanuki wrapper, not needed by I2P
64  deny /usr/share/java/hamcrest*.jar                      r,
65  deny /usr/share/java/junit*.jar                         r,
Note: See TracBrowser for help on using the repository browser.