Lines Matching refs:uid

140 static int make_uid_symlinks(uid_t uid, const char *name, bool b) {  in make_uid_symlinks()  argument
153 xsprintf(path1, "/run/systemd/dynamic-uid/direct:" UID_FMT, uid); in make_uid_symlinks()
322 uid_t uid = UID_INVALID; in dynamic_user_pop() local
323 struct iovec iov = IOVEC_INIT(&uid, sizeof(uid)); in dynamic_user_pop()
338 *ret_uid = uid; in dynamic_user_pop()
344 static int dynamic_user_push(DynamicUser *d, uid_t uid, int lock_fd) { in dynamic_user_push() argument
345 struct iovec iov = IOVEC_INIT(&uid, sizeof(uid)); in dynamic_user_push()
353 static void unlink_uid_lock(int lock_fd, uid_t uid, const char *name) { in unlink_uid_lock() argument
359 xsprintf(lock_path, "/run/systemd/dynamic-uid/" UID_FMT, uid); in unlink_uid_lock()
362 (void) make_uid_symlinks(uid, name, false); /* remove direct lookup symlinks */ in unlink_uid_lock()
529 uid_t uid; in dynamic_user_current() local
540 r = dynamic_user_pop(d, &uid, &lock_fd); in dynamic_user_current()
544 r = dynamic_user_push(d, uid, lock_fd); in dynamic_user_current()
549 *ret = uid; in dynamic_user_current()
571 uid_t uid; in dynamic_user_close() local
581 r = dynamic_user_pop(d, &uid, &lock_fd); in dynamic_user_close()
589 unlink_uid_lock(lock_fd, uid, d->name); in dynamic_user_close()
697 int dynamic_user_lookup_uid(Manager *m, uid_t uid, char **ret) { in dynamic_user_lookup_uid() argument
707 if (!uid_is_dynamic(uid)) in dynamic_user_lookup_uid()
710 xsprintf(lock_path, "/run/systemd/dynamic-uid/" UID_FMT, uid); in dynamic_user_lookup_uid()
721 if (check_uid != uid) /* lock file doesn't match our own idea */ in dynamic_user_lookup_uid()
785 int dynamic_creds_realize(DynamicCreds *creds, char **suggested_paths, uid_t *uid, gid_t *gid) { in dynamic_creds_realize() argument
791 assert(uid); in dynamic_creds_realize()
808 *uid = u; in dynamic_creds_realize()