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. |