]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson_options.txt
Look at /etc/login.defs for the system_max_[ug]id values
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 25 Sep 2020 14:31:42 +0000 (16:31 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 1 Oct 2020 15:49:31 +0000 (17:49 +0200)
commit53393c894dd4ab944d88acd4e7070714342d1597
tree168cdd120b38474dfc1b41d0a4302327da8d2469
parent28add648a8307d088d2997f7b722770af6a875c9
Look at /etc/login.defs for the system_max_[ug]id values

It makes little sense to make the boundary between systemd and user guids
configurable. Nevertheless, a completely fixed compile-time define is not
enough in two scenarios:
- the systemd_uid_max boundary has moved over time. The default used to be
  500 for a long time. Systems which are upgraded over time might have users
  in the wrong range, but changing existing systems is complicated and
  expensive (offline disks, backups, remote systems, read-only media, etc.)
- systems are used in a heterogenous enviornment, where some vendors pick
  one value and others another.
So let's make this boundary overridable using /etc/login.defs.

Fixes #3855, #10184.
docs/UIDS-GIDS.md
meson.build
meson_options.txt
src/shared/user-record.c
src/shared/user-record.h
src/test/meson.build
src/test/test-user-record.c [new file with mode: 0644]