diff options
| author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-09-25 17:16:06 +0200 |
|---|---|---|
| committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-10-01 19:53:45 +0200 |
| commit | aa25270cb22f5f7ca2b18c288d4e15bbc6eb239e (patch) | |
| tree | 9202acc83c3b26cfca9be040931c1b4ea304da19 /src/shared/user-record.h | |
| parent | 044df624aaa7293f82d2da48eb553cdf0ac780d9 (diff) | |
| download | systemd-aa25270cb22f5f7ca2b18c288d4e15bbc6eb239e.tar.gz | |
sysusers: look at login.defs when setting the default range to allocate users
Also, even if login.defs are not present, don't start allocating at 1, but at
SYSTEM_UID_MIN.
Fixes #9769.
The test is adjusted. Actually, it was busted before, because sysusers would
never use SYSTEM_GID_MIN, so if SYSTEM_GID_MIN was different than
SYSTEM_UID_MIN, the tests would fail. On all "normal" systems the two are
equal, so we didn't notice. Since sysusers now always uses the minimum of the
two, we only need to substitute one value.
Diffstat (limited to 'src/shared/user-record.h')
| -rw-r--r-- | src/shared/user-record.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/user-record.h b/src/shared/user-record.h index 1f87eff6d5..2e74b910c2 100644 --- a/src/shared/user-record.h +++ b/src/shared/user-record.h @@ -43,6 +43,7 @@ typedef struct UGIDAllocationRange { gid_t system_gid_max; } UGIDAllocationRange; +int read_login_defs(UGIDAllocationRange *ret_defs, const char *path, const char *root); const UGIDAllocationRange *acquire_ugid_allocation_range(void); typedef enum UserDisposition { |
