Prisma Cloud Compute: How to resolve "filesystem monitoring initialization failed: fork/exec /opt/twistlock/fsmon: operation not permitted " error

Prisma Cloud Compute: How to resolve "filesystem monitoring initialization failed: fork/exec /opt/twistlock/fsmon: operation not permitted " error

663
Created On 02/12/25 17:10 PM - Last Modified 10/20/25 15:51 PM


Symptom


  • You have deployed a Host/Container defender in your environment.
  • The defender is connected but with an error "Error in defender Component"
  • Upon expanding the details, you see following error: "filesystem monitoring initialization failed: fork/exec /opt/twistlock/fsmon: operation not permitted "

 



Environment


  • Prisma Cloud Compute SaaS version
  • Prisma Cloud Compute Self-Hosted version
  • RHEL 

 



Cause


The error may be caused by fapolicyd (File Access Policy Daemon) being enabled. fapolicyd is a security feature in RHEL that regulates access to executable files and scripts based on predefined policies. Acting as a whitelist/blacklist mechanism, fapolicyd ensures that only authorized files can be executed, enhancing system security.

We see this error because Twistlock is not properly whitelisted in fapolicyd’s policies, preventing it from running as expected.



Resolution


  1. Verify that fapolicyd is enabled/running on host:
     systemctl status fapolicyd

  1. Whitelist the path "/var/lib/twistlock" in the fapolicyd by creating a custom rule (99-twistlock-allow.rules).         
     sudo vi /etc/fapolicyd/rules.d/99-twistlock-allow.rules

  1. Allow the path inside the 99-twistlock-allow.rules file and save it.
     allow perm=execute all : dir=/var/lib/twistlock

  1. Restart fapolicyd service.
     sudo systemctl restart fapolicyd

  1. Restart the defender and the error should go away.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000HF1tCAG&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail