mysql55: sh: /bin/ps: Operation not permitted

Joshua Root jmr at macports.org
Sat Dec 14 01:04:54 PST 2013


On 2013-12-14 11:03 , Bradley Giesbrecht wrote:
> Is this a problem or a red herring?
> 
> Is sandboxing possibly preventing access to /bin/ps?
> 
> CMakeLists.txt:
> ...
> IF(NOT FIND_PROC)
>   # SysV style
>   EXECUTE_PROCESS(COMMAND ps -ef OUTPUT_QUIET ERROR_QUIET RESULT_VARIABLE result)
> MESSAGE(FATAL_ERROR "MACPORTS: SysV style result='${result}'")
> ...
> 
> 
> Result:
> ...
> sh: /bin/ps: Operation not permitted
> sh: /bin/ps: Operation not permitted
> CMake Error at scripts/CMakeLists.txt:126 (MESSAGE):
>   MACPORTS: SysV style result='Operation not permitted'
> ...

Sandboxed programs cannot run setuid executables. No exceptions.

If you need to disable sandboxing, set portsandbox_active to false in
your Portfile. Ideally only do that for the duration of the specific
invocation of 'system' that needs it, and restore its previous value
afterwards.

- Josh


More information about the macports-dev mailing list