include rules don't handle files with spaces in the name

Bug #1738877 reported by Jamie Strandboge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AppArmor
New
Undecided
Unassigned

Bug Description

$ mkdir '/tmp/foo bar'

$ echo 'profile test { include "/tmp/foo bar" }' | apparmor_parser -QTK
AppArmor parser error, in stdin line 1: Found unexpected character: '"'
"[1]

$ echo 'profile test { include "/tmp/foo\ bar" }' | apparmor_parser -QTK
AppArmor parser error, in stdin line 1: Could not open '/tmp/foo\'
"[1]

When fixing this, please also adjust utils/apparmor/regex.py (search for this bug number).

Tags: aa-parser
description: updated
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.