[Yum-devel] selinux and other pain
seth vidal
skvidal at phy.duke.edu
Thu Feb 26 14:43:27 UTC 2004
On Wed, 2004-02-25 at 11:38, Michael Stenner wrote:
> On Wed, Feb 25, 2004 at 12:08:31AM -0500, seth vidal wrote:
> > with fedora core 2 and selinux there is a desire to separate the roles
> > in selinux-speak of the rpm-installing part and the downloading shit
> > part.
> >
> > you'd have to fork the process for downloading off in order to change
> > roles.
> >
> > So let's say we had a bad day and it was suggested, heavily, that yum
> > needed to fork off the downloading process in order to be selinux
> > 'compliant'
> >
> > can you think of interesting and inventive ways to do this nicely?
> >
> > All the ways I can think of kinda suck and I'm afraid that is b/c all of
> > the ways to do this DO suck. Ideas?
>
> For those of us less familiar with the yum code than you (which is
> everybody), can you elaborate on how it would be hard? You just mean
> that yum hops back and forth between these "modes" and it would be
> hard to split them off into two "parallel" processes (and by parallel
> I mean largely non-interacting).
>
> I can think of two major "classes" (fun with quotes today) of ways to
> do this:
>
> non-interacting:
> 1) gather all the info needed for download
> 2) fork, download, terminate child
> 3) install
so we're passing all the password, etc info to the process? in
environment or on the commandline? How horribly vulnerable is that?
> interacting
> fork immediately, but have the two (or more) processes
> communicate. This could be done old-school via simple socket
> communication, or it could be done via xmlrpc or something
> fancier.
xmlrpc MIGHT be safer - but I'm not sure if the two processes would be
allowed to communicate like that in the selinux security model.
my problem is that it makes things such a pain in the ass for a
questionable security savings.
-sv
More information about the Yum-devel
mailing list