summaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorCasey Schaufler <casey@schaufler-ca.com>2018-09-21 20:17:25 -0400
committerKees Cook <keescook@chromium.org>2019-01-08 16:18:44 -0500
commit98c88651365767c72ec6dc672072423bc19a39aa (patch)
tree82204d5efbc14a204669c5092646e7604add60c2 /security/selinux/hooks.c
parent0c6cfa622cf57109607f3416b286b6b55561a2ea (diff)
SELinux: Remove cred security blob poisoning
The SELinux specific credential poisioning only makes sense if SELinux is managing the credentials. As the intent of this patch set is to move the blob management out of the modules and into the infrastructure, the SELinux specific code has to go. The poisioning could be introduced into the infrastructure at some later date. Signed-off-by: Casey Schaufler <casey@schaufler-ca.com> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r--security/selinux/hooks.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index beec1de5c2da..ad227177550b 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -3708,12 +3708,6 @@ static void selinux_cred_free(struct cred *cred)
3708{ 3708{
3709 struct task_security_struct *tsec = selinux_cred(cred); 3709 struct task_security_struct *tsec = selinux_cred(cred);
3710 3710
3711 /*
3712 * cred->security == NULL if security_cred_alloc_blank() or
3713 * security_prepare_creds() returned an error.
3714 */
3715 BUG_ON(cred->security && (unsigned long) cred->security < PAGE_SIZE);
3716 cred->security = (void *) 0x7UL;
3717 kfree(tsec); 3711 kfree(tsec);
3718} 3712}
3719 3713