By default, MacOS does not support linux capabilities.
This can be observed from the fact that the setcap
command does not exist on MacOS.
As far as I can tell, the libcap
library does not exist on MacOS.
Is there a way to enable or install linux capabilities or a similar system such that they can be utilized on MacOS?
Is it possible to manually patch MacOS to support capabilities?
Note: I am asking this mostly out of curiosity, not because I am trying to actually utilize this as a solution to a problem I have. I am aware that other solutions like setuid
exist.
CAP_CHOWN
capability? Anyway, if you want users to be allowed to runchown
, make them sudoers. Letting people runchown
lets them run command as root if they want.