Gentoo Archives: gentoo-dev

From: Michael Orlitzky <mjo@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Requirements for UID/GID management
Date: Sun, 29 Jan 2017 02:54:28
Message-Id: 6bac1312-60f9-3ce1-542b-0635b4a37c6b@gentoo.org
In Reply to: Re: [gentoo-dev] Requirements for UID/GID management by Rich Freeman
1 On 01/28/2017 09:22 PM, Rich Freeman wrote:
2 >
3 > Honestly, I really will say "so what" here. :)
4 >
5
6 I forgot to mention a few of the advantages of having really-fixed UIDs.
7 First, it makes the code simpler. Yup, cool.
8
9 It also lets us play a nice trick and use the UID as a subslot, so that
10 if some sys-user/foo package ever changes its UID, everything depending
11 on it can be rebuilt to use the new UID.
12
13 Finally, it makes the installed image deterministic. Right now to
14 prevent file collisions, we have to read stuff from /etc/passwd in order
15 to generate a file that gets installed to /var/lib. The installed image
16 of a package shouldn't change on-the-fly like that, and it wouldn't if
17 the UID was truly fixed.
18
19 We don't get any of those benefits if we're falling back to random UIDs.

Replies

Subject Author
Re: [gentoo-dev] Requirements for UID/GID management Gordon Pettey <petteyg359@×××××.com>