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 /init | |
parent | b873498f99c77e7b5be3aa5ffe9ca67437232fe0 (diff) | |
download | linux-stable-1097742efc643ffc667c5c6684635b2663145a7d.tar.gz linux-stable-1097742efc643ffc667c5c6684635b2663145a7d.tar.bz2 linux-stable-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 'init')
-rw-r--r-- | init/initramfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init/initramfs.c b/init/initramfs.c index 358dcd93cb9d..efa9fb70038d 100644 --- a/init/initramfs.c +++ b/init/initramfs.c @@ -350,14 +350,14 @@ static int __init do_name(void) } else if (S_ISDIR(mode)) { ksys_mkdir(collected, mode); init_chown(collected, uid, gid, 0); - ksys_chmod(collected, mode); + init_chmod(collected, mode); dir_add(collected, mtime); } else if (S_ISBLK(mode) || S_ISCHR(mode) || S_ISFIFO(mode) || S_ISSOCK(mode)) { if (maybe_link() == 0) { ksys_mknod(collected, mode, rdev); init_chown(collected, uid, gid, 0); - ksys_chmod(collected, mode); + init_chmod(collected, mode); do_utime(collected, mtime); } } |