Comment 3 for bug 897958

Revision history for this message
Steve Beattie (sbeattie) wrote :

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)