mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
![Christoph Hellwig](/assets/img/avatar_default.png)
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>
12 lines
592 B
C
12 lines
592 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
int __init init_mount(const char *dev_name, const char *dir_name,
|
|
const char *type_page, unsigned long flags, void *data_page);
|
|
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_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);
|