[PATCH - updated] Multiuser environment permissions

Michael_E_Brown at Dell.com Michael_E_Brown at Dell.com
Fri May 19 20:19:38 UTC 2006


Attached is the updated patch. There is a single line addition from the
previous patch, in which I delete the build group as well.
--
Michael 


________________________________

	From: fedora-buildsys-list-bounces at redhat.com
[mailto:fedora-buildsys-list-bounces at redhat.com] On Behalf Of
Michael_E_Brown at Dell.com
	Sent: Friday, May 19, 2006 2:52 PM
	To: fedora-buildsys-list at redhat.com
	Subject: RE: [PATCH] Multiuser environment permissions
	
	
	Ok, further testing indicates that I need to check group as
well. I'll send a corrected patch in a few mins.
	--
	Michael


________________________________

		From: fedora-buildsys-list-bounces at redhat.com
[mailto:fedora-buildsys-list-bounces at redhat.com] On Behalf Of
Michael_E_Brown at Dell.com
		Sent: Friday, May 19, 2006 2:45 PM
		To: fedora-buildsys-list at redhat.com
		Subject: [PATCH] Multiuser environment permissions
		
		

		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.

		Feedback appreciated. If this is ok, please apply with
the autocache patches. 

		Other than this issue, we have been using the autocache
patch here for a few days with no other issues. 
		-- 
		Michael 

		<<mock-permfix.patch>> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mock-permfix2.patch
Type: application/octet-stream
Size: 2433 bytes
Desc: mock-permfix2.patch
URL: <http://listman.redhat.com/archives/fedora-buildsys-list/attachments/20060519/3cca5a3b/attachment.obj>


More information about the Fedora-buildsys-list mailing list