[Touch-packages] [Bug 1639660] Re: apparmor-parse cannot parse profile with stacking //

2016-11-07 Thread John Johansen
Alright I have replicated and there is indeed a problem here. It will work if the first profile starts with a / but fails when it doesn't ** Changed in: apparmor (Ubuntu) Status: New => Confirmed ** Changed in: apparmor (Ubuntu) Assignee: (unassigned) => John Johansen (jjohansen)

[Touch-packages] [Bug 1639660] Re: apparmor-parse cannot parse profile with stacking //

2016-11-07 Thread Yuqiong Sun
Hi John, Thanks for the quick reply. I did what you suggested, but it looks like it is still not working. After I remove the whitespace, I still have the same error: AppArmor parser error for root.test.shell in root.test.shell at line 7: syntax error, unexpected TOK_ID, expecting

[Touch-packages] [Bug 1639660] Re: apparmor-parse cannot parse profile with stacking //

2016-11-06 Thread John Johansen
Yuqiong Sun, the parser is sensitive to white space. If your profile has white space in the name you will need to use quotes around it /root/test/read px -> "readtest1 //& readtest2", otherwise you will need to remove the white space and specify it as /root/test/read px -> readtest1//,