I'm running ArcGIS Server 10.7 on RHEL Server 7.6
Whenever I start ArcGIS Server with the systemd unit included in the install, copied from arcgis/server/framework/etc/scripts/ to /etc/systemd/system/arcgisserver.service, it gives SELinux alerts blocking read/open on libjsig.so and libprejsig.so.
When I start ArcGIS Server by directly calling startserver.sh, There are no alerts.
I have attempted to install local policy allowing access using audit2allow via this guide: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security-enhanced_linux/sect-security-enhanced_linux-fixing_problems-allowing_access_audit2allow
and also in the RHEL SELinux Troubleshooter instructions:
# ausearch -c 'ip' --raw | audit2allow -M my-ip
# semodule -i my-ip.
I've also tried adjusting the file's context with:
# semanage fcontext -a -t default_t libjsig.so
# restorecon -v libjsig.so
How can I start ArcGIS Server through systemd without the SELinux permission errors?