0

I have enabled selinux on oracle linux 8.9 system. enitre system is stable and has appropriate contexts for all files and processes but in few scenarios wherever my java code has some system level command execution it is failing.

com.mi.myservice.MIConfigException: errorCode = 1039: Error while executing system command '/usr/bin/pgrep': code 1, output = '

I do not see any SELinux denial errors in audit.log. All places in my code where i am trying to execute system commands from java code it is failing.

the java process have initrc_t context and in this example case pgrep process have bin_t context since it is at /usr/bin location. any suggestions?

I cannot find any error logs anywhere except the tomcat logs which i shared, i have tried enabling httpd_execmem boolean but that also did not solve issue

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.