Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 510364

Summary: OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x000003110d000000, 2555904, 1) failed; error='Permission denied' (errno=13)
Product: Gentoo Linux Reporter: R030t1
Component: SELinuxAssignee: Sven Vermeulen (RETIRED) <swift>
Status: RESOLVED FIXED    
Severity: normal CC: selinux
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: sec-policy r3
Package list:
Runtime testing required: ---
Attachments: Autogenerated error file.

Description R030t1 2014-05-15 00:36:18 UTC
Created attachment 376950 [details]
Autogenerated error file.

Java VM fails to start. I will work on getting a set of AVC denials if they are needed, but what fixed the issue was relabeling /usr/lib64/icedtea7/bin/java to java_exec_t and setting allow_java_execstack to on.

This probably affects every binary in that directory. Had to apply the new label to javac as well.
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2014-05-17 15:29:16 UTC
Thanks, patch sent upstream so it can be pulled in easily.

I've also added USE=selinux dependencies in icedtea(-bin)
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2014-05-22 17:02:02 UTC
Applied upstream and in our policy, will be in rev 3
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2014-05-29 20:09:56 UTC
r3 is in tree, ~arch
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2014-08-01 21:18:39 UTC
r3 is stabilized