Research Menu

.
Skip Search Box

SELinux Mailing List

minor structure usage bug

From: Chad Hanson <chanson_at_tcs-sec.com>
Date: Tue, 30 Mar 2004 15:56:53 -0500

We found the sk_free_security() function incorrectly types ssec to a task_security_struct instead of sk_security_struct. This has no current impact as the magic element is the top of each structure.

  • hooks.c.dist 2004-03-30 14:25:05.000000000 -0600 +++ hooks.c 2004-03-30 14:25:31.000000000 -0600 @@ -271,7 +271,7 @@

 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;


_______________________________________________________________
Chad Hanson				mailto:chanson@tcs-sec.com
Trusted Computer Solutions		Phone: 217-384-0028 x12
121 W Goose Alley			Fax: 217-384-0288

Urbana IL 61801
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
Received on Tue 30 Mar 2004 - 15:57:19 EST
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service