selinux: remove unused cred_commit hook

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, March 26, 2009 - 11:59 am

Gitweb:     http://git.kernel.org/linus/ca5143d3ff3c7a4e1c2c8bdcf0f53aea227a7722
Commit:     ca5143d3ff3c7a4e1c2c8bdcf0f53aea227a7722
Parent:     af294e41d0c95a291cc821a1b43ec2cd13976a8b
Author:     James Morris <jmorris@namei.org>
AuthorDate: Thu Jan 29 12:26:14 2009 +1100
Committer:  James Morris <jmorris@namei.org>
CommitDate: Fri Jan 30 08:55:12 2009 +1100

    selinux: remove unused cred_commit hook
    
    Remove unused cred_commit hook from SELinux.   This
    currently calls into the capabilities hook, which is a noop.
    
    Acked-by: Serge Hallyn <serue@us.ibm.com>
    Acked-by: Eric Paris <eparis@redhat.com>
    Signed-off-by: James Morris <jmorris@namei.org>
---
 security/selinux/hooks.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 72c1e5c..afccada 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -3245,14 +3245,6 @@ static int selinux_cred_prepare(struct cred *new, const struct cred *old,
 }
 
 /*
- * commit new credentials
- */
-static void selinux_cred_commit(struct cred *new, const struct cred *old)
-{
-	secondary_ops->cred_commit(new, old);
-}
-
-/*
  * set the security data for a kernel service
  * - all the creation contexts are set to unlabelled
  */
@@ -5610,7 +5602,6 @@ static struct security_operations selinux_ops = {
 	.task_create =			selinux_task_create,
 	.cred_free =			selinux_cred_free,
 	.cred_prepare =			selinux_cred_prepare,
-	.cred_commit =			selinux_cred_commit,
 	.kernel_act_as =		selinux_kernel_act_as,
 	.kernel_create_files_as =	selinux_kernel_create_files_as,
 	.task_setuid =			selinux_task_setuid,
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
selinux: remove unused cred_commit hook, Linux Kernel Mailing ..., (Thu Mar 26, 11:59 am)