chiark / gitweb /
Verify validity of session name when received from outside
[elogind.git] / src / shared / cgroup-util.c
index 1d545e0466dbb7ca03b4531c9949b2cfe93bd069..0bffebdac8d56ad27df8e06b516797f3d7a956ca 100644 (file)
@@ -1511,9 +1511,7 @@ char *cg_unescape(const char *p) {
 }
 
 #define CONTROLLER_VALID                        \
-        "0123456789"                            \
-        "abcdefghijklmnopqrstuvwxyz"            \
-        "ABCDEFGHIJKLMNOPQRSTUVWXYZ"            \
+        DIGITS LETTERS                          \
         "_"
 
 bool cg_controller_is_valid(const char *p, bool allow_named) {