From a0d39da6b5b076931b9683a37d94b58a8011f966 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 2 Dec 2017 12:48:31 +0100 Subject: [PATCH] build-sys: make the dynamic UID range, and the container UID range configurable Also, export these ranges in our pkg-config files. --- src/basic/user-util.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/basic/user-util.h b/src/basic/user-util.h index 4a1bc764a..f60166f79 100644 --- a/src/basic/user-util.h +++ b/src/basic/user-util.h @@ -67,13 +67,6 @@ int take_etc_passwd_lock(const char *root); #define UID_INVALID ((uid_t) -1) #define GID_INVALID ((gid_t) -1) -/* Let's pick a UIDs within the 16bit range, so that we are compatible with containers using 16bit - * user namespacing. At least on Fedora normal users are allocated until UID 60000, hence do not - * allocate from below this. Also stay away from the upper end of the range as that is often used - * for overflow/nobody users. */ -#define DYNAMIC_UID_MIN ((uid_t) UINT32_C(0x0000EF00)) -#define DYNAMIC_UID_MAX ((uid_t) UINT32_C(0x0000FFEF)) - static inline bool uid_is_dynamic(uid_t uid) { return DYNAMIC_UID_MIN <= uid && uid <= DYNAMIC_UID_MAX; } -- 2.30.2