Lines Matching refs:user
643 int chown_common(const struct path *path, uid_t user, gid_t group) in chown_common() argument
653 uid = make_kuid(current_user_ns(), user); in chown_common()
663 if (user != (uid_t) -1) { in chown_common()
692 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, in do_fchownat() argument
712 error = chown_common(&path, user, group); in do_fchownat()
724 SYSCALL_DEFINE5(fchownat, int, dfd, const char __user *, filename, uid_t, user, in SYSCALL_DEFINE5() argument
727 return do_fchownat(dfd, filename, user, group, flag); in SYSCALL_DEFINE5()
730 SYSCALL_DEFINE3(chown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
732 return do_fchownat(AT_FDCWD, filename, user, group, 0); in SYSCALL_DEFINE3()
735 SYSCALL_DEFINE3(lchown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
737 return do_fchownat(AT_FDCWD, filename, user, group, in SYSCALL_DEFINE3()
741 int vfs_fchown(struct file *file, uid_t user, gid_t group) in vfs_fchown() argument
749 error = chown_common(&file->f_path, user, group); in vfs_fchown()
754 int ksys_fchown(unsigned int fd, uid_t user, gid_t group) in ksys_fchown() argument
760 error = vfs_fchown(f.file, user, group); in ksys_fchown()
766 SYSCALL_DEFINE3(fchown, unsigned int, fd, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
768 return ksys_fchown(fd, user, group); in SYSCALL_DEFINE3()