Lines Matching refs:user
703 int chown_common(const struct path *path, uid_t user, gid_t group) in chown_common() argument
713 uid = make_kuid(current_user_ns(), user); in chown_common()
723 if ((user != (uid_t)-1) && !setattr_vfsuid(&newattrs, uid)) in chown_common()
748 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, in do_fchownat() argument
768 error = chown_common(&path, user, group); in do_fchownat()
780 SYSCALL_DEFINE5(fchownat, int, dfd, const char __user *, filename, uid_t, user, in SYSCALL_DEFINE5() argument
783 return do_fchownat(dfd, filename, user, group, flag); in SYSCALL_DEFINE5()
786 SYSCALL_DEFINE3(chown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
788 return do_fchownat(AT_FDCWD, filename, user, group, 0); in SYSCALL_DEFINE3()
791 SYSCALL_DEFINE3(lchown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
793 return do_fchownat(AT_FDCWD, filename, user, group, in SYSCALL_DEFINE3()
797 int vfs_fchown(struct file *file, uid_t user, gid_t group) in vfs_fchown() argument
805 error = chown_common(&file->f_path, user, group); in vfs_fchown()
810 int ksys_fchown(unsigned int fd, uid_t user, gid_t group) in ksys_fchown() argument
816 error = vfs_fchown(f.file, user, group); in ksys_fchown()
822 SYSCALL_DEFINE3(fchown, unsigned int, fd, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
824 return ksys_fchown(fd, user, group); in SYSCALL_DEFINE3()