public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Georgi Georgiev <chutz@gg3.net>
To: gentoo-dev@robin.gentoo.org
Subject: Re: [gentoo-dev] CONFIG_PROTECT and ROOT!='/'
Date: Wed, 16 Mar 2005 12:35:55 +0900	[thread overview]
Message-ID: <20050316033555.GE10968@tiger.gg3.net> (raw)
In-Reply-To: <20050316031726.GA23157@freedom.wit.com>

maillog: 15/03/2005-21:17:26(-0600): Brian Harring types
> On Wed, Mar 16, 2005 at 08:05:43AM +0900, Georgi Georgiev wrote:
> > maillog: 15/03/2005-12:01:47(-0600): Brian Jackson types
> > > On 10:14:14 am 2005-03-15 Georgi Georgiev <chutz@gg3.net> wrote:
> > > > maillog: 15/03/2005-08:26:49(-0600): Brian Jackson types
> > > > >  I have a bug filed for that too, but it's probably going to be a
> > > > >  while before it's fixed. From what I've been told, it's not
> > > > >  trivial to fix it because some of the config stuff isn't very
> > > > >  well abstracted.
> > > >
> > > > It isn't? Are we talking about the same thing? After all, the
> > > > locations are just variables, that only need to be prefixed with
> > > > something. Could we get some input from whoever told you this?
> > > 
> > > make.conf is easy. The profile isn't as easy. /etc/portage isn't easy
> > > at all. That's the basics. You'd have to ask the portage guys for more
> > > in depth info.
> > 
> > I was hoping to get a response from them here. Portage guys, you there?
> http://www.gentoo.org/cgi-bin/viewcvs.cgi/portage/pym/config.py?root=gentoo-src
> ^^^^ config class, cleaned up a bit from what stable has.
> 
> At the moment, my focus on the bugger is the following-
> A) integration of env whitelist tracking, preferably in a an attached 
>    instance (the need for this is partially bound to covering 
>    filter-env's ass).
> B) either reorganize the beast so env stuff is accessible via an 
>    attribute, or create a container class that the config gets 
>    assigned into
> C) bind all tree instances to the config.  Why?  Kill off portage.db 
>    global usage entirely, and try and encapsulate data into one 
>    common, passable instance
> D) shift virtual loading, setcpv, setinst, load_infodir, etc, all out 
>    of config and to a proper class.
> 
> So... why tack that stuff in now, when the class itself needs a major 
> enema? :)
> 
> Basically it comes down to a focus (at this point) in trying to 
> improve the existing code/abstractions in use, rather then tacking 
> more features/codepaths in.
> 
> Anyone interested can take a crack at the request above, it's just not 
> high on my peronsal (likely our) list of priorities, since the 
> existing code is spaghetti like.
> 
> Note that integration of env whitelisting *is* adding a new feature 
> in.  It's kind of required to keep things sane for the env handling 
> though (mainly, a few very crazy var settings are *very* hard to 
> properly filter).  That and it can't be done without refactoring the 
> config class anyways (which is intended)...

Well, I never intended to rush things... bug #52415 has been open for
almost an year after all, and at least the config protection seems to be
more of a bug than a problem with the implementation (as I had posted in
a comment on the bug, $ROOT/etc/somefile is being checked against a list
that is not prefixed with a $ROOT).

The issue with the alternate configuration location is only a matter of
convenience, since it can be worked around with a couple of symlinks.
As your hands are full with other stuff, I'd only hope you keep the
request in mind. Maybe even post a note when you guys unknot the
spaghetti?

-- 
(    Georgi Georgiev   (  I went to a Grateful Dead Concert and they   (
 )    chutz@gg3.net     ) played for SEVEN hours. Great song. -- Fred   )
(   +81(90)6266-1163   (  Reuss                                        (
--
gentoo-dev@gentoo.org mailing list


  reply	other threads:[~2005-03-16  3:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-14 16:45 [gentoo-dev] CONFIG_PROTECT and ROOT!='/' Vitaly Ivanov
2005-03-14 21:21 ` Donnie Berkholz
2005-03-15  4:24   ` Brian Jackson
2005-03-15  4:24     ` Brian Jackson
2005-03-15  6:56     ` Georgi Georgiev
2005-03-15 14:26       ` Brian Jackson
2005-03-15 16:14         ` Georgi Georgiev
2005-03-15 18:01           ` Brian Jackson
2005-03-15 23:05             ` Georgi Georgiev
2005-03-16  3:17               ` Brian Harring
2005-03-16  3:35                 ` Georgi Georgiev [this message]
2005-03-16  4:11                   ` Brian Harring

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=20050316033555.GE10968@tiger.gg3.net \
    --to=chutz@gg3.net \
    --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