SELinux: Fix bug in security_sid_mls_copy
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
@@ -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; }
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]>
David Miller
AppliedFrom: 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.