[37794] branches/gsoc08-privileges/base/src/port1.0

Paul Magrath pmagrath at macports.org
Mon Jun 23 12:34:09 PDT 2008


Not for the simple ports like (just for example) cowsay. I think most  
ports won't tbh. For the ones that need it, going to add a setting to  
the Portfile format along the lines of "RequireRoot". That's the idea  
at any rate!

Paul.

On 23 Jun 2008, at 20:18, Daniel J. Luke wrote:

> On Jun 23, 2008, at 2:58 PM, pmagrath at macports.org wrote:
>> Revision37794Authorpmagrath at macports.orgDate2008-06-23 11:58:48  
>> -0700 (Mon, 23 Jun 2008)Log Message
>> Most actions are now performed using user privileges, up to and  
>> including the destroot stage. For install, the original root  
>> privileges are recovered and the install takes place as per usual.
>
>
> That's pretty neat, but doesn't destroot need to be root as well (so  
> that ownership/permissions can be set appropriately there?)
>
> As an example, the procmail port usese the 'install-suid' target  
> which would set the suid bit on the procmail binary as it's staged  
> in the destroot.
>
> --
> Daniel J. Luke
> +========================================================+
> | *---------------- dluke at geeklair.net ----------------* |
> | *-------------- http://www.geeklair.net -------------* |
> +========================================================+
> |   Opinions expressed are mine and do not necessarily   |
> |          reflect the opinions of my employer.          |
> +========================================================+
>
>
>



More information about the macports-dev mailing list