Re: Braces in path field breaks audit2allow (PROPOSED FIX)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry to make the first mod so complicated.

After looking at the Perl a bit, this is simpler, but
depends on 'important brace fields' starting with the
brace character.  Is that correct?

If so, a patch follows.

tom


--- /usr/bin/audit2allow        2004-08-11 14:29:39.000000000 -0700
+++ a2a 2004-08-12 14:42:33.812606852 -0700
@@ -65,7 +65,7 @@
     $command="";
     foreach $i(0..$#types){
        next if($types[$i]!~/[=\{]/);
-       if($types[$i]=~/\{/){
+       if($types[$i]=~/^\{/){
            $j=$i+1;
            while($types[$j]!~/\}/){
                $command.=" $types[$j]";

-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux