From: Duncan <1i5t5.duncan@cox.net>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Re: RFC: Enable FEATURES="userpriv usersandbox" by default?
Date: Mon, 28 May 2012 23:56:28 +0000 (UTC) [thread overview]
Message-ID: <pan.2012.05.28.23.56.28@cox.net> (raw)
In-Reply-To: 4FC3EF5E.90900@gentoo.org
Zac Medico posted on Mon, 28 May 2012 14:34:22 -0700 as excerpted:
> In case you aren't familiar with FEATURES=userpriv, here's the
> description from the make.conf(5) man page:
>
> Allow portage to drop root privileges and compile packages as
> portage:portage without a sandbox (unless usersandbox is also used).
>
> The rationale for having the separate "usersandbox" setting, to enable
> use of sys-apps/sandbox, is that people who enable userpriv sometimes
> prefer to have sandbox disabled in order to slightly improve
> performance. However, I would recommend to enable usersandbox by
> default, for the purpose of logging sandbox violations.
>
> Note that ebuilds can set RESTRICT="userpriv" if they require superuser
> privileges during any of the src_* phases that userpriv affects.
>
> I've been using FEATURES="userpriv usersandbox" for years, and I don't
> remember experiencing any problems because of it, so I think that it
> would be reasonable to have it enabled by default. Objections?
I saw the thread on portage-dev so was waiting for the thread here that
you mentioned you'd start...
Some years ago I had some problem or other with the usersandbox and
userpriv combination (AFAIK it would work with just one of the two, but
not both), but that was several years ago now, and was almost certainly
~arch (and possibly pre-unmask), so yes, I'd say have them both on by
default. I've had no problem with it recently.
As is traditional for this sort of defaults-change, I'd suggest creating
a news item for it, with the usual paragraph explanation and referral to
the manpage and/or handbook for more information.
If I don't miss my guess, there's likely a number of folks that had
either userpriv or userstandbox disabled for some package or other, years
ago, who simply forgot about it and never reenabled. I'm usually pretty
good about that, and only probably 6-8 months ago realized I had one of
the two disabled, and couldn't remember why (probably 2-3 years ago I
started putting dated comments in the config when I did stuff like that,
so whatever it was, was awhile back...), so it had obviously been
disabled for awhile. (I've done at least one and I think two full emerge
--emptytree @worlds since then, however, so as I said above, everything
that's installed now is fine.) A news item will help remind folks with
older installs to check their status as well, which can only be a good
thing. =:^)
So from this user, +1 (+1000? =:^), news item requested. =:^)
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2012-05-28 23:57 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-28 21:34 [gentoo-dev] RFC: Enable FEATURES="userpriv usersandbox" by default? Zac Medico
2012-05-28 21:46 ` Andreas K. Huettel
2012-05-28 21:52 ` Davide Pesavento
2012-05-28 23:17 ` Michael Weber
2012-05-28 23:56 ` Duncan [this message]
2012-05-29 1:09 ` Maxim Kammerer
2012-05-29 1:58 ` Rich Freeman
2012-05-29 8:43 ` Agostino Sarubbo
2012-05-29 8:58 ` Richard Yao
2012-05-29 9:05 ` Zac Medico
2012-05-29 14:11 ` Michał Górny
2012-05-29 14:50 ` Rich Freeman
2012-05-29 14:57 ` hasufell
2012-05-29 15:23 ` Rich Freeman
2012-05-29 16:27 ` hasufell
2012-05-29 17:08 ` Jeff Horelick
2012-05-29 19:46 ` Michael Orlitzky
2012-05-29 19:58 ` Mike Gilbert
2012-05-29 20:21 ` Michael Orlitzky
2012-05-29 20:05 ` William Hubbs
2012-05-29 21:47 ` Hilco Wijbenga
2012-05-29 22:11 ` Zac Medico
2012-05-29 23:22 ` Richard Yao
2012-05-30 0:38 ` Zac Medico
2012-05-30 0:59 ` Hilco Wijbenga
2012-05-29 19:44 ` Ralph Sennhauser
2012-05-29 22:09 ` Zac Medico
2012-05-29 20:32 ` Zac Medico
2012-07-02 19:48 ` Pacho Ramos
2012-07-02 20:01 ` Zac Medico
2012-07-02 20:36 ` vivo75
2012-07-02 20:45 ` Zac Medico
2012-07-03 7:18 ` Pacho Ramos
2012-07-03 8:02 ` Michał Górny
2013-07-21 10:53 ` Pacho Ramos
2013-07-21 18:25 ` Zac Medico
2013-07-21 18:30 ` Alex Xu
2013-07-21 18:35 ` Mike Gilbert
2012-07-03 8:11 ` vivo75
2012-07-03 13:50 ` Andreas K. Huettel
2012-07-03 13:55 ` Andreas K. Huettel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=pan.2012.05.28.23.56.28@cox.net \
--to=1i5t5.duncan@cox.net \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox