Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
many: fix handling of jail mode in security setup #2310
Conversation
zyga
added some commits
Nov 21, 2016
zyga
changed the title from
Lp jailmode 1641885
to
many: fix handling of jail mode in security setup
Nov 21, 2016
| + if f.JailMode { | ||
| + // jailmode flag overrides devmode flag | ||
| + return snap.StrictConfinement | ||
| + } |
jdstrand
Nov 21, 2016
Contributor
At a minimum, the comment here is not right and is confusing, but does this f.JailMode check make sense within the context of snap.StrictConfinement or can it just be removed?
zyga
Nov 21, 2016
Contributor
I think that having both flags (jail and dev mode) set is an edge case but I think that we should respect the jail mode flag just to err on the strict side. I don't think the code actually allows such a combination.
FYI: please let's continue to review this function in #2312 where it is coming from.
|
I'll close this pull request and open a new one with different fix based on |
zyga
closed this
Nov 23, 2016
zyga
referenced this pull request
Nov 23, 2016
Merged
overlord/ifacestate: don't setup jailmode snaps with devmode confinement #2344
zyga
deleted the
zyga:lp-jailmode-1641885
branch
Aug 22, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zyga commentedNov 21, 2016
•
Edited 1 time
-
zyga
Nov 21, 2016
This branch is based on #2312 and #2315 and fixes jail mode flag handling when setting up security.
Fixes: https://bugs.launchpad.net/snappy/+bug/1641885