diff options
author | Andrew Morton <akpm@osdl.org> | 2004-04-11 23:07:13 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-11 23:07:13 -0700 |
commit | d15128eb539b325df2d71c331ac4994da5f97740 (patch) | |
tree | fde576480b76158234bbb8e850df6a580af03afe /security | |
parent | 25c1c70bfdb5f3c2f17129cd324258da15924f7f (diff) | |
download | history-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.c | 2 |
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; |