Hi All,
I recently installed Sun Java on a system with a fairly basic SELinux install on it.
I'm running Debian Etch and installed the Sun Java package from the non-free package repository.
Here are the error notices that appear in the syslog when I run java -version
.
`Feb 9 14:02:40 dev kernel: audit(1265742160.570:4107): avc: denied { execmem } for pid=9882 comm="java" scontext=user_u:system_r:unconfined_t:s0 tcontext=user_u:system_r:unconfined_t:s0 tclass=process
Feb 9 14:02:40 dev kernel: audit(1265742160.578:4108): avc: denied { execmem } for pid=9882 comm="java" scontext=user_u:system_r:unconfined_t:s0 tcontext=user_u:system_r:unconfined_t:s0 tclass=process`
I've googled around and it seems that I need to create an SELinux policy that permits Java to perform operations that violate the execmem
constraints. Is this a correct assumption? If so, how should I get started?
Updates:
I looked for and found a targeted policy aimed at handling Java. I installed it using the following command:
$ sudo semodule -i /usr/share/selinux/refpolicy-targeted/java.pp
This did not help, however. I continue to see identical audit messages in the syslog.