Incorrect warning with ubuntu-scope-network template: Character - was quoted unnecessarily, dropped preceding quote ('\') character
Bug #1350324 reported by
Jamie Strandboge
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/
}
$ apparmor_parser -QTK /tmp/profile
Warning from /tmp/profile (/tmp/profile line 4): Character - was quoted unnecessarily, dropped preceding quote ('\') character
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.
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