Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: Gentoo Dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] Don't use UIDs and GIDs below 100 without QA approval
Date: Thu, 11 Nov 2021 18:32:11
Message-Id: CAJ0EP43ZN1v6PNxhMQ+OOq_7r32+k6VOHME1VFO7pVY3dFxHHQ@mail.gmail.com
In Reply to: [gentoo-dev] Don't use UIDs and GIDs below 100 without QA approval by Ulrich Mueller
1 On Thu, Nov 11, 2021 at 5:59 AM Ulrich Mueller <ulm@g.o> wrote:
2 >
3 > May I remind everybody that by QA policy allocation of UIDs and GIDs
4 > in the range 0..100 needs explicit approval by the QA lead:
5 > https://projects.gentoo.org/qa/policy-guide/user-group.html#pg0901
6 >
7 > I have fixed the used_free_uidgids.sh script such that it will no longer
8 > recommend any IDs below 101.
9 >
10 > In any case, we have run out of GIDs:
11 >
12 > Recommended GID only: none
13 > Recommended UID only: 272
14 > Recommended UID+GID pair: none
15 > Free UIDs: 15
16 > Free GIDs: 0
17 > Free UID+GID pairs: 0
18 >
19 > The question is of course how we should move forward. Certainly, using
20 > IDs below 100 cannot be the solution, as we would run out of these very
21 > soon.
22 >
23 > We could:
24 >
25 > - Open some part of the range between 500 and 1000. For example,
26 > 500..799, which would leave 200 IDs for dynamic allocation.
27
28 This sounds like the simplest solution to me.
29
30 > - Open part of the range 60001..65533. Not sure if all software will be
31 > happy with that.
32
33 systemd has some code that special-cases ids in the "system" range.
34 I'm not exactly sure what impact creating system users outside above
35 SYS_UID_MAX (login.defs) will have.

Replies