Incorrect warning with ubuntu-scope-network template: Character - was quoted unnecessarily, dropped preceding quote ('\') character

Bug #1350324 reported by Jamie Strandboge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
Confirmed
Low
Unassigned
apparmor (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

$ cat /tmp/profile
profile "foo" {
  owner /run/user/[0-9]*/zmq/{[^c]**,c[^\-]**}-r rw,
}

$ apparmor_parser -QTK /tmp/profile
Warning from /tmp/profile (/tmp/profile line 4): Character - was quoted unnecessarily, dropped preceding quote ('\') character

Tags: aa-parser
Revision history for this message
John Johansen (jjohansen) wrote :

Some quick notes from an initial poke.

It looks like there may be an ordering error in how character classes are parsed in libapparmor_re/parse.y
the rule for charset (line 124-128) seem wrong to me. It needs a closer look anyway

The other problem is in parser_regex.y, which isn't allow \- in a character class

Changed in apparmor (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
tags: added: aa-parser
Changed in apparmor:
status: New → Confirmed
importance: Undecided → Low
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.