aa-cleanprof (and others?) duplicate quotes in file rules

Bug #1328707 reported by Christian Boltz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
Fix Released
Medium
Unassigned

Bug Description

Test profile:

#include <tunables/global>

profile "/bin/foo bar" {
  #include <abstractions/base>

  "/bin/foo bar" mrix,
  /proc/net/r* r,
}

When I run aa-cleanprof on this profile, additional quotes are added to the file rule:
   ""/bin/foo bar"" mrix,

If you run aa-cleanprof on it again and again, you end up with something like
   """"""/bin/foo bar"""""" mrix,

This probably also affects other py tools like aa-logprof (not tested yet).

Tags: aa-tools
Steve Beattie (sbeattie)
Changed in apparmor:
status: New → Confirmed
importance: Undecided → Medium
tags: added: aa-tools
Revision history for this message
Christian Boltz (cboltz) wrote :

Fix commited to trunk r2745

Changed in apparmor:
status: Confirmed → Fix Committed
Steve Beattie (sbeattie)
Changed in apparmor:
milestone: none → 2.9.0
Revision history for this message
Steve Beattie (sbeattie) wrote :

Apparmor 2.9.0 has been released; closing.

Changed in apparmor:
status: Fix Committed → 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.