init: add an init_chown helper

Add a simple helper to chown 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:
Christoph Hellwig
2020-07-22 11:13:26 +02:00
parent 4b7ca5014c
commit b873498f99
5 changed files with 24 additions and 5 deletions

View File

@@ -5,5 +5,6 @@ int __init init_mount(const char *dev_name, const char *dir_name,
int __init init_umount(const char *name, int flags);
int __init init_chdir(const char *filename);
int __init init_chroot(const char *filename);
int __init init_chown(const char *filename, uid_t user, gid_t group, int flags);
int __init init_unlink(const char *pathname);
int __init init_rmdir(const char *pathname);