aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/init_syscalls.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-22 11:14:02 +0200
committerChristoph Hellwig <hch@lst.de>2020-07-31 08:17:53 +0200
commiteb9d7d390e51108b4c6a9a7993ed9be92548c8f7 (patch)
tree6881b1da19a06e63f1c4d6ba81403dfe94697553 /include/linux/init_syscalls.h
parentinit: add an init_chmod helper (diff)
downloadwireguard-linux-eb9d7d390e51108b4c6a9a7993ed9be92548c8f7.tar.xz
wireguard-linux-eb9d7d390e51108b4c6a9a7993ed9be92548c8f7.zip
init: add an init_eaccess helper
Add a simple helper to check if a file exists based on kernel space file name and switch the early init code over to it. Note that this theoretically changes behavior as it always is based on the effective permissions. But during early init that doesn't make a difference. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/init_syscalls.h')
-rw-r--r--include/linux/init_syscalls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/init_syscalls.h b/include/linux/init_syscalls.h
index 2b1b4dc58682..7031c0934bee 100644
--- a/include/linux/init_syscalls.h
+++ b/include/linux/init_syscalls.h
@@ -7,5 +7,6 @@ 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_chmod(const char *filename, umode_t mode);
+int __init init_eaccess(const char *filename);
int __init init_unlink(const char *pathname);
int __init init_rmdir(const char *pathname);