Comment 2 for bug 1876804

Revision history for this message
Ian Johnson (anonymouse67) wrote : Re: [Bug 1876804] Re: apparmor logs filled when ubuntu store launches

Hi, we use GitHub for snapd source control, could you submit your patch to
github.com/snapcore/snapd instead?

Thanks,
Ian

On Mon, May 4, 2020, 16:15 Launchpad Bug Tracker <email address hidden>
wrote:

> ** Branch linked: lp:~sklein/snapd/snapd
>
> --
> You received this bug notification because you are subscribed to snapd.
> Matching subscriptions: snapd-all-bugs
> https://bugs.launchpad.net/bugs/1876804
>
> Title:
> apparmor logs filled when ubuntu store launches
>
> Status in snapd:
> New
>
> Bug description:
> When I launch the Ubuntu snap store from my favorites, the following
> lines appear in dmesg.
>
> [38514.879381] audit: type=1400 audit(1588562964.269:5985):
> apparmor="DENIED" operation="open"
> profile="snap.snap-store.ubuntu-software"
> name="/var/lib/snapd/hostfs/usr/share/mime/mime.cache" pid=17441
> comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
> [38514.879402] audit: type=1400 audit(1588562964.269:5986):
> apparmor="DENIED" operation="open"
> profile="snap.snap-store.ubuntu-software"
> name="/var/lib/snapd/hostfs/usr/share/mime/globs2" pid=17441
> comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
> [38514.879426] audit: type=1400 audit(1588562964.269:5987):
> apparmor="DENIED" operation="open"
> profile="snap.snap-store.ubuntu-software"
> name="/var/lib/snapd/hostfs/usr/share/mime/magic" pid=17441
> comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
> [38514.879443] audit: type=1400 audit(1588562964.269:5988):
> apparmor="DENIED" operation="open"
> profile="snap.snap-store.ubuntu-software"
> name="/var/lib/snapd/hostfs/usr/share/mime/aliases" pid=17441
> comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
> [38514.879459] audit: type=1400 audit(1588562964.269:5989):
> apparmor="DENIED" operation="open"
> profile="snap.snap-store.ubuntu-software"
> name="/var/lib/snapd/hostfs/usr/share/mime/subclasses" pid=17441
> comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
> [38514.879474] audit: type=1400 audit(1588562964.269:5990):
> apparmor="DENIED" operation="open"
> profile="snap.snap-store.ubuntu-software"
> name="/var/lib/snapd/hostfs/usr/share/mime/icons" pid=17441
> comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
> [38514.879488] audit: type=1400 audit(1588562964.269:5991):
> apparmor="DENIED" operation="open"
> profile="snap.snap-store.ubuntu-software"
> name="/var/lib/snapd/hostfs/usr/share/mime/generic-icons" pid=17441
> comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
> [38514.880255] audit: type=1400 audit(1588562964.269:5992):
> apparmor="DENIED" operation="open"
> profile="snap.snap-store.ubuntu-software" name="/etc/gnome/defaults.list"
> pid=17441 comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000
> ouid=0
> [38514.961031] audit: type=1400 audit(1588562964.349:5993):
> apparmor="DENIED" operation="open"
> profile="snap.snap-store.ubuntu-software"
> name="/var/lib/snapd/hostfs/usr/share/mime/mime.cache" pid=2467
> comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
> [38514.961038] audit: type=1400 audit(1588562964.349:5994):
> apparmor="DENIED" operation="open"
> profile="snap.snap-store.ubuntu-software"
> name="/var/lib/snapd/hostfs/usr/share/mime/globs2" pid=2467
> comm="snap-store" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
>
> Adding these lines:
>
> /var/lib/snapd/hostfs/usr/share/mime/* r,
> /etc/gnome/defaults.list r,
>
> to /var/lib/snapd/apparmor/profiles/snap.snap-store.ubuntu-software
>
> made the messages go away.
>
> Further notes. https://ubuntuforums.org/showthread.php?t=2442426
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/snapd/+bug/1876804/+subscriptions
>