diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2024-05-14 08:36:53 +0300 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2025-06-12 01:19:46 +0300 |
| commit | 29d673b1508fcaa14be32e92679874f10a099bc8 (patch) | |
| tree | eff29a677c4e3d2e629a9396d7514da52f5f4ab8 /include | |
| parent | 2c58d42de71f9c73e40afacc9d062892d2cc8862 (diff) | |
| download | linux-29d673b1508fcaa14be32e92679874f10a099bc8.tar.xz | |
make securityfs_remove() remove the entire subtree
... and fix the mount leak when anything's mounted there.
securityfs_recursive_remove becomes an alias for securityfs_remove -
we'll probably need to remove it in a cycle or two.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/security.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/security.h b/include/linux/security.h index dba349629229..386463b5e848 100644 --- a/include/linux/security.h +++ b/include/linux/security.h @@ -2211,7 +2211,6 @@ struct dentry *securityfs_create_symlink(const char *name, const char *target, const struct inode_operations *iops); extern void securityfs_remove(struct dentry *dentry); -extern void securityfs_recursive_remove(struct dentry *dentry); #else /* CONFIG_SECURITYFS */ @@ -2243,6 +2242,8 @@ static inline void securityfs_remove(struct dentry *dentry) #endif +#define securityfs_recursive_remove securityfs_remove + #ifdef CONFIG_BPF_SYSCALL union bpf_attr; struct bpf_map; |
