summaryrefslogtreecommitdiff
path: root/src/basic/user-util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/user-util.h')
-rw-r--r--src/basic/user-util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/basic/user-util.h b/src/basic/user-util.h
index 6de68e2d2c..d148d5819e 100644
--- a/src/basic/user-util.h
+++ b/src/basic/user-util.h
@@ -64,6 +64,10 @@ static inline bool uid_is_dynamic(uid_t uid) {
return DYNAMIC_UID_MIN <= uid && uid <= DYNAMIC_UID_MAX;
}
+static inline bool gid_is_dynamic(gid_t gid) {
+ return uid_is_dynamic((uid_t) gid);
+}
+
static inline bool uid_is_system(uid_t uid) {
return uid <= SYSTEM_UID_MAX;
}