Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
cmd/snap-confine: use SNAP_MOUNT_DIR to setup /snap inside the confinement env #3344
+5
−3
Conversation
| - && !is_mounted_with_shared_option("/snap")) { | ||
| - sc_do_mount("/snap", "/snap", "none", MS_BIND | MS_REC, 0); | ||
| + && !is_mounted_with_shared_option(SNAP_MOUNT_DIR)) { | ||
| + sc_do_mount(SNAP_MOUNT_DIR, "/snap", "none", MS_BIND | MS_REC, |
zyga
May 17, 2017
Contributor
As discussed on IRC this needs to say SNAP_MOUNT_DIR instead of "/snap" in the second argument. If you can please push this with a more comprehensive commit message as well.
| - sc_do_mount("/snap", "/snap", "none", MS_BIND | MS_REC, 0); | ||
| + && !is_mounted_with_shared_option(SNAP_MOUNT_DIR)) { | ||
| + sc_do_mount(SNAP_MOUNT_DIR, SNAP_MOUNT_DIR, "none", | ||
| + MS_BIND | MS_REC, 0); | ||
| sc_do_mount("none", "/snap", NULL, MS_SHARED | MS_REC, NULL); |
codecov-io
commented
May 18, 2017
Codecov Report
@@ Coverage Diff @@
## master #3344 +/- ##
=========================================
+ Coverage 77.59% 77.6% +0.01%
=========================================
Files 364 364
Lines 24956 24956
=========================================
+ Hits 19364 19368 +4
+ Misses 3868 3865 -3
+ Partials 1724 1723 -1
Continue to review full report at Codecov.
|
mvo5
merged commit 4ffd8ab
into
snapcore:master
May 18, 2017
6 of 7 checks passed
xenial-i386
autopkgtest finished (failure)
Details
artful-amd64
autopkgtest finished (success)
Details
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
xenial-amd64
autopkgtest finished (success)
Details
xenial-ppc64el
autopkgtest finished (success)
Details
yakkety-amd64
autopkgtest finished (success)
Details
zesty-amd64
autopkgtest finished (success)
Details
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
morphis commentedMay 17, 2017
•
Edited 1 time
-
morphis
May 17, 2017
No description provided.