diff --git a/0001-data-selinux-Add-context-definition-for-snapctl.patch b/0001-data-selinux-Add-context-definition-for-snapctl.patch new file mode 100644 index 0000000..6de563f --- /dev/null +++ b/0001-data-selinux-Add-context-definition-for-snapctl.patch @@ -0,0 +1,22 @@ +From bc10b2df54e44a955ef338f7d1cd3dcd82db9271 Mon Sep 17 00:00:00 2001 +From: Neal Gompa +Date: Fri, 24 Mar 2017 09:52:39 -0400 +Subject: [PATCH] data/selinux: Add context definition for snapctl + +Signed-off-by: Neal Gompa +--- + data/selinux/snappy.fc | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/data/selinux/snappy.fc b/data/selinux/snappy.fc +index a807f84..b928aed 100644 +--- a/data/selinux/snappy.fc ++++ b/data/selinux/snappy.fc +@@ -21,6 +21,7 @@ HOME_DIR/snap(/.*)? gen_context(system_u:object_r:snappy_home_t,s0) + + + /usr/bin/snap -- gen_context(system_u:object_r:snappy_exec_t,s0) ++/usr/bin/snapctl -- gen_context(system_u:object_r:snappy_exec_t,s0) + + ifdef(`distro_redhat',` + /usr/libexec/snapd/.* -- gen_context(system_u:object_r:snappy_exec_t,s0) diff --git a/snapd.spec b/snapd.spec index 2afcb36..96ea50c 100644 --- a/snapd.spec +++ b/snapd.spec @@ -60,6 +60,8 @@ Patch0006: 0006-errtracker-fix-testing-outside-of-ubuntu.patch Patch0007: 0007-osutil-HACK-use-usr-bin-true-false.patch # Upstream merged: https://github.com/snapcore/snapd/pull/3001 Patch0008: 0008-partition-skip-some-tests-if-grub-editenv-is-not-ava.patch +# Upstream merged: https://github.com/snapcore/snapd/pull/3081 +Patch0009: 0001-data-selinux-Add-context-definition-for-snapctl.patch # Upstream proposed PR: https://github.com/snapcore/snapd/pull/3084 Patch1001: PR3084-packaging-use-templates-for-systemd-units.patch