320 shaares
Check mode
getenforce
Restore SELinux context recursively
sudo restorecon -R -v /mypath
Or define explicitly bin_t for the script
sudo semanage fcontext -a -t bin_t "/mypath/psft-appserver-APPDOM.sh"
sudo restorecon -v /mypath/psft-appserver-APPDOM.sh
Check SELinux context only for some files
ls -Z/-Zd /mypath/myfile