From: Brian Harring <ferringb@gentoo.org>
To: gentoo-dev@robin.gentoo.org
Subject: [gentoo-dev] whitelisting the env ebuilds execute in
Date: Sun, 13 Mar 2005 09:40:16 -0600 [thread overview]
Message-ID: <20050313154016.GC19847@freedom.wit.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1360 bytes --]
Subject pretty much says it all. Currently *everything* from the users env winds up being available to ebuilds.
This complicates the hell out of my job of maintaining env handling (saving, transfering, reloading) in portage-cvs-
having literally hundreds of env vars defined prior to even adding in the ebuild/eclass/portage env additions.
So... yeah. Anyone got a good reason why all vars should be dumped into the ebuild environment? I don't see the
point in all of my binpkgs having my ECHANGELOG_USER setting, for example.
Assuming no one can come up with a valid reason why the entire user env must be dumped into the compilation
environment, whitelisting of vars that are allowed in would be the next step. LINGUAS, EXTRA_ECONF, etc.
Portage cvs already does it's own filtering of the vars it knows don't belong in the env- portage innard vars for
example, are explicitly removed from any saved env. The reason behind this is that portage wants to control those
vars itself, basically striving for a controlled environment for ebuild execution (whether setup phase or compile).
I don't see why the same control shouldn't be extended to the portions of a users env that get pulled in.
Ultimately, a user can sidestep it also via profile and portage bashrcs (so it's not a total lockdown on the env).
Thoughts?
~harring
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2005-03-13 15:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-13 15:40 Brian Harring [this message]
2005-03-13 15:48 ` [gentoo-dev] whitelisting the env ebuilds execute in Ciaran McCreesh
2005-03-13 16:04 ` Brian Harring
2005-03-13 22:20 ` Ned Ludd
2005-03-13 23:05 ` Brian Harring
2005-03-13 23:24 ` Thomas de Grenier de Latour
2005-03-15 9:03 ` Sven Vermeulen
2005-03-14 19:21 ` Aron Griffis
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=20050313154016.GC19847@freedom.wit.com \
--to=ferringb@gentoo.org \
--cc=gentoo-dev@gentoo.org \
--cc=gentoo-dev@robin.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