SELINUX: Bug fix in security_sid_mls_copy
PATCH 1/1 SELINUX: Bug fix in security_sid_mls_copy
The following fixes a bug where random mem is being tampered with in the non-mls case; encountered by Jashua Brindle on a gentoo box.
---
PS: NOT SURE IF THIS ALSO NEEDS TO BE SENT TO NETDEV. PLEASE LET ME KNOW IF I SHOULD.
security/selinux/ss/services.c +1 -1
@@ -1841,7 +1841,7 @@ int security_sid_mls_copy(u32 sid, u32 mu32 len;int rc =0 ; -if (!ss_initialized) { +if (!ss_initialized || !selinux_mls_enabled) { *new_sid = sid; goto out; }
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 5 lines · Venkat Yekkirala
The following fixes a bug where random mem is being tampered with in the non-mls case; encountered by Jashua Brindle on a gentoo box.
Signed-off-by Venkat Yekkirala <[email protected]>
Quoted 4 lines
---
PS: NOT SURE IF THIS ALSO NEEDS TO BE SENT TO NETDEV. PLEASE LET ME KNOW IF I SHOULD.
Yes. Note that it is for 2.6.19 as well as a bug fix for the prior patches.
Quoted 14 lines
security/selinux/ss/services.c +1
-1@@ -1841,7 +1841,7 @@ int security_sid_mls_copy(u32 sid, u32 mu32 len;int rc =0 ; -if (!ss_initialized) { +if (!ss_initialized || !selinux_mls_enabled) { *new_sid = sid; goto out; }
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.