4
owner @{HOME}/.java/deployment/deployment.properties k,
7
/usr/lib/jvm/java-6-openjdk/jre/lib/*/IcedTeaPlugin.so mr,
8
/usr/lib/jvm/java-6-openjdk/jre/bin/java cx -> browser_openjdk,
9
/usr/lib/jvm/java-*-sun-1.*/jre/bin/java{,_vm} cx -> browser_java,
10
/usr/lib/jvm/java-*-sun-1.*/jre/lib/*/libnp*.so cx -> browser_java,
11
/usr/lib/j2*-ibm/jre/bin/java cx -> browser_java,
13
# Profile for the supported OpenJDK in Ubuntu. This doesn't require the
14
# unfortunate workarounds of the proprietary Javas, so have a separate
16
profile browser_openjdk {
17
#include <abstractions/base>
18
#include <abstractions/fonts>
19
#include <abstractions/gnome>
20
#include <abstractions/kde>
21
#include <abstractions/nameservice>
22
#include <abstractions/ssl_certs>
23
#include <abstractions/user-tmp>
24
#include <abstractions/private-files-strict>
28
@{PROC}/[0-9]*/net/if_inet6 r,
29
@{PROC}/[0-9]*/net/ipv6_route r,
34
/etc/ssl/certs/java/* r,
39
@{PROC}/filesystems r,
40
/sys/devices/system/cpu/ r,
41
/sys/devices/system/cpu/** r,
43
/var/lib/dbus/machine-id r,
46
/usr/lib/jvm/java-6-openjdk/jre/bin/java ix,
47
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client/classes.jsa m,
49
# Why would java need this?
50
deny /usr/bin/gconftool-2 x,
56
# Profile for commercial Javas. These need workarounds to work right (eg
57
# Sun's forcing of an executable stack (LP: #535247)).
58
profile browser_java {
59
#include <abstractions/base>
60
#include <abstractions/fonts>
61
#include <abstractions/gnome>
62
#include <abstractions/kde>
63
#include <abstractions/nameservice>
64
#include <abstractions/ssl_certs>
65
#include <abstractions/user-tmp>
66
#include <abstractions/private-files-strict>
70
@{PROC}/[0-9]*/net/if_inet6 r,
71
@{PROC}/[0-9]*/net/ipv6_route r,
74
/etc/debian_version r,
78
/etc/ssl/certs/java/* r,
83
@{PROC}/filesystems r,
84
/sys/devices/system/cpu/ r,
85
/sys/devices/system/cpu/** r,
87
/var/lib/dbus/machine-id r,
90
/usr/lib/jvm/java-*-sun-1.*/jre/bin/java{,_vm} ix,
91
/usr/lib/jvm/java-*-sun-1.*/jre/lib/i386/client/classes.jsa m,
92
/usr/lib/j2*-ibm/jre/bin/java ix,
94
# noisy, can't write here anyway
98
deny /usr/bin/gconftool-2 x,
101
owner @{HOME}/** rwk,
103
# These are seriously unfortunate, but required due to LP: #535247
105
owner @{HOME}/.java/**/cache/** m,
107
/usr/lib{,32,64}/jvm/**/*.jar mr,
108
/usr/share/fonts/** m,