Research
Skip Research Menus
Research MenuSecurity Enhanced Linux What's New Frequently Asked Questions Background Documents License Download Participating Mail List Archives Remaining Work Contributors Related Work Press Releases Information Assurance Research NIARL In-house Research Areas Mathematical Sciences Program Sabbaticals Computer & Information Sciences Research Technology Transfer Advanced Computing Advanced Mathematics Communications & Networking Information Processing Microelectronics Other Technologies Technology Fact Sheets Publications Related Links |
SELinux Mailing List[patch] libsepol: fix endianness problem in policy module write code
From: Stephen Smalley <sds_at_tycho.nsa.gov>
Date: Fri, 24 Mar 2006 16:06:10 -0500
A FC5 PowerPC user reported that a policy module he built via checkmodule was triggering a failure upon semodule_package's attempt to read the module for packaging, and I tracked it down to a missing cpu_to_le32 conversion in the policy module write code. Patch is below and included in libsepol 1.12.2 in the sourceforge CVS. Note that you need to rebuild checkpolicy/checkmodule after rebuilding the patched libsepol, since checkpolicy/checkmodule use the static lib.
The bug report is at:
Index: libsepol/src/write.c RCS file: /nfshome/pal/CVS/selinux-usr/libsepol/src/write.c,v retrieving revision 1.22 diff -u -p -r1.22 write.c --- libsepol/src/write.c 15 Nov 2005 13:05:58 -0000 1.22 +++ libsepol/src/write.c 24 Mar 2006 16:42:15 -0000 @@ -1340,7 +1340,7 @@ static int avrule_block_write(avrule_blo for (decl = cur->branch_list; decl != NULL; decl = decl->next) { num_decls++; -- 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 majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.Received on Fri 24 Mar 2006 - 16:01:24 EST |
|
Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009 |