Prisma Cloud Compute: How to resolve "filesystem monitoring initialization failed: fork/exec /opt/twistlock/fsmon: operation not permitted " error
661
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
- Verify that fapolicyd is enabled/running on host:
systemctl status fapolicyd
- 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
- Allow the path inside the
99-twistlock-allow.rules file and save it.
allow perm=execute all : dir=/var/lib/twistlock
- Restart fapolicyd service.
sudo systemctl restart fapolicyd
- Restart the defender and the error should go away.