Home
last modified time | relevance | path

Searched refs:valid_user_group_name (Results 1 – 22 of 22) sorted by relevance

/systemd-251/src/test/
Dtest-user-util.c149 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/
Dmachined-varlink.c73 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/
Dnss-systemd.c306 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/
Duserdb.c625 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()
Duser-record.c620 …if (!valid_user_group_name(json_variant_string(e), FLAGS_SET(flags, JSON_RELAX) ? VALID_USER_RELAX… in json_dispatch_user_group_list()
Djson.c4540 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/
Dhome-util.c19 if (!valid_user_group_name(name, 0)) in suitable_user_name()
Dhomed-manager-bus.c82 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()
Dhomectl.c722 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()
Dpam_systemd_home.c123 if (STR_IN_SET(username, "root", NOBODY_USER_NAME) || !valid_user_group_name(username, 0)) in acquire_user_record()
/systemd-251/src/basic/
Duser-util.h103 bool valid_user_group_name(const char *u, ValidUserFlags flags);
Duser-util.c726 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/
Ddbus-util.c37 return valid_user_group_name(u, VALID_USER_ALLOW_NUMERIC|VALID_USER_RELAX); in valid_user_group_name_or_id_relaxed()
Ddynamic-user.c120 if (!valid_user_group_name(name, VALID_USER_ALLOW_NUMERIC)) in dynamic_user_acquire()
Dload-fragment.c2585 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()
Ddbus-manager.c1855 if (!valid_user_group_name(name, VALID_USER_RELAX)) in method_lookup_dynamic_user_by_name()
Ddbus-execute.c2057 …if (!isempty(*p) && !valid_user_group_name(*p, VALID_USER_ALLOW_NUMERIC|VALID_USER_RELAX|VALID_USE… in bus_exec_context_set_transient_property()
Dunit.c4040 if (valid_user_group_name(n, 0)) { in user_from_unit_name()
/systemd-251/src/sysusers/
Dsysusers.c1545 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/
Dnspawn-settings.c945 if (!valid_user_group_name(word, 0)) { in config_parse_bind_user()
Dnspawn.c1675 if (!valid_user_group_name(optarg, 0)) in parse_argv()
/systemd-251/src/libsystemd/sd-bus/
Dsd-bus.c1621 … if (!isempty(user) && !valid_user_group_name(user, VALID_USER_RELAX | VALID_USER_ALLOW_NUMERIC)) in user_and_machine_valid()