1 Sep 2011 02:16
Re: Why was the macports user implemented
Brandon Allbery <allbery.b <at> gmail.com>
2011-09-01 00:16:24 GMT
2011-09-01 00:16:24 GMT
On Wed, Aug 31, 2011 at 15:26, Rodolfo Aramayo <raramayo <at> gmail.com> wrote:
--
brandon s allbery allbery.b <at> gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
Great. Good explanation. Thanks, but then that begs the question as to
why the files in '/opt/local/' are not owned by macports:macports and
instead by 'root:admin and/or root:wheel'? Am I missing something in
here??
You don't want to allow Portfiles to remove random files owned by you; likewise, you don't want to allow it to remove random files installed by other ports (which you have implicitly validated by "port install"ing them as some user other than the macports user; this is normally root but might be yourself or some other user if you chose). The port build environment is set up to protect not only your files but also the rest of MacPorts. Ideally it'd be a sandbox in which only the port's own working files could be modified by a rogue command, but MacPorts isn't quite there yet.
brandon s allbery allbery.b <at> gmail.com
wandering unix systems administrator (available) (412) 475-9364 vm/sms
<div><div dir="ltr">On Wed, Aug 31, 2011 at 15:26, Rodolfo Aramayo <span dir="ltr"><<a href="mailto:raramayo <at> gmail.com">raramayo <at> gmail.com</a>></span> wrote:<br><div class="gmail_quote"> <blockquote class="gmail_quote"> Great. Good explanation. Thanks, but then that begs the question as to<br> why the files in '/opt/local/' are not owned by macports:macports and<br> instead by 'root:admin and/or root:wheel'? Am I missing something in<br> here??<br> </blockquote> <div><br></div> <div>You don't want to allow Portfiles to remove random files owned by you; likewise, you don't want to allow it to remove random files installed by other ports (which you have implicitly validated by "port install"ing them as some user other than the macports user; this is normally root but might be yourself or some other user if you chose). The port build environment is set up to protect not only your files but also the rest of MacPorts. Ideally it'd be a sandbox in which only the port's own working files could be modified by a rogue command, but MacPorts isn't quite there yet.</div> <div><br></div> </div>-- <br>brandon s allbery <a href="mailto:allbery.b <at> gmail.com" target="_blank">allbery.b <at> gmail.com</a><br>wandering unix systems administrator (available) (412) 475-9364 vm/sms<br><br> </div></div>
RSS Feed