mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 08:02:59 -04:00
init: add an init_mknod helper
Add a simple helper to mknod with a kernel space file name and switch the early init code over to it. Remove the now unused ksys_mknod. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -8,6 +8,7 @@ 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_chmod(const char *filename, umode_t mode);
|
||||
int __init init_eaccess(const char *filename);
|
||||
int __init init_mknod(const char *filename, umode_t mode, unsigned int dev);
|
||||
int __init init_link(const char *oldname, const char *newname);
|
||||
int __init init_symlink(const char *oldname, const char *newname);
|
||||
int __init init_unlink(const char *pathname);
|
||||
|
||||
@@ -1270,15 +1270,6 @@ int compat_ksys_ipc(u32 call, int first, int second,
|
||||
* The following kernel syscall equivalents are just wrappers to fs-internal
|
||||
* functions. Therefore, provide stubs to be inlined at the callsites.
|
||||
*/
|
||||
extern long do_mknodat(int dfd, const char __user *filename, umode_t mode,
|
||||
unsigned int dev);
|
||||
|
||||
static inline long ksys_mknod(const char __user *filename, umode_t mode,
|
||||
unsigned int dev)
|
||||
{
|
||||
return do_mknodat(AT_FDCWD, filename, mode, dev);
|
||||
}
|
||||
|
||||
extern int do_fchownat(int dfd, const char __user *filename, uid_t user,
|
||||
gid_t group, int flag);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user