<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>[PATCH] Multiuser environment permissions</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.3790.507" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=621375119-19052006><FONT face=Arial
color=#0000ff size=2>Ok, further testing indicates that I need to check group as
well. I'll send a corrected patch in a few mins.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=621375119-19052006><FONT face=Arial
color=#0000ff size=2>--</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=621375119-19052006><FONT face=Arial
color=#0000ff size=2>Michael</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> fedora-buildsys-list-bounces@redhat.com
[mailto:fedora-buildsys-list-bounces@redhat.com] <B>On Behalf Of
</B>Michael_E_Brown@Dell.com<BR><B>Sent:</B> Friday, May 19, 2006 2:45
PM<BR><B>To:</B> fedora-buildsys-list@redhat.com<BR><B>Subject:</B> [PATCH]
Multiuser environment permissions<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>I have found one difficulty with the autocache
patch, not a showstopper, but annoying. The problem occurs when you have
multiple users on the same machine. If one user creates the cache, several
files inside will be owned by that user. The other user then cannot access
/builddir/ due to permissions. The attached patch fixes this situation.
Basically, it is very localized to the _make_our_user() function. It checks to
see if the user already exists with a different UID from the current UID. If
it detects this, it deletes and recreates the user and chown's the appropriate
files.</FONT></P>
<P><FONT face=Arial size=2>Feedback appreciated. If this is ok, please apply
with the autocache patches.</FONT> </P>
<P><FONT face=Arial size=2>Other than this issue, we have been using the
autocache patch here for a few days with no other issues.</FONT> <BR><FONT
face=Arial size=2>--</FONT> <BR><FONT face=Arial size=2>Michael</FONT> </P>
<P><FONT face=Arial color=#000000 size=2><<mock-permfix.patch>>
</FONT></P></BLOCKQUOTE></BODY></HTML>