Home
last modified time | relevance | path

Searched refs:parse_uid (Results 1 – 25 of 39) sorted by relevance

12

/systemd-251/src/test/
Dtest-user-util.c55 TEST(parse_uid) { in TEST() argument
59 r = parse_uid("0", &uid); in TEST()
63 r = parse_uid("1", &uid); in TEST()
67 r = parse_uid("01", &uid); in TEST()
71 r = parse_uid("001", &uid); in TEST()
75 r = parse_uid("100", &uid); in TEST()
79 r = parse_uid("65535", &uid); in TEST()
83 r = parse_uid("0x1234", &uid); in TEST()
87 r = parse_uid("0o1234", &uid); in TEST()
91 r = parse_uid("0b1234", &uid); in TEST()
[all …]
/systemd-251/src/shared/
Duid-range.c126 r = parse_uid(b, &start); in uid_range_add_str()
130 r = parse_uid(t+1, &end); in uid_range_add_str()
139 r = parse_uid(s, &start); in uid_range_add_str()
Duid-alloc-range.c22 r = parse_uid(t, &uid); in parse_alloc_uid()
/systemd-251/src/basic/
Duser-util.c45 int parse_uid(const char *s, uid_t *ret) { in parse_uid() function
91 r = parse_uid(word, &l); in parse_uid_range()
103 r = parse_uid(s, &u); in parse_uid_range()
238 if (parse_uid(*username, &u) >= 0) { in get_user_creds()
739 …if (parse_uid(u, NULL) >= 0) /* Something that parses as numeric UID string is valid exactly when … in valid_user_group_name()
Duser-util.h29 int parse_uid(const char *s, uid_t* ret_uid);
33 return parse_uid(s, (uid_t*) ret_gid); in parse_gid()
Daudit-util.c61 r = parse_uid(s, &u); in audit_loginuid_from_pid()
Dcgroup-util.c1268 if (parse_uid(buf, NULL) < 0) in skip_user_manager()
1432 if (parse_uid(start, uid) < 0) in cg_path_get_owner_uid()
/systemd-251/src/nspawn/
Dtest-patch-uid.c22 r = parse_uid(argv[2], &shift); in main()
Dnspawn-setuid.c172 r = parse_uid(u, &uid); in change_uid_gid()
Dnspawn-settings.c647 r = parse_uid(shift, &sh); in config_parse_private_users()
/systemd-251/src/libsystemd/sd-login/
Dsd-login.c519 return parse_uid(s, uid); in sd_session_get_uid()
638 r = parse_uid(t, uid); in sd_seat_get_active()
696 r = parse_uid(word, &uids[n++]); in sd_seat_get_sessions()
796 k = parse_uid(de->d_name, &uid); in sd_get_uids()
/systemd-251/src/notify/
Dnotify.c158 r = parse_uid(u, &arg_uid); in parse_argv()
/systemd-251/src/login/
Duser-runtime-dir.c173 if (parse_uid(user, &uid) < 0) { in do_umount()
Dlogind-user-dbus.c292 r = parse_uid(p, &uid); in user_object_find()
Dlogind-inhibit.c240 r = parse_uid(uid, &i->uid); in inhibitor_load()
/systemd-251/src/coredump/
Dcoredump-vacuum.c66 return parse_uid(u, uid); in uid_from_file_name()
Dcoredumpctl.c506 (void) parse_uid(uid, &uid_as_int); in print_list()
612 if (parse_uid(uid, &n) >= 0) { in print_info()
682 if (parse_uid(owner_uid, &n) >= 0) { in print_info()
Dcoredump.c360 r = parse_uid(context->meta[META_ARGV_UID], &uid); in save_external_coredump()
745 r = parse_uid(context->meta[META_ARGV_UID], &uid); in change_uid_gid()
/systemd-251/src/libsystemd/sd-id128/
Dsd-id128.c222 r = parse_uid(u + 1, &uid); in get_invocation_from_keyring()
/systemd-251/src/machine/
Dmachined-varlink.c110 if (parse_uid(d + 1, &uid) < 0) in user_lookup_name()
/systemd-251/src/core/
Dmanager-serialize.c263 r = parse_uid(value, &uid); in manager_deserialize_uid_refs_one_internal()
Ddynamic-user.c424 r = parse_uid(d->name, &num); in dynamic_user_realize()
Dunit-serialize.c441 r = parse_uid(v, &uid); in unit_deserialize()
/systemd-251/src/home/
Dhomed-home-bus.c740 if (parse_uid(e, &uid) >= 0) in bus_home_object_find()
/systemd-251/src/libsystemd/sd-device/
Ddevice-private.c157 r = parse_uid(uid, &u); in device_set_devuid()

12