Commit ca5143d3 authored by James Morris's avatar James Morris

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: default avatarSerge Hallyn <serue@us.ibm.com>
Acked-by: default avatarEric Paris <eparis@redhat.com>
Signed-off-by: default avatarJames Morris <jmorris@namei.org>
parent af294e41
...@@ -3244,14 +3244,6 @@ static int selinux_cred_prepare(struct cred *new, const struct cred *old, ...@@ -3244,14 +3244,6 @@ static int selinux_cred_prepare(struct cred *new, const struct cred *old,
return 0; return 0;
} }
/*
* 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 * set the security data for a kernel service
* - all the creation contexts are set to unlabelled * - all the creation contexts are set to unlabelled
...@@ -5610,7 +5602,6 @@ static struct security_operations selinux_ops = { ...@@ -5610,7 +5602,6 @@ static struct security_operations selinux_ops = {
.task_create = selinux_task_create, .task_create = selinux_task_create,
.cred_free = selinux_cred_free, .cred_free = selinux_cred_free,
.cred_prepare = selinux_cred_prepare, .cred_prepare = selinux_cred_prepare,
.cred_commit = selinux_cred_commit,
.kernel_act_as = selinux_kernel_act_as, .kernel_act_as = selinux_kernel_act_as,
.kernel_create_files_as = selinux_kernel_create_files_as, .kernel_create_files_as = selinux_kernel_create_files_as,
.task_setuid = selinux_task_setuid, .task_setuid = selinux_task_setuid,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment