Gentoo Archives: gentoo-dev

From: Davide Pesavento <pesa@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: Enable FEATURES="userpriv usersandbox" by default?
Date: Mon, 28 May 2012 21:53:42
Message-Id: CADfzvvaxR4W7OC6yYtzt138pdVH3hyDabWBfOoGtbZ0BhR8BgA@mail.gmail.com
In Reply to: [gentoo-dev] RFC: Enable FEATURES="userpriv usersandbox" by default? by Zac Medico
1 On Mon, May 28, 2012 at 11:34 PM, Zac Medico <zmedico@g.o> wrote:
2 > Hi,
3 >
4 > In case you aren't familiar with FEATURES=userpriv, here's the
5 > description from the make.conf(5) man page:
6 >
7 >  Allow portage to drop root privileges and compile packages as
8 >  portage:portage without a sandbox (unless usersandbox is also used).
9 >
10 > The rationale for having the separate "usersandbox" setting, to enable
11 > use of sys-apps/sandbox, is that people who enable userpriv sometimes
12 > prefer to have sandbox disabled in order to slightly improve
13 > performance. However, I would recommend to enable usersandbox by
14 > default, for the purpose of logging sandbox violations.
15 >
16 > Note that ebuilds can set RESTRICT="userpriv" if they require superuser
17 > privileges during any of the src_* phases that userpriv affects.
18 >
19 > I've been using FEATURES="userpriv usersandbox" for years, and I don't
20 > remember experiencing any problems because of it, so I think that it
21 > would be reasonable to have it enabled by default. Objections?
22 > --
23 > Thanks,
24 > Zac
25 >
26
27 I've been using both FEATURES for a few years too, seemingly without
28 adverse effects, so +1 from me.
29
30 Thanks,
31 Pesa