Skip to content

Symptoms

  • The inventory-api service fails to start on a RHEL 9 server.
  • systemctl status inventory-api shows code=exited, status=13/PERMISSION.
  • The binary at /opt/inventory-api/bin/server has correct file permissions (755, owned by the service user).
  • Running the binary manually with sudo -u inventory /opt/inventory-api/bin/server also fails with "Permission denied".
  • Running the same binary with setenforce 0 (permissive mode) allows it to start successfully.
  • The application was deployed to a new server with SELinux in enforcing mode.
  • The previous server had SELinux disabled.