Hrm, the current behavior in trunk, as of rev 2757, doesn't work as intended, I think:
$ echo 'profile test\ space { }' | sudo ./apparmor_parser -r
Warning from stdin (line 1): ./apparmor_parser: cannot use or update cache, disable, or force-complain via stdin
Warning from stdin (stdin line 2): Character was quoted unnecessarily, dropped preceding quote ('\') character
$ sudo grep space /sys/kernel/security/apparmor/profiles
test\ space (enforce)
$ echo 'profile "test space" { }' | sudo apparmor_parser -r
Warning from stdin (line 1): apparmor_parser: cannot use or update cache, disable, or force-complain via stdin
$ sudo grep space /sys/kernel/security/apparmor/profiles
test space (enforce)
test\ space (enforce)
Hrm, the current behavior in trunk, as of rev 2757, doesn't work as intended, I think:
$ echo 'profile test\ space { }' | sudo ./apparmor_parser -r
Warning from stdin (line 1): ./apparmor_parser: cannot use or update cache, disable, or force-complain via stdin
Warning from stdin (stdin line 2): Character was quoted unnecessarily, dropped preceding quote ('\') character
$ sudo grep space /sys/kernel/ security/ apparmor/ profiles
test\ space (enforce)
$ echo 'profile "test space" { }' | sudo apparmor_parser -r
Warning from stdin (line 1): apparmor_parser: cannot use or update cache, disable, or force-complain via stdin
$ sudo grep space /sys/kernel/ security/ apparmor/ profiles
test space (enforce)
test\ space (enforce)