如何让selinux信任鳞片IDE

最后编辑了

在Linux系统上启用SELinux(例如Fedora),启动IDE可能会失败 - 1的退出代码。错误对话框通常包含以下文本:

JVM terminated. Exit code=-1
-Djava.class.path=/home/user/squishide-4.0.2/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-os linux
-ws gtk
-arch x86
-showsplash
-launcher /home/user/squishide-4.0.2/squishide
-name Squishide
--launcher.library /home/user/squishide-4.0.2/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520/eclipse_1206.so
-startup /home/user/squishide-4.0.2/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
-vm /home/user/squishide-4.0.2/jre/bin/../lib/i386/client/libjvm.so
-vmargs
-Djava.class.path=/home/user/squishide-4.0.2/plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar

如果从控制台启动了蜂窝线IDE,另外还将输出类似于以下内容的错误消息:

/home/user/squishide-4.0.2/jre/bin/../lib/i386/client/libjvm.so: cannot enable executable stack as shared object requires: Permission denied

此外,Selinux故障排除程序应用程序还可以显示类似于此的Selinux安全警报:

SELinux is preventing /home/user/squishide-4.0.2/squishide from making the program stack executable.

The problem is caused by the library libjvm.so which needs to be run with an executable stack, something that SELinux will not permit a library to do by default.

The solution is to tell SELinux to allow the library to have an executable stack. This is done by running the chcon command as follows (but obviously replacing the path to the Squish IDE with your own system’s path):

chcon -t execmem_exec_t /home/user/squishide-4.0.2/squishide

也可以看看: 在拒绝拒绝之后,无法恢复分段prot .