source: debian/apparmor/i2p @ 610af51

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

Update timestamp

  • Property mode set to 100644
File size: 3.4 KB
Line 
1# Last Modified: Sun Dec 06 12:30: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
9  network inet stream,
10  network inet dgram,
11  network inet6 stream,
12  network inet6 dgram,
13
14  # Needed by Java
15  @{PROC}                                                 r,
16  owner @{PROC}/[0-9]*/                                   r,
17  owner @{PROC}/[0-9]*/status                             r,
18  @{PROC}/[0-9]*/net/ipv6_route                           r,
19  @{PROC}/[0-9]*/net/if_inet6                             r,
20  /sys/devices/system/cpu/                                r,
21  /sys/devices/system/cpu/**                              r,
22
23  /etc/ssl/certs/java/**                                  r,
24  /etc/timezone                                           r,
25  /usr/share/javazi/**                                    r,
26
27  /etc/java-*-openjdk/**                                  r,
28  /usr/lib/jvm/default-java/jre/bin/java                  rix,
29  /usr/lib/jvm/java-*-openjdk-*/jre/bin/java              rix,
30  /usr/lib/jvm/java-*-openjdk-*/jre/bin/keytool           rix,
31
32  # Oracle Java is needed on the Raspberry Pi and is included in Raspbian's repositories
33  /usr/lib/jvm/jdk-*-oracle-*/jre/bin/java                rix,
34  /usr/lib/jvm/jdk-*-oracle-*/jre/bin/keytool             rix,
35
36  # */client/classes.jsa is only found (and needed) in 32-bit JVMs.
37  /usr/lib/jvm/java-*-openjdk-*/jre/lib/i386/client/classes.jsa m,
38  /usr/lib/jvm/java-*-oracle-*/jre/lib/i386/client/classes.jsa m,
39
40  # needed for I2P's graphs
41  /usr/share/java/java-atk-wrapper.jar                    r,
42
43  # I2P specific
44  /usr/share/i2p/**                                       r,
45
46  # Used by some plugins
47  /usr/share/java/eclipse-ecj-*.jar                       r,
48
49  # Tanuki java wrapper
50  /etc/i2p/wrapper.config                                 r,
51  /usr/sbin/wrapper                                       rix,
52  /usr/share/java/wrapper*.jar                            r,
53
54  # 'm' is needed by the I2P-Bote plugin
55  /{,lib/live/mount/overlay/}tmp/                         rwm,
56  owner /{,lib/live/mount/overlay/}tmp/hsperfdata_i2psvc/ rwk,
57  owner /{,lib/live/mount/overlay/}tmp/hsperfdata_i2psvc/** rw,
58  owner /{,lib/live/mount/overlay/}tmp/wrapper*           rwk,
59  owner /{,lib/live/mount/overlay/}tmp/wrapper*/**        rw,
60  # Scrypt used by I2P-Bote
61  owner /{,lib/live/mount/overlay/}tmp/scrypt*            rwk,
62  owner /{,lib/live/mount/overlay/}tmp/scrypt*/**         rw,
63  owner /{,lib/live/mount/overlay/}tmp/i2p-daemon/        rwm,
64  owner /{,lib/live/mount/overlay/}tmp/i2p-daemon/**      rwkm,
65  # /graphs in the router console
66  owner /{,lib/live/mount/overlay/}tmp/imageio[0-9]*.tmp  rwk,
67
68  # Prevent spamming the logs
69  deny /dev/tty                                           rw,
70  deny /{,lib/live/mount/overlay/}var/tmp/                r,
71  deny @{PROC}/[0-9]*/fd/                                 r,
72  deny /usr/sbin/                                         r,
73  deny /var/cache/fontconfig/                             wk,
74
75  # Some versions of the Tanuki wrapper package will try to load these jars but
76  # they are  not needed by I2P. The deny rule here will prevent the logs from
77  # being spammed.
78  deny /usr/share/java/hamcrest*.jar                      r,
79  deny /usr/share/java/junit*.jar                         r,
Note: See TracBrowser for help on using the repository browser.