Bug#189251: oops, cosmetics
If you have a file named "a+++b" or some other name that is a regex wildcard then newrules.pl does not handle AVC messages referring to it correctly. This patch fixes that, and I've applied it to my Debian package already.
---------- Forwarded Message ----------
Subject: Bug#189251: oops, cosmetics
Date: Wed, 16 Apr 2003 20:01
From: Peter Gervai <[email protected]>
To: [email protected]
newrules-selinux 2003-04-16 13:14:13.000000000 +0200 renamed from newrules-selinux- 2003-04-16 12:56:54.000000000 +0200 +3 -0
@@ -79,6 +79,8 @@ my($c,$c,$c,$c) = split /\|/, $group; $info=~s/\ $c=\S+\ //gi; + # escape regexp patterns --<g> + $info=~s/([^\w])/\\$1/g; @atypes=split /\ /,$command; foreach $i(0..$#atypes){
@@ -113,6 +115,7 @@ print OUT "$t "; } print OUT "};\n"; + $occur{$k} =~ s/\\(.)/$1/g; # de-escape string print OUT "$occur{$k}\n" if ($verbose); }
-------------------------------------------------------
Signature · 10 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 -- 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.
Quoted 3 lines · Russell Coker
If you have a file named "a+++b" or some other name that is a regex wildcard then newrules.pl does not handle AVC messages referring to it correctly. This patch fixes that, and I've applied it to my Debian package already.
Thanks, merged.
Signature · 8 lines
Stephen Smalley <[email protected]> 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.