-
Notifications
You must be signed in to change notification settings - Fork 582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
c/libsnap-confine-private, interfaces: account for reexec on arch #14682
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took a while to look at the various elements and consequences and this is good and fixes an actual issue on Fedora/Arch like distributions.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -274,7 +274,7 @@ func SystemKeyMismatch(extraData SystemKeyExtraData) (bool, error) { | |||
if mockedSystemKey == nil { | |||
if exe, err := os.Readlink("/proc/self/exe"); err == nil { | |||
// detect running local local builds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// detect running local local builds | |
// detect running local builds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #14682 +/- ##
==========================================
+ Coverage 78.95% 78.97% +0.02%
==========================================
Files 1084 1085 +1
Lines 146638 147148 +510
==========================================
+ Hits 115773 116207 +434
- Misses 23667 23717 +50
- Partials 7198 7224 +26
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…be prefixed with /var/lib/snapd This change accounts for that, allowing us to use SNAP_REEXEC on arch systems.
… system specific dirs.SnapMountDir This check was always failing on arch, since snaps are mounted under a different location.
Signed-off-by: Maciej Borzecki <[email protected]>
3ac0f5d
to
ba2dd67
Compare
On arch, snap-confine's security tag will be prefixed with /var/lib/snapd. This change accounts for that, allowing us to use SNAP_REEXEC on arch systems.
Additionally, the fix in interfaces allows us to account for where snaps are installed on non-ubuntu systems.