Research
.
Skip Search Box

SELinux Mailing List

Re: Fix to genhomedircon to find conflicting directories correctly.

From: Stephen Smalley <sds_at_tycho.nsa.gov>
Date: Wed, 09 May 2007 11:30:26 -0400


On Fri, 2007-05-04 at 09:20 -0400, Daniel J Walsh wrote:
> 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
> --- nsapolicycoreutils/scripts/genhomedircon 2007-04-25 11:08:44.000000000 -0400
> +++ policycoreutils-2.0.14/scripts/genhomedircon 2007-05-04 09:14:57.000000000 -0400
> @@ -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.

-- 
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 Wed 9 May 2007 - 11:30:29 EDT
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service