Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834056 - app-containers/snapd: /usr/lib/snapd/snap-confine: error while loading shared libraries: libgcc_s.so.1: failed to map segment from shared object
Summary: app-containers/snapd: /usr/lib/snapd/snap-confine: error while loading shared...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Zac Medico
URL: https://dpaste.com/G4VQJEVK6
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-25 23:00 UTC by Randall
Modified: 2022-02-26 18:28 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info snapd (emerge --info snapd.txt,25.68 KB, text/plain)
2022-02-26 00:00 UTC, Randall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Randall 2022-02-25 23:00:11 UTC
When was able to install `snapd` fine and I installed an app, `hey-mail`, just fine; but when I try to launch it, it says `/usr/lib/snapd/snap-confine: error while loading shared libraries: libgcc_s.so.1: failed to map segment from shared object`.

From what I was able to gather, it seems like a permissions issue of some sort.

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-25 23:04:58 UTC
Please attach the logs rather than using pastebins.
Comment 2 Randall 2022-02-26 00:00:33 UTC
Created attachment 765835 [details]
emerge --info snapd
Comment 3 Randall 2022-02-26 01:53:11 UTC
So it turns out that the AppArmor profile for `snap-confine` needs to be updated in order for it to `snapd` to work without a problem.

I don't know if by default though it should be like this, either way, it makes sense that it be up to the user to grant the type of access it's asking for.

Therefore, you can close this if you'd like.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-26 18:20:13 UTC
(In reply to Randall from comment #3)
> So it turns out that the AppArmor profile for `snap-confine` needs to be
> updated in order for it to `snapd` to work without a problem.
> 
> I don't know if by default though it should be like this, either way, it
> makes sense that it be up to the user to grant the type of access it's
> asking for.
> 
> Therefore, you can close this if you'd like.

I think it's a valid bug if the apparmor profiles need fixing?
Comment 5 Randall 2022-02-26 18:26:59 UTC
It could be, in the sense that it deviates from what happens on other distros. (Although, I have limited evidence to support this, but jugding from what the vendor and other users seem to state, I make this assumption)

That said, considering that `snapd` seems to have on-going security issues (ref: https://www.zdnet.com/article/multiple-vulnerabilities-found-in-snap-confine-function-on-linux-systems/), it's not a terrible idea to leave the security profiles the way they are and let the user decide if they really want to give access to `snap-confine` via `AppArmor`. At the very least, it makes users aware, NTM it somewhat provides a barrier for folks that don't know what they're doing with snapd and AppArmor.