提交 49f0a076 编写于 作者: A Al Viro

switch sys_chmod()/sys_fchmod()/sys_fchmodat() to umode_t

SYSCALLx magic should take care of things, according to Linus...
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 36fcb589
...@@ -468,7 +468,7 @@ static int chmod_common(struct path *path, umode_t mode) ...@@ -468,7 +468,7 @@ static int chmod_common(struct path *path, umode_t mode)
return error; return error;
} }
SYSCALL_DEFINE2(fchmod, unsigned int, fd, mode_t, mode) SYSCALL_DEFINE2(fchmod, unsigned int, fd, umode_t, mode)
{ {
struct file * file; struct file * file;
int err = -EBADF; int err = -EBADF;
...@@ -482,7 +482,7 @@ SYSCALL_DEFINE2(fchmod, unsigned int, fd, mode_t, mode) ...@@ -482,7 +482,7 @@ SYSCALL_DEFINE2(fchmod, unsigned int, fd, mode_t, mode)
return err; return err;
} }
SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename, mode_t, mode) SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename, umode_t, mode)
{ {
struct path path; struct path path;
int error; int error;
...@@ -495,7 +495,7 @@ SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename, mode_t, mode) ...@@ -495,7 +495,7 @@ SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename, mode_t, mode)
return error; return error;
} }
SYSCALL_DEFINE2(chmod, const char __user *, filename, mode_t, mode) SYSCALL_DEFINE2(chmod, const char __user *, filename, umode_t, mode)
{ {
return sys_fchmodat(AT_FDCWD, filename, mode); return sys_fchmodat(AT_FDCWD, filename, mode);
} }
......
...@@ -483,8 +483,8 @@ asmlinkage long sys_symlink(const char __user *old, const char __user *new); ...@@ -483,8 +483,8 @@ asmlinkage long sys_symlink(const char __user *old, const char __user *new);
asmlinkage long sys_unlink(const char __user *pathname); asmlinkage long sys_unlink(const char __user *pathname);
asmlinkage long sys_rename(const char __user *oldname, asmlinkage long sys_rename(const char __user *oldname,
const char __user *newname); const char __user *newname);
asmlinkage long sys_chmod(const char __user *filename, mode_t mode); asmlinkage long sys_chmod(const char __user *filename, umode_t mode);
asmlinkage long sys_fchmod(unsigned int fd, mode_t mode); asmlinkage long sys_fchmod(unsigned int fd, umode_t mode);
asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg); asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg);
#if BITS_PER_LONG == 32 #if BITS_PER_LONG == 32
...@@ -769,7 +769,7 @@ asmlinkage long sys_futimesat(int dfd, const char __user *filename, ...@@ -769,7 +769,7 @@ asmlinkage long sys_futimesat(int dfd, const char __user *filename,
struct timeval __user *utimes); struct timeval __user *utimes);
asmlinkage long sys_faccessat(int dfd, const char __user *filename, int mode); asmlinkage long sys_faccessat(int dfd, const char __user *filename, int mode);
asmlinkage long sys_fchmodat(int dfd, const char __user * filename, asmlinkage long sys_fchmodat(int dfd, const char __user * filename,
mode_t mode); umode_t mode);
asmlinkage long sys_fchownat(int dfd, const char __user *filename, uid_t user, asmlinkage long sys_fchownat(int dfd, const char __user *filename, uid_t user,
gid_t group, int flag); gid_t group, int flag);
asmlinkage long sys_openat(int dfd, const char __user *filename, int flags, asmlinkage long sys_openat(int dfd, const char __user *filename, int flags,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册