Home
last modified time | relevance | path

Searched refs:uid_is_valid (Results 1 – 25 of 57) sorted by relevance

123

/systemd-251/src/shared/
Dchown-recursive.c123 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()
Duserdb-dropin.c31 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()
Dbase-filesystem.c174 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()
Dclean-ipc.c29 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()
Dacl-util.c20 assert(uid_is_valid(uid)); in acl_find_uid()
404 assert(uid_is_valid(uid)); in fd_add_uid_acl_permission()
Dcopy.c496 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()
Duser-record-show.c156 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/
Dhomework-mount.c189 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()
Dhomed-varlink.c67 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()
Dhomework-quota.c45 assert(uid_is_valid(h->uid)); in home_update_quota_classic()
Dhomed-manager-bus.c121 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()
Dhomework.c707 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/
Dmachined-varlink.c21 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()
Dmachined-core.c46 assert(uid_is_valid(uid)); in manager_find_machine_for_uid()
Dmachine.c790 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/
Duser-util.h23 bool uid_is_valid(uid_t uid);
26 return uid_is_valid((uid_t) gid); in gid_is_valid()
Duser-util.c30 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()
Dmkdir.c172 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/
Dcore-varlink.c26 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/
Dnspawn-bind-user.c22 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()
Dnspawn-patch-uid.c103 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/
Dudev-node.c620 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/
Duserwork.c159 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/
Djournald-server.c956 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/
Duser-runtime-dir.c62 assert(uid_is_valid(uid)); in user_mkdir_runtime_path()

123