Skip to contentSkip to conversation

Fix to genhomedircon to find conflicting directories correctly.

PATCH Daniel J Walsh 2 participants 2 messages May 4, 2007 – May 9, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw
scripts/genhomedircon +1 -1
diff --exclude-from=exclude --exclude=sepolgen-1.0.8 --exclude=gui --exclude=po -N -u -r nsapolicycoreutils/scripts/genhomedircon policycoreutils-2.0.14/scripts/genhomedircon
@@ -302,7 +302,7 @@
 			    
 			    regex = re.sub("\(\/\.\*\)\?", "", regex)
 			    regex = regex + "/*$"
-			    if re.search(home, regex, 0):
+			    if re.search(regex,home, 0):
 				    return 1
 		    except:
 			    continue
#1 lore raw

scripts/genhomedircon line 308

Quoted 13 lines · Daniel J Walsh

plain text document attachment (diff)
diff --exclude-from=exclude --exclude=sepolgen-1.0.8 --exclude=gui --exclude=po -N -u -r nsapolicycoreutils/scripts/genhomedircon policycoreutils-2.0.14/scripts/genhomedircon

scripts/genhomedircon +1 -1
@@ -302,7 +302,7 @@
 
 			    regex = re.sub("\(\/\.\*\)\?", "", regex)
 			    regex = regex + "/*$"
-			    if re.search(home, regex, 0):
+			    if re.search(regex,home, 0):
 				    return 1
 		    except:
 			    continue

Thanks, merged.

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.