diff options
author | Roberto Sassu <roberto.sassu@huawei.com> | 2023-03-14 09:17:17 +0100 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2023-03-23 19:38:44 -0400 |
commit | 0d57b970df352517a75f4533820c49de360c4123 (patch) | |
tree | 0a8fd53e34e0b1d850aaeee6d7616b768a1b0da9 /security | |
parent | de3004c874e740304cc4f4a83d6200acb511bbda (diff) | |
download | linux-0d57b970df352517a75f4533820c49de360c4123.tar.gz linux-0d57b970df352517a75f4533820c49de360c4123.tar.bz2 linux-0d57b970df352517a75f4533820c49de360c4123.zip |
security: Remove security_old_inode_init_security()
As the remaining two users reiserfs and ocfs2 switched to
security_inode_init_security(), security_old_inode_init_security() can be
now removed.
Out-of-tree kernel modules should switch to security_inode_init_security()
too.
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Reviewed-by: Casey Schaufler <casey@schaufler-ca.com>
Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/security.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/security/security.c b/security/security.c index b808e1b86551..f4170efcddda 100644 --- a/security/security.c +++ b/security/security.c @@ -1655,17 +1655,6 @@ int security_inode_init_security_anon(struct inode *inode, context_inode); } -int security_old_inode_init_security(struct inode *inode, struct inode *dir, - const struct qstr *qstr, const char **name, - void **value, size_t *len) -{ - if (unlikely(IS_PRIVATE(inode))) - return -EOPNOTSUPP; - return call_int_hook(inode_init_security, -EOPNOTSUPP, inode, dir, - qstr, name, value, len); -} -EXPORT_SYMBOL(security_old_inode_init_security); - #ifdef CONFIG_SECURITY_PATH /** * security_path_mknod() - Check if creating a special file is allowed |