Skip to contentSkip to conversation

SELinux: Fix bug in security_sid_mls_copy

PATCH Applied James Morris 2 participants 3 messages Sep 19, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SELinux: Fix bug in security_sid_mls_copy

From: Venkat Yekkirala <[email protected]>

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.

Please apply.

---

 security/selinux/ss/services.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
security/selinux/ss/services.c +1 -1
index 27ee28c..7eb69a6 100644
@@ -1841,7 +1841,7 @@ int security_sid_mls_copy(u32 sid, u32 m
 	u32 len;
 	int rc = 0;
 
-	if (!ss_initialized) {
+	if (!ss_initialized || !selinux_mls_enabled) {
 		*new_sid = sid;
 		goto out;
 	}
#1 lore raw
Quoted 6 lines · James Morris

From: Venkat Yekkirala <[email protected]>

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.

Please apply.

Actually, don't. It's for the net-2.6.19 tree.

Signature · 2 lines
James Morris
<[email protected]>
Applied
#2 lore raw

From: James Morris <[email protected]>
Date: Tue, 19 Sep 2006 10:03:30 -0400 (EDT)

Quoted 10 lines · James Morris
Quoted 7 lines

From: Venkat Yekkirala <[email protected]>

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.

Please apply.

Actually, don't. It's for the net-2.6.19 tree.

Applied to net-2.6.19, thanks.