Snap and selinux

Fedora 43 (can’t put it as a tag, as the tag doesn’t seem to exist yet) snap and selinux: I notice that on boot and dnf update (not sure which, I normally reboot and run dnf update daily), I get a heap of selinux errors of the form

The source process: snap-update-ns

Attempted this access: getattr

On this directory: /tmp/snap/etc/….

The message is probably unsurprising, as at boot time /tmp/snap doesn’t exist. I’m unsure whether it’s supposed to exist (I do have some snaps installed). Is this a bug that I should report somewhere (snap? selinux? dnf?) or something I should just ignore? It’s probably been there since I installed snap a few years ago, and doesn’t seem to have caused subsequent problems, I just noticed it because I was trying to track down why a web page couldn’t open a popup and selinux suddenly occurred to me as a possible cause, so I opened the sealert browser shortly after booting and running dnf (spoiler: selinux doesn’t seem to be the cause of the popup problem).

Thanks for any helpful advice on whether I should report this (don’t worry about the popup, I still have a few possibilities to follow up there).

Unless you have a good reason to use snaps you should be better off using flatpak or RPMs for your apps. Snap is really a ubuntu thing, and expects packages that are not installed on a Fedora system.

2 Likes