]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/user-util.h
user-util: move homed/nspawn map UID_MIN/UID_MAX define into user-util.h
[thirdparty/systemd.git] / src / basic / user-util.h
index bc76de6b4110303eaf397d529d2a40d9a10b8c16..40979d10801cf82282252752ff14ddf53fc636e8 100644 (file)
 #include <sys/types.h>
 #include <unistd.h>
 
+/* Users managed by systemd-homed. See https://systemd.io/UIDS-GIDS for details how this range fits into the rest of the world */
+#define HOME_UID_MIN 60001
+#define HOME_UID_MAX 60513
+
+/* Users mapped from host into a container */
+#define MAP_UID_MIN 60514
+#define MAP_UID_MAX 60577
+
 bool uid_is_valid(uid_t uid);
 
 static inline bool gid_is_valid(gid_t gid) {