child profile names don't allow '-'

Bug #1197145 reported by Jamie Strandboge
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
AppArmor
Triaged
Low
Unassigned

Bug Description

Profile names are allowed to have '-' in their name, such as 'ubuntu-calculator-app. However, '-' is not allowed in a child profile name, so the following fails:

$ cat /tmp/bad ; apparmor_parser -p /tmp/bad
profile foo-app {
  /bin/bar Cx -> bar-app,

  profile bar-app {
  }
}
profile foo-app {
AppArmor parser error for /tmp/bad in /tmp/bad at line 2: Found unexpected character: '-'
  /bin/bar Cx -> bar-[1]

Workaround: use '_' instead:
$ apparmor_parser -p /tmp/f
profile foo-app {
  /bin/bar Cx -> bar_app,

  profile bar_app {
  }
}

Tags: aa-parser
Changed in apparmor:
importance: Undecided → Low
Steve Beattie (sbeattie)
Changed in apparmor:
status: New → Triaged
tags: added: aa-parser
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.