Lines Matching refs:group
748 int chown_common(const struct path *path, uid_t user, gid_t group) in chown_common() argument
760 gid = make_kgid(current_user_ns(), group); in chown_common()
771 if ((group != (gid_t)-1) && !setattr_vfsgid(&newattrs, gid)) in chown_common()
794 int do_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, in do_fchownat() argument
814 error = chown_common(&path, user, group); in do_fchownat()
827 gid_t, group, int, flag) in SYSCALL_DEFINE5() argument
829 return do_fchownat(dfd, filename, user, group, flag); in SYSCALL_DEFINE5()
832 SYSCALL_DEFINE3(chown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
834 return do_fchownat(AT_FDCWD, filename, user, group, 0); in SYSCALL_DEFINE3()
837 SYSCALL_DEFINE3(lchown, const char __user *, filename, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
839 return do_fchownat(AT_FDCWD, filename, user, group, in SYSCALL_DEFINE3()
843 int vfs_fchown(struct file *file, uid_t user, gid_t group) in vfs_fchown() argument
851 error = chown_common(&file->f_path, user, group); in vfs_fchown()
856 int ksys_fchown(unsigned int fd, uid_t user, gid_t group) in ksys_fchown() argument
862 error = vfs_fchown(f.file, user, group); in ksys_fchown()
868 SYSCALL_DEFINE3(fchown, unsigned int, fd, uid_t, user, gid_t, group) in SYSCALL_DEFINE3() argument
870 return ksys_fchown(fd, user, group); in SYSCALL_DEFINE3()