On 12/10/2010 08:45 AM, Volker Simonis wrote:
Hi Per,
the SE stuff should already be handled by the Make process (as pointed
out by Andrew). However I think the detection of SELinux is quite
fragile, I also had problems with it in the past. In the build log you
should see something like:
\
rm -f libjvm.so.1; ln -s libjvm.so libjvm.so.1;
\
[ -f libjvm_g.so ] || { ln -s libjvm.so libjvm_g.so; ln -s
libjvm.so.1 libjvm_g.so.1; };
\
if [ \"\" = \"\" ] ; then \
if [ -x /usr/sbin/selinuxenabled ] ; then \
/usr/sbin/selinuxenabled; \
if [ $? = 0 ] ; then \
/usr/bin/chcon -t textrel_shlib_t libjvm.so;
\
if [ $? != 0 ]; then \
echo "ERROR: Cannot chcon libjvm.so";
\
fi \
fi \
fi \
fi \
}
Linking vm...
If this fails, you'll have to work around it manually.
The command
/usr/bin/chcon -t textrel_shlib_t libjvm.so
is insufficient.
We also need to do:
chcon -t execmem_exec_t linux_i486_compiler2/product/gamma
This command enables test_gamma to sucessfully run with
SELinux enabled.
There seems to a fair number of generated files, so it's tricky
to figure out where to add the needed chcon (assuming that is
the correct fix).
--
--Per Bothner
[email protected] [email protected] http://per.bothner.com/