[php-src] Issue #25022: php-fpm is trying to read the entire / by default

From: Date: Wed, 28 Oct 2026 22:50:50 +0000
Subject: [php-src] Issue #25022: php-fpm is trying to read the entire / by default
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-253908@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/25022 Author: krustfurt ### Description The following Apparmor profile for PHP-FPM: ```php abi <abi/4.0>, include <tunables/global> /usr/sbin/php-fpm8.4 { include <abstractions/base> include <abstractions/php> capability chown, capability dac_override, capability kill, capability net_admin, capability setgid, capability setuid, .... ``` Resulted in this output: ``` apparmor="DENIED" operation="file_mmap" class="file" info="Failed name lookup - disconnected path" error=-13 profile="/usr/sbin/php-fpm8.4" ``` But I expected this output instead: ``` (No error) ``` And when I change the flag like this and restarted php-fpm, /usr/sbin/php-fpm8.4 flags=(attach_disconnected) { PHP-FPM tried to read entire /! apparmor="DENIED" operation="file_mmap" class="file" profile="/usr/sbin/php-fpm8.4" name="/" ``` Profile: /usr/sbin/php-fpm8.4 Path: / New Mode: owner rw Severity: unknown [1 - owner / rw,] (A)llow / [(D)eny] / (I)gnore / (G)lob / Glob with (E)xtension / (N)ew / Audi(t) / (O)wner permissions off / Abo(r)t / (F)inish ``` I removed flags=(attach_disconnected) for now but why PHP-FPM tried to read /? ### PHP Version ```plain PHP 8.4.27 (NTS) ``` ### Operating System Linux

« previous php.bugs (#253908) next »