From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id EE9ED1389E2 for ; Sun, 7 Dec 2014 09:07:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8F8AFE092B; Sun, 7 Dec 2014 09:07:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 20384E07E8 for ; Sun, 7 Dec 2014 09:07:17 +0000 (UTC) Received: from pomiot.lan (mgorny-1-pt.tunnel.tserv28.waw1.ipv6.he.net [IPv6:2001:470:70:353::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id A8E9B340504; Sun, 7 Dec 2014 09:07:15 +0000 (UTC) Date: Sun, 7 Dec 2014 10:07:08 +0100 From: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= To: gentoo-portage-dev@lists.gentoo.org Subject: Re: [gentoo-portage-dev] [PATCH] sync: allow overriding sync-user for the repository Message-ID: <20141207100708.2364d4fe@pomiot.lan> In-Reply-To: <1417942883-22011-1-git-send-email-mgorny@gentoo.org> References: <5483FB68.7070107@gentoo.org> <1417942883-22011-1-git-send-email-mgorny@gentoo.org> Organization: Gentoo X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/D7rCLF4OXYLztTT_xUN6i_E"; protocol="application/pgp-signature" X-Archives-Salt: 7a530e4d-1ee9-4462-b19b-6e589da82684 X-Archives-Hash: 75d3dfe03126e6e3e73c9171e61c1325 --Sig_/D7rCLF4OXYLztTT_xUN6i_E Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dnia 2014-12-07, o godz. 10:01:23 Micha=C5=82 G=C3=B3rny napisa=C5=82(a): > + if uid is not None Missing ':' here, I won't resend the patch for it :P. > + spawn_kwargs["uid"] =3D uid > + self.usersync_uid =3D uid > + if gid is not None: > + spawn_kwargs["gid"] =3D gid > + spawn_kwargs["groups"] =3D [gid] > + if home is not None: > + spawn_kwargs["env"]["HOME"] =3D home > + elif ('usersync' in self.settings.features and > portage.data.secpass >=3D 2 and > (st.st_uid !=3D os.getuid() and st.st_mode & 0o700 or > st.st_gid !=3D os.getgid() and st.st_mode & 0o070)): --=20 Best regards, Micha=C5=82 G=C3=B3rny --Sig_/D7rCLF4OXYLztTT_xUN6i_E Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJUhBi8XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2REJCMDdDQzRGMERBRDA2RUEwQUZFNDFC MDdBMUFFQUVGQjQ0NjRFAAoJELB6GurvtEZORigP/29EN7xiHBainr+C/tlPfiiO nNLYbZskBpgKEyS2orcHIKmR+2mfioFw6nZfb7UO0GK0061QcVo1bvQjIMjewb3M skcrQKacfqJETqqPfJgwVuYjKa4JE09CBCMh3ZlkC81scyP9eYRNFa2X2qnw4v7V qiTslK1vySkhCdkyljU2wicjnPnwN+hJNmyceMFBbXIKcXNdSkznVbe+XzfEaCdV 5cGvNIIe4cRy8yxeF+mt2JK9tFIhykcnRnq/0j3Ig5nZeqntU6m1bVsd9q9V8c/I HUx13UXAxUk6hwrGw7e2xDY4qYeMWMizOkBtzUuv0rF7+JLB+JvxKJ4lGcsXqi7l +TJoIYZKdK/ycIJclChEV+v3F17oOIxrMljP89Ky2Pcj0uRUUsmdPIEnaekoayBG x3Ui5VA03NpSo6mktMO2Jm1DzuEg5RHjLg4Dwc2WGsM+6qgFifRtEIbvpaXpcURH Ba0AWlDoUexpI3uZsHHnHTciq1ax3TL05kVQviodLtHWTNCNFGriWlqL0rr8uhSv Ojw2/1nAkfcnvlZM6yBdJEdXTnQwFOFw8oSJZEhluNiDYfR9A5fd8iL9U8ZOAJjm 5Bz9DFTjd5lIV47SlM2Lucc+qe2DkfTSNvUM4jurAHf2EVeO5KlsYKnalUsSKgsc H6ZqbUBmDLUq7BRYcCcH =zK0I -----END PGP SIGNATURE----- --Sig_/D7rCLF4OXYLztTT_xUN6i_E--