Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Update apparmor profile for snap-confine #73
Merged
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c266baa
Update apparmor profile for snap-confine
zyga 06d5261
Add spread test for LP: 1599891
zyga c63512a
Simplify apparmor rules for mount profiles
zyga 24bbd43
Constrain allowed locatios for mount profiles
zyga 94579ec
Deny mounts to /snap/bin/
zyga 9b09f3a
Ensure that /snap/bin cannot be used for bind mounts
zyga a9b53f1
Add more spread tests for /snap/bin
zyga 1296104
Update spread tests for bind mounts
zyga 7375159
Fix copy-paste issue
zyga 9243efb
Update comment about mount profiles
zyga
Jump to file or symbol
Failed to load files and symbols.
Viewing a subset of changes. View all
Constrain allowed locatios for mount profiles
Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
- Loading branch information...
commit 24bbd4338d24e97330ccd20e3cb01cb714b5f08c
zyga
committed
Jul 7, 2016
| @@ -116,13 +116,9 @@ | ||
| mount options=(rw bind) /snap/ubuntu-core/*/usr/ -> /usr/, | ||
| mount options=(rw bind) /snap/ubuntu-core/*/etc/alternatives/ -> /etc/alternatives/, | ||
| - # This is a somewhat of a blank check for mount profiles. Mount profiles | ||
| - # are written by the trusted snapd to a root-writable location and | ||
| - # processed by snap-confine. Regardless of configuration options and | ||
| - # runtime factors they are processed after pivot_root (on classic systems) | ||
| - # so snap.rootfs is not a factor. | ||
| - mount options=(rw bind), | ||
| - mount options=(ro bind), | ||
| + # Allow snaps to share content amongst themselves. | ||
|
|
||
| + mount options=(rw bind) /snap/*/** -> /snap/*/**, | ||
| + mount options=(ro bind) /snap/*/** -> /snap/*/**, | ||
jdstrand
Contributor
|
||
| # nvidia handling, glob needs /usr/** and the launcher must be | ||
| # able to bind mount the nvidia dir | ||
Please change this to:
Support mount profiles via the content interface