Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Zac Medico (zmedico)" <zmedico@g.o>
Subject: portage r12496 - in main/trunk: man pym/_emerge
Date: Tue, 13 Jan 2009 21:27:41 +0000
Author: zmedico
Date: 2009-01-13 21:27:30 +0000 (Tue, 13 Jan 2009)
New Revision: 12496

Modified:
   main/trunk/man/make.conf.5
   main/trunk/pym/_emerge/__init__.py
Log:
Use a new 'usersync' feature to control dropping of privileges for --sync,
since it's fairly common for people to have inconsistent permissions between
$PORTDIR and contained files/directories.


Modified: main/trunk/man/make.conf.5
===================================================================
--- main/trunk/man/make.conf.5	2009-01-13 21:02:30 UTC (rev 12495)
+++ main/trunk/man/make.conf.5	2009-01-13 21:27:30 UTC (rev 12496)
@@ -360,6 +360,10 @@
 .B usersandbox
 Enable the sandbox in the compile phase, when running without root privs (\fIuserpriv\fR).
 .TP
+.B usersync
+Drop privileges to the owner of \fBPORTDIR\fR for \fBemerge(1) --sync\fR
+operations.
+.TP
 .B webrsync-gpg
 Enable GPG verification when using \fIemerge\-webrsync\fR.
 .RE

Modified: main/trunk/pym/_emerge/__init__.py
===================================================================
--- main/trunk/pym/_emerge/__init__.py	2009-01-13 21:02:30 UTC (rev 12495)
+++ main/trunk/pym/_emerge/__init__.py	2009-01-13 21:27:30 UTC (rev 12496)
@@ -12068,7 +12068,8 @@
 
 	spawn_kwargs = {}
 	spawn_kwargs["env"] = settings.environ()
-	if portage.data.secpass >= 2 and \
+	if 'usersync' in settings.features and \
+		portage.data.secpass >= 2 and \
 		(st.st_uid != os.getuid() and st.st_mode & 0700 or \
 		st.st_gid != os.getgid() and st.st_mode & 0070):
 		try:



Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in kde-base/kdeaccessibility-colorschemes: ChangeLog kdeaccessibility-colorschemes-4.1.4.ebuild
Next by thread:
gentoo-x86 commit in kde-base/kdeaccessibility-iconthemes: ChangeLog kdeaccessibility-iconthemes-4.1.4.ebuild
Previous by date:
gentoo-x86 commit in kde-base/kdeaccessibility-colorschemes: ChangeLog kdeaccessibility-colorschemes-4.1.4.ebuild
Next by date:
gentoo-x86 commit in kde-base/kdeaccessibility-iconthemes: ChangeLog kdeaccessibility-iconthemes-4.1.4.ebuild


Updated Dec 17, 2011

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.