Lines Matching refs:uid
20 uid_t uid, in chown_one() argument
38 r = fchmod_and_chown(fd, st->st_mode & mask, uid, gid); in chown_one()
48 uid_t uid, in chown_recursive_internal() argument
89 …r = chown_recursive_internal(subdir_fd, &fst, uid, gid, mask); /* takes possession of subdir_fd ev… in chown_recursive_internal()
95 r = chown_one(path_fd, &fst, uid, gid, mask); in chown_recursive_internal()
103 r = chown_one(dirfd(d), st, uid, gid, mask); in chown_recursive_internal()
112 uid_t uid, in path_chown_recursive() argument
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()
136 …return chown_recursive_internal(TAKE_FD(fd), &st, uid, gid, mask); /* we donate the fd to the call… in path_chown_recursive()
141 uid_t uid, in fd_chown_recursive() argument
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()
173 …return chown_recursive_internal(duplicated_fd, &st, uid, gid, mask); /* fd donated even on failure… in fd_chown_recursive()