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 /fs/open.c | |
parent | b873498f99c77e7b5be3aa5ffe9ca67437232fe0 (diff) | |
download | linux-1097742efc643ffc667c5c6684635b2663145a7d.tar.bz2 |
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 'fs/open.c')
-rw-r--r-- | fs/open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/open.c b/fs/open.c index 49960a1248f1..7ba89eae46c5 100644 --- a/fs/open.c +++ b/fs/open.c @@ -563,7 +563,7 @@ out: return error; } -static int chmod_common(const struct path *path, umode_t mode) +int chmod_common(const struct path *path, umode_t mode) { struct inode *inode = path->dentry->d_inode; struct inode *delegated_inode = NULL; @@ -610,7 +610,7 @@ SYSCALL_DEFINE2(fchmod, unsigned int, fd, umode_t, mode) return err; } -int do_fchmodat(int dfd, const char __user *filename, umode_t mode) +static int do_fchmodat(int dfd, const char __user *filename, umode_t mode) { struct path path; int error; |