cachetool: Heads up: This fails to work as of Rocky Linux 9.2 (In FastCGI.php line 114: Access Denied)
After a recent upgrade from Rocky Linux 9.1 to Rocky Linux 9.2 on a SELinux enabled system, cachetool now fails with:
In FastCGI.php line 114: Error: Access denied.
I’ve managed to track this back to PHP now being unable to run scripts from /dev/shm
:
type=AVC msg=audit(1684332900.327:36001): avc: denied { open } for pid=279921 comm="php-fpm" path="/dev/shm/cachetool-6464e1644f7e67.25692862.php" dev="tmpfs" ino=61 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=file permissive=0
I know that you can manually set the --tmp-dir
, but so far this has not been necessary for me until now.
Incidentally, if the tmp dir is set to /tmp
or /var/run
cachetool fails with:
In FastCGI.php line 114: Error: File not found.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 22 (4 by maintainers)
Yes I fixed it
@jamieburchell It works !!! I deleted open_basedir
Thanks a lot
If it doesn’t solve it, I’ll remove /dev/shm as a default.