Skip to content

Commit 2991227

Browse files
committed
data/selinux: allow the snap command to probe for /tmp/snap-private-tmp presence
Signed-off-by: Maciej Borzecki <maciej.borzecki@canonical.com>
1 parent 307c929 commit 2991227

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

data/selinux/snappy.te

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,8 @@ snappy_stream_connect(snappy_cli_t)
873873
userdom_search_user_tmp_dirs(snappy_cli_t)
874874
# create /run/user/<uid>/snap.<name> directories
875875
userdom_manage_tmp_dirs(snappy_cli_t)
876+
# the snap command probes for /tmp/snap-private-tmp presence
877+
allow snappy_cli_t snappy_tmp_t:dir getattr;
876878

877879
# allow snappy_cli_t to exec() into the snapd binary which implements
878880
# snap CLI handler and other internal snapd tools

0 commit comments

Comments
 (0)