diff options
author | Christoph Hellwig <hch@lst.de> | 2020-07-22 11:41:02 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-07-31 08:17:53 +0200 |
commit | 1097742efc643ffc667c5c6684635b2663145a7d (patch) | |
tree | 8cfd84b2df0b78392661466d6a18ce09f3e5f9f7 /include/linux/syscalls.h | |
parent | b873498f99c77e7b5be3aa5ffe9ca67437232fe0 (diff) | |
download | linux-1097742efc643ffc667c5c6684635b2663145a7d.tar.gz linux-1097742efc643ffc667c5c6684635b2663145a7d.tar.bz2 linux-1097742efc643ffc667c5c6684635b2663145a7d.zip |
init: add an init_chmod helper
Add a simple helper to chmod with a kernel space file name and switch
the early init code over to it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/syscalls.h')
-rw-r--r-- | include/linux/syscalls.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index e89d62e944dc..8b71fa321ca2 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h @@ -1304,13 +1304,6 @@ static inline long ksys_link(const char __user *oldname, return do_linkat(AT_FDCWD, oldname, AT_FDCWD, newname, 0); } -extern int do_fchmodat(int dfd, const char __user *filename, umode_t mode); - -static inline int ksys_chmod(const char __user *filename, umode_t mode) -{ - return do_fchmodat(AT_FDCWD, filename, mode); -} - long do_faccessat(int dfd, const char __user *filename, int mode, int flags); static inline long ksys_access(const char __user *filename, int mode) |