chiark / gitweb /
build-sys: make the dynamic UID range, and the container UID range configurable
authorLennart Poettering <lennart@poettering.net>
Sat, 2 Dec 2017 11:48:31 +0000 (12:48 +0100)
committerSven Eden <yamakuzure@gmx.net>
Sat, 2 Dec 2017 11:48:31 +0000 (12:48 +0100)
Also, export these ranges in our pkg-config files.

src/basic/user-util.h

index 4a1bc764ad586d3e35db3f86a47503afbc49f20d..f60166f79a0f460632221ca667c870bfcd6abd03 100644 (file)
@@ -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;
 }