diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-02 12:48:31 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-12-02 12:48:31 +0100 |
commit | a0d39da6b5b076931b9683a37d94b58a8011f966 (patch) | |
tree | 7d951b7e3ee513105192db45fec491338075cbfd /src/basic/user-util.h | |
parent | fecdb9416d94efbbc947cd8ee376d78d33d090c4 (diff) |
build-sys: make the dynamic UID range, and the container UID range configurable
Also, export these ranges in our pkg-config files.
Diffstat (limited to 'src/basic/user-util.h')
-rw-r--r-- | src/basic/user-util.h | 7 |
1 files changed, 0 insertions, 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; } |