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:
Lennart Poettering
2025-10-21 23:09:50 +02:00
parent b3e5e00d45
commit bcafa70974
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -3,6 +3,10 @@
#include "shared-forward.h"
/* Helpful constants for the only numbers of UIDs that can currently be allocated */
#define NSRESOURCE_UIDS_64K 0x10000U
#define NSRESOURCE_UIDS_1 1U
int nsresource_allocate_userns(const char *name, uint64_t size);
int nsresource_register_userns(const char *name, int userns_fd);
int nsresource_add_mount(int userns_fd, int mount_fd);