security/ cleanups
This patch contains the following cleanups that are now possible: - remove the unused security_operations->inode_xattr_getsuffix - remove the no longer used security_operations->unregister_security - remove some no longer required exit code - remove a bunch of no longer used exports Signed-off-by: Adrian Bunk <bunk@kernel.org> Acked-by: James Morris <jmorris@namei.org> Cc: Chris Wright <chrisw@sous-sol.org> Cc: Stephen Smalley <sds@tycho.nsa.gov> Cc: Serge Hallyn <serue@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
b53767719b
commit
cbfee34520
@ -2409,11 +2409,6 @@ static int selinux_inode_removexattr (struct dentry *dentry, char *name)
|
||||
return -EACCES;
|
||||
}
|
||||
|
||||
static const char *selinux_inode_xattr_getsuffix(void)
|
||||
{
|
||||
return XATTR_SELINUX_SUFFIX;
|
||||
}
|
||||
|
||||
/*
|
||||
* Copy the in-core inode security context value to the user. If the
|
||||
* getxattr() prior to this succeeded, check to see if we need to
|
||||
@ -4554,19 +4549,6 @@ static int selinux_register_security (const char *name, struct security_operatio
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int selinux_unregister_security (const char *name, struct security_operations *ops)
|
||||
{
|
||||
if (ops != secondary_ops) {
|
||||
printk(KERN_ERR "%s: trying to unregister a security module "
|
||||
"that is not registered.\n", __FUNCTION__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
secondary_ops = original_ops;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void selinux_d_instantiate (struct dentry *dentry, struct inode *inode)
|
||||
{
|
||||
if (inode)
|
||||
@ -4844,7 +4826,6 @@ static struct security_operations selinux_ops = {
|
||||
.inode_getxattr = selinux_inode_getxattr,
|
||||
.inode_listxattr = selinux_inode_listxattr,
|
||||
.inode_removexattr = selinux_inode_removexattr,
|
||||
.inode_xattr_getsuffix = selinux_inode_xattr_getsuffix,
|
||||
.inode_getsecurity = selinux_inode_getsecurity,
|
||||
.inode_setsecurity = selinux_inode_setsecurity,
|
||||
.inode_listsecurity = selinux_inode_listsecurity,
|
||||
@ -4914,7 +4895,6 @@ static struct security_operations selinux_ops = {
|
||||
.sem_semop = selinux_sem_semop,
|
||||
|
||||
.register_security = selinux_register_security,
|
||||
.unregister_security = selinux_unregister_security,
|
||||
|
||||
.d_instantiate = selinux_d_instantiate,
|
||||
|
||||
|
Reference in New Issue
Block a user