aa-logprof won't parse include files that only contain hats

Bug #400367 reported by Marc Deslauriers
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apparmor (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: apparmor

I have an include file that only contains a hat.

When running aa-logprof, I get the following:

include <usr.sbin.apache2.d/phpsysinfo> contains syntax errors. at /usr/share/perl5/Immunix/SubDomain.pm line 5223.

This is on Karmic, apparmor 2.3.1+1403-0ubuntu1.

Attached is the profiles I'm using.

Related branches

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Same problem with jaunty, btw...

Changed in apparmor (Ubuntu):
status: New → Confirmed
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Possible Karmic workaround/fix?

--- SubDomain.pm.ori 2009-08-03 10:37:49.000000000 -0400
+++ SubDomain.pm 2009-08-03 12:30:46.000000000 -0400
@@ -5213,9 +5213,6 @@
   unless exists($profile_data->{$profile}{$hat}{declared});

         } elsif (m/^\s*\^(\"??.+?\"??)\s+((flags=)?\((.+)\)\s+)*\{\s*(#.*)?$/) {
- if ($do_include) {
- die "include <$file> contains syntax errors.";
- }
             # start of embedded hat syntax hat definition
             # read in and mark as changed so that will be written out in the new
             # format

Changed in apparmor (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apparmor - 2.3.1+1403-0ubuntu15

---------------
apparmor (2.3.1+1403-0ubuntu15) karmic; urgency=low

  * utils/SubDomain.pm: don't abort when an include file only contains
    hats (LP: #400367)

 -- Marc Deslauriers <email address hidden> Wed, 26 Aug 2009 11:35:58 -0400

Changed in apparmor (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.