aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-04-11 23:07:13 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-04-11 23:07:13 -0700
commitd15128eb539b325df2d71c331ac4994da5f97740 (patch)
treefde576480b76158234bbb8e850df6a580af03afe /security
parent25c1c70bfdb5f3c2f17129cd324258da15924f7f (diff)
downloadhistory-d15128eb539b325df2d71c331ac4994da5f97740.tar.gz
[PATCH] selinux: fix struct type
From: Stephen Smalley <sds@epoch.ncsc.mil> This patch fixes the type of the ssec pointer in the sk_free_security function. This has no current impact as the magic element is the top of each structure. Thanks to Chad Hanson of TCS for discovering the bug and submitting the patch.
Diffstat (limited to 'security')
-rw-r--r--security/selinux/hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 4174931f78988a..41abd169a3d7b8 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -272,7 +272,7 @@ static int sk_alloc_security(struct sock *sk, int family, int priority)
static void sk_free_security(struct sock *sk)
{
- struct task_security_struct *ssec = sk->sk_security;
+ struct sk_security_struct *ssec = sk->sk_security;
if (sk->sk_family != PF_UNIX || ssec->magic != SELINUX_MAGIC)
return;