From 776da889b550ac9e5be414a8cc10fd86b1923264 Mon Sep 17 00:00:00 2001 From: Joe MacDonald Date: Mon, 8 Apr 2019 13:50:40 -0400 Subject: refpolicy: update to 2.20190201 and git HEAD policies Additionally, the README has fallen out of date, update it to reflect the current reality of layer dependencies. Signed-off-by: Joe MacDonald --- ...-apply-policy-to-common-yocto-hostname-al.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 recipes-security/refpolicy/refpolicy-git/0004-fc-hostname-apply-policy-to-common-yocto-hostname-al.patch (limited to 'recipes-security/refpolicy/refpolicy-git/0004-fc-hostname-apply-policy-to-common-yocto-hostname-al.patch') diff --git a/recipes-security/refpolicy/refpolicy-git/0004-fc-hostname-apply-policy-to-common-yocto-hostname-al.patch b/recipes-security/refpolicy/refpolicy-git/0004-fc-hostname-apply-policy-to-common-yocto-hostname-al.patch new file mode 100644 index 0000000..36bfdcf --- /dev/null +++ b/recipes-security/refpolicy/refpolicy-git/0004-fc-hostname-apply-policy-to-common-yocto-hostname-al.patch @@ -0,0 +1,27 @@ +From abd7d9fa3398be45e733930ebaec9e05b1aba252 Mon Sep 17 00:00:00 2001 +From: Xin Ouyang +Date: Thu, 22 Aug 2013 13:37:23 +0800 +Subject: [PATCH 04/34] fc/hostname: apply policy to common yocto hostname + alternatives + +Upstream-Status: Inappropriate [only for Yocto] + +Signed-off-by: Xin Ouyang +Signed-off-by: Joe MacDonald +--- + policy/modules/system/hostname.fc | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/policy/modules/system/hostname.fc b/policy/modules/system/hostname.fc +index 83ddeb57..653e038d 100644 +--- a/policy/modules/system/hostname.fc ++++ b/policy/modules/system/hostname.fc +@@ -1 +1,5 @@ ++/usr/bin/hostname\.net-tools -- gen_context(system_u:object_r:hostname_exec_t,s0) ++/usr/bin/hostname\.coreutils -- gen_context(system_u:object_r:hostname_exec_t,s0) ++/usr/lib/busybox/bin/hostname -- gen_context(system_u:object_r:hostname_exec_t,s0) ++ + /usr/bin/hostname -- gen_context(system_u:object_r:hostname_exec_t,s0) +-- +2.19.1 + -- cgit v1.2.3-54-g00ecf