genhomedircon
def checkExists(self, home):
fd = open(self.getFileContextFile())
for i in fd.read().split('\n'):
if len(i) == 0:
continue
regex = i.split()[0]The above code at line 282 in genhomedircon in FC5 has a bug in that it can't handle a line in the file contexts file containing " ".
The attached patch fixes a bug in the FC5 policy which generates such a line with only a space.
Signature · 4 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page
policy/support/misc_macros.spt +1 -1
@@ -37,7 +37,7 @@ # # gen_context(context,mls_sensitivity,[mcs_categories]) # -define(`gen_context',`$1`'ifdef(`enable_mls',`:$2')`'ifdef(`enable_mcs',`:s0`'ifelse(`$3',,,`:$3')')') dnl +define(`gen_context',`$1`'ifdef(`enable_mls',`:$2')`'ifdef(`enable_mcs',`:s0`'ifelse(`$3',,,`:$3')')')dnl ######################################## #
On Fri, 2006-05-19 at 20:28 +1000, Russell Coker wrote:
[cut]
Quoted 5 lines
The above code at line 282 in genhomedircon in FC5 has a bug in that it can't handle a line in the file contexts file containing " ".
The attached patch fixes a bug in the FC5 policy which generates such a line with only a space.
Merged.
Signature · 9 lines
Chris PeBenito Tresys Technology, LLC (410) 290-1411 x150 -- 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.