diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-26 04:22:01 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:55:12 -0500 |
commit | 49f0a0767211d3076974e59a26f36b567cbe8621 (patch) | |
tree | 8c7098b4546a76b14adfbc49eb0354623ac31365 | |
parent | 36fcb589e752fa9c71f8a447db94126d102fd937 (diff) |
switch sys_chmod()/sys_fchmod()/sys_fchmodat() to umode_t
SYSCALLx magic should take care of things, according to Linus...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
-rw-r--r-- | fs/open.c | 6 | ||||
-rw-r--r-- | include/linux/syscalls.h | 6 |
2 files changed, 6 insertions, 6 deletions
@@ -468,7 +468,7 @@ out_unlock: | |||
468 | return error; | 468 | return error; |
469 | } | 469 | } |
470 | 470 | ||
471 | SYSCALL_DEFINE2(fchmod, unsigned int, fd, mode_t, mode) | 471 | SYSCALL_DEFINE2(fchmod, unsigned int, fd, umode_t, mode) |
472 | { | 472 | { |
473 | struct file * file; | 473 | struct file * file; |
474 | int err = -EBADF; | 474 | int err = -EBADF; |
@@ -482,7 +482,7 @@ SYSCALL_DEFINE2(fchmod, unsigned int, fd, mode_t, mode) | |||
482 | return err; | 482 | return err; |
483 | } | 483 | } |
484 | 484 | ||
485 | SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename, mode_t, mode) | 485 | SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename, umode_t, mode) |
486 | { | 486 | { |
487 | struct path path; | 487 | struct path path; |
488 | int error; | 488 | int error; |
@@ -495,7 +495,7 @@ SYSCALL_DEFINE3(fchmodat, int, dfd, const char __user *, filename, mode_t, mode) | |||
495 | return error; | 495 | return error; |
496 | } | 496 | } |
497 | 497 | ||
498 | SYSCALL_DEFINE2(chmod, const char __user *, filename, mode_t, mode) | 498 | SYSCALL_DEFINE2(chmod, const char __user *, filename, umode_t, mode) |
499 | { | 499 | { |
500 | return sys_fchmodat(AT_FDCWD, filename, mode); | 500 | return sys_fchmodat(AT_FDCWD, filename, mode); |
501 | } | 501 | } |
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index b3c16d8a6383..e1a4b9b81cf2 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
@@ -483,8 +483,8 @@ asmlinkage long sys_symlink(const char __user *old, const char __user *new); | |||
483 | asmlinkage long sys_unlink(const char __user *pathname); | 483 | asmlinkage long sys_unlink(const char __user *pathname); |
484 | asmlinkage long sys_rename(const char __user *oldname, | 484 | asmlinkage long sys_rename(const char __user *oldname, |
485 | const char __user *newname); | 485 | const char __user *newname); |
486 | asmlinkage long sys_chmod(const char __user *filename, mode_t mode); | 486 | asmlinkage long sys_chmod(const char __user *filename, umode_t mode); |
487 | asmlinkage long sys_fchmod(unsigned int fd, mode_t mode); | 487 | asmlinkage long sys_fchmod(unsigned int fd, umode_t mode); |
488 | 488 | ||
489 | asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg); | 489 | asmlinkage long sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg); |
490 | #if BITS_PER_LONG == 32 | 490 | #if BITS_PER_LONG == 32 |
@@ -769,7 +769,7 @@ asmlinkage long sys_futimesat(int dfd, const char __user *filename, | |||
769 | struct timeval __user *utimes); | 769 | struct timeval __user *utimes); |
770 | asmlinkage long sys_faccessat(int dfd, const char __user *filename, int mode); | 770 | asmlinkage long sys_faccessat(int dfd, const char __user *filename, int mode); |
771 | asmlinkage long sys_fchmodat(int dfd, const char __user * filename, | 771 | asmlinkage long sys_fchmodat(int dfd, const char __user * filename, |
772 | mode_t mode); | 772 | umode_t mode); |
773 | asmlinkage long sys_fchownat(int dfd, const char __user *filename, uid_t user, | 773 | asmlinkage long sys_fchownat(int dfd, const char __user *filename, uid_t user, |
774 | gid_t group, int flag); | 774 | gid_t group, int flag); |
775 | asmlinkage long sys_openat(int dfd, const char __user *filename, int flags, | 775 | asmlinkage long sys_openat(int dfd, const char __user *filename, int flags, |