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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user