nsresource: add constants for the only supported UID range size allocations
As requested: https://github.com/systemd/systemd/pull/39322#discussion_r2447366728
This commit is contained in:
+2
-2
@@ -6007,7 +6007,7 @@ static int run(int argc, char *argv[]) {
|
||||
goto finish;
|
||||
}
|
||||
|
||||
userns_fd = nsresource_allocate_userns(userns_name, UINT64_C(0x10000));
|
||||
userns_fd = nsresource_allocate_userns(userns_name, NSRESOURCE_UIDS_64K); /* allocate 64K UIDs */
|
||||
if (userns_fd < 0) {
|
||||
r = log_error_errno(userns_fd, "Failed to allocate user namespace with 64K users: %m");
|
||||
goto finish;
|
||||
@@ -6019,7 +6019,7 @@ static int run(int argc, char *argv[]) {
|
||||
goto finish;
|
||||
}
|
||||
|
||||
arg_uid_range = UINT32_C(0x10000);
|
||||
arg_uid_range = NSRESOURCE_UIDS_64K;
|
||||
}
|
||||
|
||||
if (arg_directory) {
|
||||
|
||||
Reference in New Issue
Block a user