[MacPorts] #64073: apache2 @2.4.51_2: Monterey sandbox read denial of php81-apache2handler
MacPorts
noreply at macports.org
Sat Nov 27 23:58:16 UTC 2021
#64073: apache2 @2.4.51_2: Monterey sandbox read denial of php81-apache2handler
-----------------------------+------------------------------------------
Reporter: paxperscientiam | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: | Port: apache2 php81-apache2handler
-----------------------------+------------------------------------------
Hello!
I'm unable to use the apache php module on Monterey. Here's what I've
learned so far.
Firstly, I got this interesting output when installing
php81-apache2handler
{{{
---> Configuring php81-apache2handler
Warning: Configuration logfiles contain indications of -Wimplicit-
function-declaration; check that features were not accidentally disabled:
_controlfp_s: found in php-8.1.0/config.log
_controlfp: found in php-8.1.0/config.log
__crc32d: found in php-8.1.0/config.log
gethostbyname_r: found in php-8.1.0/config.log
}}}
When the module is enabled (`LoadModule php_module
${MODULE_PREFIX}/mod_php81.so`), the apache start command (` sudo port
reload apache2`) fails; when it's not enabled, apache starts just fine.
Console.app reveals the following relevant error message:
{{{
Sandbox: logd_helper(48721) deny(1) file-read-data
/opt/local/lib/apache2/modules/mod_php81.so
}}}
The launchd log shows the following:
{{{
2021-11-27 18:46:26.854037 (system/org.apache.httpd) <Notice>: service
state: spawning
2021-11-27 18:46:26.854092 (system/org.apache.httpd) <Notice>: launching:
inefficient
2021-11-27 18:46:26.855317 (system/org.apache.httpd [67775]) <Notice>:
xpcproxy spawned with pid 67775
2021-11-27 18:46:26.855344 (system/org.apache.httpd [67775]) <Notice>:
internal event: SPAWNED, code = 0
2021-11-27 18:46:26.855350 (system/org.apache.httpd [67775]) <Notice>:
service state: xpcproxy
2021-11-27 18:46:26.855354 (system/org.apache.httpd [67775]) <Notice>:
deferred event: domain spawn response: 0
2021-11-27 18:46:26.855359 (system/org.apache.httpd [67775]) <Notice>:
internal event: SOURCE_ATTACH, code = 0
2021-11-27 18:46:26.860593 (system/org.apache.httpd [67775]) <Notice>:
service state: running
2021-11-27 18:46:26.860611 (system/org.apache.httpd [67775]) <Notice>:
internal event: INIT, code = 0
2021-11-27 18:46:26.860637 (system/org.apache.httpd [67775]) <Notice>:
Successfully spawned httpd-wrapper[67775] because inefficient
2021-11-27 18:46:27.065059 (system/org.apache.httpd [67775]) <Notice>:
service exited: dirty = 0, supported pressured-exit = 0
2021-11-27 18:46:27.065080 (system/org.apache.httpd [67775]) <Notice>:
exited due to exit(1)
2021-11-27 18:46:27.065084 (system/org.apache.httpd [67775]) <Notice>:
service state: exited
2021-11-27 18:46:27.065088 (system/org.apache.httpd [67775]) <Notice>:
internal event: EXITED, code = 0
2021-11-27 18:46:27.065092 (system) <Notice>: service inactive:
org.apache.httpd
2021-11-27 18:46:27.065097 (system/org.apache.httpd [67775]) <Notice>:
service state: not running
2021-11-27 18:46:27.065106 (system/org.apache.httpd) <Notice>: Service
only ran for 0 seconds. Pushing respawn out by 10 seconds.
2021-11-27 18:46:27.065158 (system/org.apache.httpd) <Notice>: internal
event: WILL_SPAWN, code = 0
2021-11-27 18:46:27.065193 (system/org.apache.httpd) <Notice>: service
state: spawn scheduled
2021-11-27 18:46:27.065195 (system/org.apache.httpd) <Notice>: service
throttled by 10 seconds
}}}
Hopefully, this isn't just me.
--
Ticket URL: <https://trac.macports.org/ticket/64073>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list