/systemd-251/src/shared/ |
D | chown-recursive.c | 123 if (!uid_is_valid(uid) && !gid_is_valid(gid) && FLAGS_SET(mask, 07777)) in path_chown_recursive() 131 if ((!uid_is_valid(uid) || st.st_uid == uid) && in path_chown_recursive() 159 if (!uid_is_valid(uid) && !gid_is_valid(gid) && FLAGS_SET(mask, 07777)) in fd_chown_recursive() 163 if ((!uid_is_valid(uid) || st.st_uid == uid) && in fd_chown_recursive()
|
D | userdb-dropin.c | 31 if (FLAGS_SET(flags, USERDB_SUPPRESS_SHADOW) || !path || !(name || uid_is_valid(uid))) in load_user() 54 assert(uid_is_valid(uid)); in load_user() 93 if (uid_is_valid(uid) && uid != u->uid) in load_user() 139 assert(uid_is_valid(uid)); in dropin_user_record_by_uid()
|
D | base-filesystem.c | 174 if (uid_is_valid(uid) || gid_is_valid(gid)) in base_filesystem_create() 193 if (uid_is_valid(uid) || gid_is_valid(gid)) in base_filesystem_create()
|
D | clean-ipc.c | 29 if (uid_is_valid(delete_uid) && subject_uid == delete_uid) in match_uid_gid() 400 if (!uid_is_valid(uid) && !gid_is_valid(gid)) in clean_ipc_internal()
|
D | acl-util.c | 20 assert(uid_is_valid(uid)); in acl_find_uid() 404 assert(uid_is_valid(uid)); in fd_add_uid_acl_permission()
|
D | copy.c | 496 uid_is_valid(override_uid) ? override_uid : st->st_uid, in fd_copy_symlink() 725 uid_is_valid(override_uid) ? override_uid : st->st_uid, in fd_copy_regular() 790 uid_is_valid(override_uid) ? override_uid : st->st_uid, in fd_copy_fifo() 838 uid_is_valid(override_uid) ? override_uid : st->st_uid, in fd_copy_node() 1018 uid_is_valid(override_uid) ? override_uid : st->st_uid, in fd_copy_directory()
|
D | user-record-show.c | 156 if (uid_is_valid(hr->uid)) in user_record_show() 170 } else if (uid_is_valid(hr->uid)) /* Show UID as GID if not separately configured */ in user_record_show()
|
/systemd-251/src/home/ |
D | homework-mount.c | 189 assert(uid_is_valid(stored_uid)); in make_userns() 190 assert(uid_is_valid(exposed_uid)); in make_userns() 242 assert(uid_is_valid(stored_uid)); in home_shift_uid() 243 assert(uid_is_valid(exposed_uid)); in home_shift_uid()
|
D | homed-varlink.c | 67 if (uid_is_valid(p->uid) && h->uid != p->uid) in home_user_match_lookup_parameters() 101 if (uid_is_valid(p.uid)) in vl_method_get_user_record()
|
D | homework-quota.c | 45 assert(uid_is_valid(h->uid)); in home_update_quota_classic()
|
D | homed-manager-bus.c | 121 if (!uid_is_valid(uid)) in method_get_home_by_uid() 252 if (!uid_is_valid(uid)) in method_get_user_record_by_uid() 361 if (uid_is_valid(hr->uid)) { in validate_and_allocate_home()
|
D | homework.c | 707 assert(uid_is_valid(uid)); in home_store_embedded_identity() 770 assert(uid_is_valid(uid)); in chown_recursive_directory() 878 if (!uid_is_valid(h->uid)) in home_activate() 1322 if (!uid_is_valid(h->uid)) in home_create() 1531 if (!uid_is_valid(h->uid)) in home_validate_update()
|
/systemd-251/src/machine/ |
D | machined-varlink.c | 21 assert(uid_is_valid(uid)); in build_user_json() 43 if (uid_is_valid(p->uid) && uid != p->uid) in user_match_lookup_parameters() 56 assert(uid_is_valid(uid)); in user_lookup_uid() 167 if (uid_is_valid(p.uid)) in vl_method_get_user_record() 178 uid = uid_is_valid(found_uid) ? found_uid : p.uid; in vl_method_get_user_record()
|
D | machined-core.c | 46 assert(uid_is_valid(uid)); in manager_find_machine_for_uid()
|
D | machine.c | 790 if (!uid_is_valid(converted)) in machine_owns_uid_internal() 827 assert(uid_is_valid(uid)); in machine_translate_uid_internal() 858 if (!uid_is_valid(converted)) in machine_translate_uid_internal()
|
/systemd-251/src/basic/ |
D | user-util.h | 23 bool uid_is_valid(uid_t uid); 26 return uid_is_valid((uid_t) gid); in gid_is_valid()
|
D | user-util.c | 30 bool uid_is_valid(uid_t uid) { in uid_is_valid() function 64 if (!uid_is_valid(uid)) in parse_uid() 275 if (!uid_is_valid(p->pw_uid)) in get_user_creds() 380 if (uid_is_valid(uid)) { in uid_to_name()
|
D | mkdir.c | 172 if (!uid_is_valid(uid) && !gid_is_valid(gid) && flags == 0) { in mkdir_p_internal() 230 if (uid_is_valid(uid) || gid_is_valid(gid)) { in mkdir_p_root()
|
/systemd-251/src/core/ |
D | core-varlink.c | 26 assert(uid_is_valid(uid)); in build_user_json() 48 if (uid_is_valid(p->uid) && uid != p->uid) in user_match_lookup_parameters() 278 if (uid_is_valid(p.uid)) in vl_method_get_user_record() 318 uid = uid_is_valid(found_uid) ? found_uid : p.uid; in vl_method_get_user_record()
|
/systemd-251/src/nspawn/ |
D | nspawn-bind-user.c | 22 assert(name || uid_is_valid(uid)); in check_etc_passwd_collisions() 41 if (uid_is_valid(uid) && pw->pw_uid == uid) in check_etc_passwd_collisions() 329 assert(uid_is_valid(uid)); in write_and_symlink()
|
D | nspawn-patch-uid.c | 103 if (!uid_is_valid(new_uid)) in shift_acl() 227 if (!uid_is_valid(new_uid) || !gid_is_valid(new_gid)) in patch_fd()
|
/systemd-251/src/udev/ |
D | udev-node.c | 620 apply_uid = uid_is_valid(uid) && stats.st_uid != uid; in udev_node_apply_permissions_impl() 630 uid_is_valid(uid) ? uid : stats.st_uid, in udev_node_apply_permissions_impl() 640 uid_is_valid(uid) ? uid : stats.st_uid, in udev_node_apply_permissions_impl() 646 uid_is_valid(uid) ? uid : stats.st_uid, in udev_node_apply_permissions_impl()
|
/systemd-251/src/userdb/ |
D | userwork.c | 159 if (uid_is_valid(p.uid)) in vl_method_get_user_record() 213 if ((uid_is_valid(p.uid) && hr->uid != p.uid) || in vl_method_get_user_record() 342 if ((uid_is_valid(p.gid) && g->gid != p.gid) || in vl_method_get_group_record()
|
/systemd-251/src/journal/ |
D | journald-server.c | 956 IOVEC_ADD_NUMERIC_FIELD(iovec, n, c->uid, uid_t, uid_is_valid, UID_FMT, "_UID"); in dispatch_message_real() 970 … IOVEC_ADD_NUMERIC_FIELD(iovec, n, c->loginuid, uid_t, uid_is_valid, UID_FMT, "_AUDIT_LOGINUID"); in dispatch_message_real() 974 …IOVEC_ADD_NUMERIC_FIELD(iovec, n, c->owner_uid, uid_t, uid_is_valid, UID_FMT, "_SYSTEMD_OWNER_UID"… in dispatch_message_real() 993 … IOVEC_ADD_NUMERIC_FIELD(iovec, n, o->uid, uid_t, uid_is_valid, UID_FMT, "OBJECT_UID"); in dispatch_message_real() 1005 …IOVEC_ADD_NUMERIC_FIELD(iovec, n, o->loginuid, uid_t, uid_is_valid, UID_FMT, "OBJECT_AUDIT_LOGINUI… in dispatch_message_real() 1009 …IOVEC_ADD_NUMERIC_FIELD(iovec, n, o->owner_uid, uid_t, uid_is_valid, UID_FMT, "OBJECT_SYSTEMD_OWNE… in dispatch_message_real() 1042 if (s->split_mode == SPLIT_UID && c && uid_is_valid(c->uid)) in dispatch_message_real() 1045 else if (s->split_mode == SPLIT_LOGIN && c && c->uid > 0 && uid_is_valid(c->owner_uid)) in dispatch_message_real()
|
/systemd-251/src/login/ |
D | user-runtime-dir.c | 62 assert(uid_is_valid(uid)); in user_mkdir_runtime_path()
|