Re: Apparmor error when using classic mode
Hey This bug is fixed in the recently released snapd 2.21. Mark's suggestion is correct. You should not (until 2.21) combine interfaces and classic confinement. Since you may be interested what happens when you do. In 2.21 you can install a snap that is using classic confinement with --jailmode which will enable all those plugs/slots and treat it as any other snap. I hope this helps you out Best regards ZK On Mon, Jan 16, 2017 at 10:02 AM, Mark Shuttleworthwrote: > On 15/01/17 08:58, Luke Williams wrote: > > Hello, > > I have the following error when I try to install my snap in classic mode: > > root@ubuntu:~# snap install flexswitch_1.0.0.178.0_amd64.snap --classic > --force-dangerous > error: cannot perform the following tasks: > > - Setup snap "flexswitch" (unset) security profiles (cannot setup apparmor > for snap "flexswitch": cannot load apparmor profile "snap.flex > switch.flexswitch": cannot load apparmor profile: exit status 1 > > apparmor_parser output: > > profile has merged rule with conflicting x modifiers > > ERROR processing regexs for profile snap.flexswitch.flexswitch, failed to > load > ) > > - Setup snap "flexswitch" (unset) security profiles (cannot load apparmor > profile "snap.flexswitch.flexswitch": cannot load apparmor prof > ile: exit status 1 > > apparmor_parser output: > > profile has merged rule with conflicting x modifiers > > ERROR processing regexs for profile snap.flexswitch.flexswitch, failed to > load > ) > > > I cannot find any information on why it is failing to install. Any thing I > should look at to see what is keeping this from working or any more > information you need to assist in troubleshooting? > > I am trying to install this snap on 16.04 Server. > > > I have a feeling this is when one tries to combine "confinement: classic" > with plugs on commands. > > Mark > > -- > Snapcraft mailing list > Snapcraft@lists.snapcraft.io > Modify settings or unsubscribe at: https://lists.ubuntu.com/ > mailman/listinfo/snapcraft > > -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Re: Apparmor error when using classic mode
On 15/01/17 08:58, Luke Williams wrote: > Hello, > > I have the following error when I try to install my snap in classic mode: > > root@ubuntu:~# snap install flexswitch_1.0.0.178.0_amd64.snap > --classic --force-dangerous > > error: cannot perform the following tasks: > > - Setup snap "flexswitch" (unset) security profiles (cannot setup > apparmor for snap "flexswitch": cannot load apparmor profile "snap.flex > switch.flexswitch": cannot load apparmor profile: exit status 1 > > apparmor_parser output: > > profile has merged rule with conflicting x modifiers > > ERROR processing regexs for profile snap.flexswitch.flexswitch, failed > to load > ) > > - Setup snap "flexswitch" (unset) security profiles (cannot load > apparmor profile "snap.flexswitch.flexswitch": cannot load apparmor prof > ile: exit status 1 > > apparmor_parser output: > > profile has merged rule with conflicting x modifiers > > ERROR processing regexs for profile snap.flexswitch.flexswitch, failed > to load > ) > > > I cannot find any information on why it is failing to install. Any > thing I should look at to see what is keeping this from working or any > more information you need to assist in troubleshooting? > > I am trying to install this snap on 16.04 Server. I have a feeling this is when one tries to combine "confinement: classic" with plugs on commands. Mark -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
Apparmor error when using classic mode
Hello, I have the following error when I try to install my snap in classic mode: root@ubuntu:~# snap install flexswitch_1.0.0.178.0_amd64.snap --classic --force-dangerous error: cannot perform the following tasks: - Setup snap "flexswitch" (unset) security profiles (cannot setup apparmor for snap "flexswitch": cannot load apparmor profile "snap.flex switch.flexswitch": cannot load apparmor profile: exit status 1 apparmor_parser output: profile has merged rule with conflicting x modifiers ERROR processing regexs for profile snap.flexswitch.flexswitch, failed to load ) - Setup snap "flexswitch" (unset) security profiles (cannot load apparmor profile "snap.flexswitch.flexswitch": cannot load apparmor prof ile: exit status 1 apparmor_parser output: profile has merged rule with conflicting x modifiers ERROR processing regexs for profile snap.flexswitch.flexswitch, failed to load ) I cannot find any information on why it is failing to install. Any thing I should look at to see what is keeping this from working or any more information you need to assist in troubleshooting? I am trying to install this snap on 16.04 Server. -- Thanks, Luke Williams - Technical Partner Manager, Network Switches and Ubuntu-Core luke.willi...@canonical.com www.canonical.com || www.ubuntu.com -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft