[Bug 1734038] Re: Potential regression found with apparmor test on Xenial/Zesty

2017-11-24 Thread Christian Boltz
> There is also a python parser (in aa.py) which only seems to understand the > 'include ' > syntax and it is this which throws errors when running the utility commands. Exactly, that's the cause of this bug. I'll change the title to make it obvious. Interestingly, it has been this way for

[Bug 1734038] Re: Potential regression found with apparmor test on Xenial/Zesty

2017-11-24 Thread Andy Whitcroft
This appears to be being triggered because there are actually two independent profile parsers in apparmor. There is a C version used by the apparmor_parse which correctly interprets the 'include "xxx"' syntax and then loads the profile. There is also a python parser (in aa.py) which only seems

[Bug 1734038] Re: Potential regression found with apparmor test on Xenial/Zesty

2017-11-23 Thread Andy Whitcroft
These errors are throwing the qrt-apparmor test suite out. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1734038 Title: Potential regression found with apparmor test on Xenial/Zesty To manage

[Bug 1734038] Re: Potential regression found with apparmor test on Xenial/Zesty

2017-11-23 Thread Andy Whitcroft
Ok this seems to be an issue with some of the basic apparmor commands not preprocessing the profiles when working on them. If we ask apparmor to parse the file in question it is happy to do so: apparmor_parser -p -Q /etc/apparmor.d/snap.core.3440.usr.lib.snapd.snap-confine [...] # Those are

[Bug 1734038] Re: Potential regression found with apparmor test on Xenial/Zesty

2017-11-23 Thread Po-Hsu Lin
** Description changed: Issue found with Xenial kernel 4.4.0-102 and Zesty kernel 4.10.0-41, across different architectures Multiple tests from ubuntu_qrt_apparmor test suite failed with the same error message: ERROR: Syntax Error: Unknown line found in file

[Bug 1734038] Re: Potential regression found with apparmor test on Xenial/Zesty

2017-11-23 Thread Po-Hsu Lin
** Description changed: Issue found with Xenial kernel 4.4.0-102 and Zesty kernel 4.10.0-41, across different architectures Multiple tests from ubuntu_qrt_apparmor test suite failed with the same error message: ERROR: Syntax Error: Unknown line found in file

[Bug 1734038] Re: Potential regression found with apparmor test on Xenial/Zesty

2017-11-23 Thread Michael Vogt
Could you please also include the output of "snap version" and "apt list snapd" ? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1734038 Title: Potential regression found with apparmor test on

[Bug 1734038] Re: Potential regression found with apparmor test on Xenial/Zesty

2017-11-23 Thread Po-Hsu Lin
Tested with snapd 2.29.3+17.10 on Artful with kernel 4.13.0-17 (the proposed one will be 4.13.0-18), this issue can be reproduced. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1734038 Title:

[Bug 1734038] Re: Potential regression found with apparmor test on Xenial/Zesty

2017-11-23 Thread Po-Hsu Lin
** Description changed: Issue found with Xenial kernel 4.4.0-102 and Zesty kernel 4.10.0-41, across different architectures Multiple tests from ubuntu_qrt_apparmor test suite failed with the same error message: ERROR: Syntax Error: Unknown line found in file

[Bug 1734038] Re: Potential regression found with apparmor test on Xenial/Zesty

2017-11-23 Thread Michael Vogt
We believe this is a kernel/apparmor issue. The apparmor documentation (http://wiki.apparmor.net/index.php/AppArmor_Core_Policy_Reference#Include_statements) lists "include" as a valid include. We are happy to fix snapd but I'm sure there a many existing profiles (beside snapd from other packages

[Bug 1734038] Re: Potential regression found with apparmor test on Xenial/Zesty

2017-11-23 Thread Po-Hsu Lin
The /etc/apparmor.d/usr.lib.snapd.snap-confine.real file from affected system. ** Attachment added: "usr.lib.snapd.snap-confine.real" https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1734038/+attachment/5013303/+files/usr.lib.snapd.snap-confine.real -- You received this bug notification

[Bug 1734038] Re: Potential regression found with apparmor test on Xenial/Zesty

2017-11-22 Thread Po-Hsu Lin
** Description changed: Issue found with Xenial kernel 4.4.0-102 and Zesty kernel 4.10.0-41, across different architectures Multiple tests from ubuntu_qrt_apparmor test suite failed with the same error message: - ERROR: Syntax Error: Unknown line found in file

[Bug 1734038] Re: Potential regression found with apparmor test on Xenial/Zesty

2017-11-22 Thread Po-Hsu Lin
** Also affects: snapd (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1734038 Title: Potential regression found with apparmor test on