Gentoo Archives: gentoo-portage-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] sync: allow overriding sync-user for the repository
Date: Sun, 07 Dec 2014 09:07:17
Message-Id: 20141207100708.2364d4fe@pomiot.lan
In Reply to: [gentoo-portage-dev] [PATCH] sync: allow overriding sync-user for the repository by "Michał Górny"
1 Dnia 2014-12-07, o godz. 10:01:23
2 Michał Górny <mgorny@g.o> napisał(a):
3
4 > + if uid is not None
5
6 Missing ':' here, I won't resend the patch for it :P.
7
8 > + spawn_kwargs["uid"] = uid
9 > + self.usersync_uid = uid
10 > + if gid is not None:
11 > + spawn_kwargs["gid"] = gid
12 > + spawn_kwargs["groups"] = [gid]
13 > + if home is not None:
14 > + spawn_kwargs["env"]["HOME"] = home
15 > + elif ('usersync' in self.settings.features and
16 > portage.data.secpass >= 2 and
17 > (st.st_uid != os.getuid() and st.st_mode & 0o700 or
18 > st.st_gid != os.getgid() and st.st_mode & 0o070)):
19
20
21
22 --
23 Best regards,
24 Michał Górny

Replies