source: debian/apparmor/i2p @ eaae060

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

remove 'l' from debian apparmor profiles

  • Property mode set to 100644
File size: 3.3 KB
RevLine 
[281686b]1# Last Modified: Thu May 21 18:30:32 2015
[29953ea]2# vim:syntax=apparmor et ts=4 sw=4
3
[7584346]4  #include <abstractions/base>
5  #include <abstractions/fonts>
6  #include <abstractions/nameservice>
7  #include <abstractions/ssl_certs>
[29953ea]8
[7584346]9  network inet stream,
[b594404]10  network inet dgram,
[7584346]11  network inet6 stream,
[b594404]12  network inet6 dgram,
[29953ea]13
[11c3230]14  # Needed by Java
[749e19a]15  @{PROC}                                                 r,
[11c3230]16  owner @{PROC}/[0-9]*/                                   r,
17  owner @{PROC}/[0-9]*/status                             r,
[341bd6d]18  @{PROC}/[0-9]*/net/ipv6_route                           r,
19  @{PROC}/[0-9]*/net/if_inet6                             r,
[11c3230]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
[f6f051c]55  /{,lib/live/mount/overlay/}tmp/                         rwm,
[25f6c3d]56  owner /{,lib/live/mount/overlay/}tmp/hsperfdata_i2psvc/ rwk,
57  owner /{,lib/live/mount/overlay/}tmp/hsperfdata_i2psvc/** rw,
[b594404]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,
[f6f051c]63  owner /{,lib/live/mount/overlay/}tmp/i2p-daemon/        rwm,
[eaae060]64  owner /{,lib/live/mount/overlay/}tmp/i2p-daemon/**      rwkm,
[11c3230]65
66  # Prevent spamming the logs
67  deny /dev/tty                                           rw,
[25f6c3d]68  deny /{,lib/live/mount/overlay/}var/tmp/                r,
[11c3230]69  deny @{PROC}/[0-9]*/fd/                                 r,
70  deny /usr/sbin/                                         r,
71  deny /var/cache/fontconfig/                             wk,
72
[281686b]73  # Some versions of the Tanuki wrapper package will try to load these jars but
74  # they are  not needed by I2P. The deny rule here will prevent the logs from
75  # being spammed.
[11c3230]76  deny /usr/share/java/hamcrest*.jar                      r,
77  deny /usr/share/java/junit*.jar                         r,
Note: See TracBrowser for help on using the repository browser.