Skip to content

Commit

Permalink
SMACK: remove dead cred_commit hook
Browse files Browse the repository at this point in the history
This is an unused hook in SMACK so remove it.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: James Morris <jmorris@namei.org>
  • Loading branch information
Eric Paris authored and James Morris committed Apr 7, 2010
1 parent dd3e783 commit e2902eb
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions security/smack/smack_lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1117,15 +1117,6 @@ static int smack_cred_prepare(struct cred *new, const struct cred *old,
return 0;
}

/**
* smack_cred_commit - commit new credentials
* @new: the new credentials
* @old: the original credentials
*/
static void smack_cred_commit(struct cred *new, const struct cred *old)
{
}

/**
* smack_cred_transfer - Transfer the old credentials to the new credentials
* @new: the new credentials
Expand Down Expand Up @@ -3120,7 +3111,6 @@ struct security_operations smack_ops = {
.cred_alloc_blank = smack_cred_alloc_blank,
.cred_free = smack_cred_free,
.cred_prepare = smack_cred_prepare,
.cred_commit = smack_cred_commit,
.cred_transfer = smack_cred_transfer,
.kernel_act_as = smack_kernel_act_as,
.kernel_create_files_as = smack_kernel_create_files_as,
Expand Down

0 comments on commit e2902eb

Please sign in to comment.