/systemd-251/src/test/ |
D | test-user-util.c | 149 assert_se(!valid_user_group_name(NULL, VALID_USER_RELAX)); in TEST() 150 assert_se(!valid_user_group_name("", VALID_USER_RELAX)); in TEST() 151 assert_se(!valid_user_group_name("1", VALID_USER_RELAX)); in TEST() 152 assert_se(!valid_user_group_name("65535", VALID_USER_RELAX)); in TEST() 153 assert_se(!valid_user_group_name("-1", VALID_USER_RELAX)); in TEST() 154 assert_se(!valid_user_group_name("foo\nbar", VALID_USER_RELAX)); in TEST() 155 … assert_se(!valid_user_group_name("0123456789012345678901234567890123456789", VALID_USER_RELAX)); in TEST() 156 assert_se(!valid_user_group_name("aaa:bbb", VALID_USER_RELAX|VALID_USER_ALLOW_NUMERIC)); in TEST() 157 assert_se(!valid_user_group_name(".aaa:bbb", VALID_USER_RELAX|VALID_USER_ALLOW_NUMERIC)); in TEST() 158 assert_se(!valid_user_group_name(".", VALID_USER_RELAX)); in TEST() [all …]
|
/systemd-251/src/machine/ |
D | machined-varlink.c | 73 if (!valid_user_group_name(n, 0)) in user_lookup_uid() 99 if (!valid_user_group_name(name, 0)) in user_lookup_name() 240 if (!valid_user_group_name(n, 0)) in group_lookup_gid() 265 if (!valid_user_group_name(name, 0)) in group_lookup_name()
|
/systemd-251/src/nss-systemd/ |
D | nss-systemd.c | 306 if (!valid_user_group_name(name, VALID_USER_RELAX)) in _nss_systemd_getpwnam_r() 395 if (!valid_user_group_name(name, VALID_USER_RELAX)) in _nss_systemd_getspnam_r() 442 if (!valid_user_group_name(name, VALID_USER_RELAX)) in _nss_systemd_getgrnam_r() 531 if (!valid_user_group_name(name, VALID_USER_RELAX)) in _nss_systemd_getsgnam_r() 973 if (!valid_user_group_name(user_name, VALID_USER_RELAX)) in _nss_systemd_initgroups_dyn()
|
/systemd-251/src/shared/ |
D | userdb.c | 625 if (!valid_user_group_name(name, VALID_USER_RELAX)) in userdb_by_name() 898 if (!valid_user_group_name(name, VALID_USER_RELAX)) in groupdb_by_name() 1157 if (!valid_user_group_name(name, VALID_USER_RELAX)) in membershipdb_by_user() 1203 if (!valid_user_group_name(name, VALID_USER_RELAX)) in membershipdb_by_group() 1389 } else if (!valid_user_group_name(un, VALID_USER_RELAX)) in membershipdb_iterator_get() 1399 } else if (!valid_user_group_name(gn, VALID_USER_RELAX)) in membershipdb_iterator_get()
|
D | user-record.c | 620 …if (!valid_user_group_name(json_variant_string(e), FLAGS_SET(flags, JSON_RELAX) ? VALID_USER_RELAX… in json_dispatch_user_group_list()
|
D | json.c | 4540 if (!valid_user_group_name(n, FLAGS_SET(flags, JSON_RELAX) ? VALID_USER_RELAX : 0)) in json_dispatch_user_group_name()
|
/systemd-251/src/home/ |
D | home-util.c | 19 if (!valid_user_group_name(name, 0)) in suitable_user_name()
|
D | homed-manager-bus.c | 82 if (!valid_user_group_name(user_name, 0)) in method_get_home_by_name() 212 if (!valid_user_group_name(user_name, 0)) in method_get_user_record_by_name() 287 if (!valid_user_group_name(user_name, 0)) in generic_home_method()
|
D | homectl.c | 722 if (!valid_user_group_name(*i, 0)) { in inspect_home() 1259 if (valid_user_group_name(argv[1], 0)) in create_home() 3351 if (!valid_user_group_name(word, 0)) in parse_argv()
|
D | pam_systemd_home.c | 123 if (STR_IN_SET(username, "root", NOBODY_USER_NAME) || !valid_user_group_name(username, 0)) in acquire_user_record()
|
/systemd-251/src/basic/ |
D | user-util.h | 103 bool valid_user_group_name(const char *u, ValidUserFlags flags);
|
D | user-util.c | 726 bool valid_user_group_name(const char *u, ValidUserFlags flags) { in valid_user_group_name() function 795 if (FLAGS_SET(flags, VALID_USER_WARN) && !valid_user_group_name(u, 0)) in valid_user_group_name()
|
/systemd-251/src/core/ |
D | dbus-util.c | 37 return valid_user_group_name(u, VALID_USER_ALLOW_NUMERIC|VALID_USER_RELAX); in valid_user_group_name_or_id_relaxed()
|
D | dynamic-user.c | 120 if (!valid_user_group_name(name, VALID_USER_ALLOW_NUMERIC)) in dynamic_user_acquire()
|
D | load-fragment.c | 2585 if (!valid_user_group_name(k, VALID_USER_ALLOW_NUMERIC|VALID_USER_RELAX|VALID_USER_WARN)) { in config_parse_user_group_compat() 2647 … if (!valid_user_group_name(k, VALID_USER_ALLOW_NUMERIC|VALID_USER_RELAX|VALID_USER_WARN)) { in config_parse_user_group_strv_compat()
|
D | dbus-manager.c | 1855 if (!valid_user_group_name(name, VALID_USER_RELAX)) in method_lookup_dynamic_user_by_name()
|
D | dbus-execute.c | 2057 …if (!isempty(*p) && !valid_user_group_name(*p, VALID_USER_ALLOW_NUMERIC|VALID_USER_RELAX|VALID_USE… in bus_exec_context_set_transient_property()
|
D | unit.c | 4040 if (valid_user_group_name(n, 0)) { in user_from_unit_name()
|
/systemd-251/src/sysusers/ |
D | sysusers.c | 1545 if (!valid_user_group_name(resolved_name, 0)) in parse_line() 1648 if (!valid_user_group_name(resolved_id, 0)) in parse_line() 1689 if (valid_user_group_name(gid, 0)) in parse_line()
|
/systemd-251/src/nspawn/ |
D | nspawn-settings.c | 945 if (!valid_user_group_name(word, 0)) { in config_parse_bind_user()
|
D | nspawn.c | 1675 if (!valid_user_group_name(optarg, 0)) in parse_argv()
|
/systemd-251/src/libsystemd/sd-bus/ |
D | sd-bus.c | 1621 … if (!isempty(user) && !valid_user_group_name(user, VALID_USER_RELAX | VALID_USER_ALLOW_NUMERIC)) in user_and_machine_valid()
|