policycoreutils: address QA issues
PATCH 1/1 policycoreutils: address QA issues
Both the fixfiles and sandbox utilities had dependencies on bash when they didn't really need to. Update sandbox and patch fixfiles. ifgen is python script, so ensure that python is listed as a runtime dependency.
Signed-off-by Joe MacDonald <[email protected]>
--- recipes-security/selinux/policycoreutils.inc | 7 +- .../policycoreutils-fixfiles-de-bashify.patch | 92 ++++++++++++++++++++++ .../policycoreutils-sandbox-de-bashify.patch | 39 +++++++++ 3 files changed, 136 insertions(+), 2 deletions(-) create mode 100644 recipes-security/selinux/policycoreutils/policycoreutils-fixfiles-de-bashify.patch create mode 100644 recipes-security/selinux/policycoreutils/policycoreutils-sandbox-de-bashify.patch
recipes-security/selinux/policycoreutils.inc +5 -2
@@ -7,7 +7,10 @@ context." SECTION = "base" LICENSE = "GPLv2+" -SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" +SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \ + file://policycoreutils-fixfiles-de-bashify.patch \ + file://policycoreutils-sandbox-de-bashify.patch \ + " PAM_SRC_URI = "file://pam.d/newrole \ file://pam.d/run_init \
@@ -97,7 +100,7 @@ RDEPENDS_${BPN}-sepolicy += "\ " # static link to libsepol DEPENDS_${BPN}-sepolgen-ifgen += "libsepol" -RDEPENDS_${BPN}-sepolgen-ifgen += "libselinux-python" +RDEPENDS_${BPN}-sepolgen-ifgen += "python libselinux-python" RDEPENDS_${BPN}-sestatus += "libselinux" RDEPENDS_${BPN}-setfiles += "\ libselinux \
recipes-security/selinux/policycoreutils/policycoreutils-fixfiles-de-bashify.patch new file +92 -0
92 lines not on this page · raw message
recipes-security/selinux/policycoreutils/policycoreutils-sandbox-de-bashify.patch new file +39 -0
@@ -0,0 +1,39 @@ +From d3e778e0062ca441c80e2a3ef2b508f5566e1f70 Mon Sep 17 00:00:00 2001 +From: Joe MacDonald <[email protected]> +Date: Fri, 20 Feb 2015 21:07:47 -0500 +Subject: [PATCH] sandbox: de-bashify + +There's no bashisms apparent in either the sandbox initscript nor the +sandboxX script, so point them at /bin/sh instead. + +Upstream-Status: Pending + +Signed-off-by: Joe MacDonald <[email protected]> +--- + sandbox/sandbox.init | 2 +- + sandbox/sandboxX.sh | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/sandbox/sandbox.init b/sandbox/sandbox.init +index b3979bf..1893dc8 100644 +--- a/sandbox/sandbox.init ++++ b/sandbox/sandbox.init +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + ## BEGIN INIT INFO + # Provides: sandbox + # Default-Start: 3 4 5 +diff --git a/sandbox/sandboxX.sh b/sandbox/sandboxX.sh +index eaa500d..8755d75 100644 +--- a/sandbox/sandboxX.sh ++++ b/sandbox/sandboxX.sh +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/bin/sh + trap "" TERM + context=`id -Z | secon -t -l -P` + export TITLE="Sandbox $context -- `grep ^#TITLE: ~/.sandboxrc | /usr/bin/cut -b8-80`" +-- +1.9.1 +
Signature · 1 line
1.9.1