[apparmor] Syntax Error: Unknown line found in file /etc/apparmor.d/usr.lib.snapd.snap-confine.real.

2017-11-22 Thread daniel curtis
Hello Today, I've noticed a strange issue with apparmor_parser(8) utility. I've created manually a two files; lets say: 'usr.bin.1' and 'usr.lib.2' and paste required AppArmor rules. Next, I wanted to put 'usr.bin.1' profile into a "complain" mode via aa-complain(8) but there is an error related t

[apparmor] Syntax Error: Unknown line found in file /etc/apparmor.d/usr.lib.snapd.snap-confine.real.

2017-11-23 Thread daniel curtis
Hello Seth >> Can you report where it came from? (...) I'm pretty sure, that this profile was available after a fresh, default 16.04 install. I'm not using snap mechanism and I don't have any apps installed that way: [~]$ snap list No snaps are installed yet. Try "snap install hello-world". By

[apparmor] Syntax Error: Unknown line found in file /etc/apparmor.d/usr.lib.snapd.snap-confine.real.

2017-11-29 Thread daniel curtis
Hello Seth, Thanks for an answer. I should first look on the snapd github. My fault. So it seems, that commenting an include "/var/lib/snapd/apparmor/snap-confine.d" line is a fix for this issue. I'll do it in a couple of days. (Maybe an update will be available sooner.) Thank You one more time :

Re: [apparmor] Syntax Error: Unknown line found in file /etc/apparmor.d/usr.lib.snapd.snap-confine.real.

2017-11-22 Thread Seth Arnold
On Wed, Nov 22, 2017 at 07:32:39PM +, daniel curtis wrote: > /usr/lib/snapd/snap-confine (attach_disconnected) { > [...] > include "/var/lib/snapd/apparmor/snap-confine.d" > > # We run privileged, so be fanatical about (...) > /etc/ld.so.cache r, Hello Daniel, I'm having trouble finding this

Re: [apparmor] Syntax Error: Unknown line found in file /etc/apparmor.d/usr.lib.snapd.snap-confine.real.

2017-11-28 Thread Seth Arnold
On Thu, Nov 23, 2017 at 09:33:45AM +, daniel curtis wrote: > ✗ ERROR: Syntax Error: Unknown line found in file > /etc/apparmor.d/usr.lib.snapd.snap-confine.real line 15: > include "/var/lib/snapd/apparmor/snap-confine.d" /etc/ld.so.cache r, > > >> So either you're going to be hand-editing your