initscript fails if profile filename contains spaces

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

Bug Description

For testing, I created a profile in "/etc/apparmor.d/bin.foo bar" (note the space in the filename).

The result is that the initscript throws some error messages:

# rcapparmor reload
Restarting AppArmor grep: /etc/apparmor.d/bin.foo: No such file or directory
grep: bar: No such file or directory
Cache miss: /etc/apparmor.d/bin.foo bar
Wrote cache: /etc/apparmor.d/cache/bin.foo bar
Cache hit: /etc/apparmor.d/cache/bin.ping
[...]
Cache miss: /etc/apparmor.d/usr.share.git-web.gitweb.cgi
/lib/apparmor/rc.apparmor.functions: line 479: echo: write error: No such file or directory
                                                                                                                                                  done
/lib/apparmor/rc.apparmor.functions: line 484: return: -v: invalid option
return: usage: return [n]

Obviously there are some quotes around filenames missing in rc.apparmor.functions

Changed in apparmor:
importance: Undecided → Medium
status: New → Triaged
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.