Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 720902 - sys-apps/shadow-4.8.1-r2: SYS_UID_MIN SYS_GID_MIN dont respekt documentation
Summary: sys-apps/shadow-4.8.1-r2: SYS_UID_MIN SYS_GID_MIN dont respekt documentation
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-04 07:26 UTC by Manuel Mommertz
Modified: 2020-09-12 13:08 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manuel Mommertz 2020-05-04 07:26:05 UTC
According to [1] the range of dynamic uids and gids is 500..999.

But /etc/login.def does not implement this range:

$ grep 'SYS_[GU]ID' /etc/login.defs 
SYS_UID_MIN               101
SYS_UID_MAX               999
SYS_GID_MIN               101
SYS_GID_MAX               999

SYS_[GU]ID_MIN should be set to 500 to prevent dynamic ids to block fixed ids of other groups


[1] https://wiki.gentoo.org/wiki/Project:Quality_Assurance/UID_GID_Assignment

Reproducible: Always
Comment 1 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-09-12 13:08:12 UTC
Which is fine, we allocate free [GU]IDS in the descending order.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=970abc63ba7144c45208acf3f727d8a559caaa43