Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
interfaces/greengrass-support: adjust accesses now that have working snap #3591
Conversation
| @@ -128,11 +128,12 @@ mount options=(rw, bind) /dev/null -> /proc/sched_debug, | ||
| mount options=(rw, bind) /dev/null -> /proc/timer_stats, | ||
| # perform the pivot_root into the overlay | ||
| -pivot_root oldroot=/var/snap/greengrass/x1/rootfs/.pivot_root*/ /var/snap/greengrass/*/rootfs/, | ||
| +pivot_root oldroot=/var/snap/greengrass/@{SNAP_REVISION}/rootfs/.pivot_root*/ /var/snap/greengrass/*/rootfs/, |
zyga
Jul 14, 2017
Contributor
Are you aware of the consequences of using pivot_root and how it makes most of our apparmor rules ineffective?
(Sorry for pulling this out now, I didn't notice this before)
jdstrand
Jul 14, 2017
Contributor
greengrass is proprietary software and fails without this access. It relies upon various features to setup its own sandbox.
However, I'm aware of mediation issues regarding overlayfs and pivot root (in particular https://bugs.launchpad.net/apparmor/+bug/1703692), which is just one of many reasons why this interface is a 'super-privileged' interface, like docker-support and lxd-support (ie, you need a snap declaration to even install a snap that plugs this).
jdstrand
and others
added some commits
Jul 18, 2017
codecov-io
commented
Jul 19, 2017
Codecov Report
@@ Coverage Diff @@
## master #3591 +/- ##
=========================================
- Coverage 74.9% 74.9% -0.01%
=========================================
Files 380 380
Lines 32952 32952
=========================================
- Hits 24684 24683 -1
- Misses 6475 6476 +1
Partials 1793 1793
Continue to review full report at Codecov.
|
zyga
merged commit c81d104
into
snapcore:master
Jul 27, 2017
7 checks passed
|
Thanks! |
jdstrand commentedJul 14, 2017