[pkg-apparmor] Apparmor + Snap

intrigeri intrigeri at debian.org
Sat Dec 10 16:41:56 GMT 2022


Hi,

Alexandros Vangelatos (2022-09-22):
> I had another bug with apparmor, trying to install a snap package.

Sorry for the delay!

> snap downloads the package, but when it tries to install it fails on
> apparmor_parser.
>
> This is the error message is below.
> (9) security profiles (cannot setup profiles for snap "electronplayer":
> cannot load apparmor profiles: exec: "apparmor_parser": executable file not
> found in $PATH
> apparmor_parser output:
>
> I did set my path to include /usr/sbin, that didn't work.
>
> What worked was i created a sym link
> /usr/*sbin*/apparmor_parser to /usr/*bin*/apparmor_parser.
>
> That resolved it for me. For some reason it's looking for apparmor_parser
> in the wrong directory.

It seems to me this should be resolved on the snapd side.
If there's anything you are expecting on the AppArmor side,
please clarify :)

This being said, I'm wondering where your /usr/bin/apparmor_parser
(that you're symlinking to) comes from: the Debian package installs it
in /usr/sbin/.

Cheers,
-- 
intrigeri



More information about the pkg-apparmor-team mailing list