Skip to content

Commit

Permalink
Merge pull request #4182 from ikeydoherty/os-release-denid
Browse files Browse the repository at this point in the history
cmd/snap-confine: Ensure snap-confine is allowed to access os-release
  • Loading branch information
mvo5 authored Nov 9, 2017
2 parents 10fcc00 + d9444a2 commit 941b6af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/snap-confine/snap-confine.apparmor.in
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@
umount /var/lib/snapd/hostfs/proc/,
mount options=(rw rslave) -> /var/lib/snapd/hostfs/,

# Allow reading the os-release file (possibly a symlink to /usr/lib).
/{etc/,usr/lib/}os-release r,

# set up snap-specific private /tmp dir
capability chown,
/tmp/ w,
Expand Down

0 comments on commit 941b6af

Please sign in to comment.