[Yum-devel] selinux and other pain

Michael Stenner mstenner at linux.duke.edu
Wed Feb 25 16:38:05 UTC 2004


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

  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.

Does this address the issue or am I completely missing the point?

					-Michael
-- 
  Michael D. Stenner                            mstenner at ece.arizona.edu
  ECE Department, the University of Arizona                 520-626-1619
  1230 E. Speedway Blvd., Tucson, AZ 85721-0104                 ECE 524G



More information about the Yum-devel mailing list