summaryrefslogtreecommitdiffstats
path: root/recipes-security/selinux/policycoreutils
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/selinux/policycoreutils')
-rw-r--r--recipes-security/selinux/policycoreutils/scripts_makefile.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes-security/selinux/policycoreutils/scripts_makefile.patch b/recipes-security/selinux/policycoreutils/scripts_makefile.patch
new file mode 100644
index 0000000..8972474
--- /dev/null
+++ b/recipes-security/selinux/policycoreutils/scripts_makefile.patch
@@ -0,0 +1,26 @@
1policycoreutils: fix genhomedircon generation
2
3The script is put on the target and needs to reference
4the directory in which semodule is installed.
5
6Upstream Status: pending
7
8Signed-off-by: Joe Slater <jslater@windriver.com>
9
10--- a/scripts/Makefile
11+++ b/scripts/Makefile
12@@ -8,11 +8,12 @@ LOCALEDIR ?= $(PREFIX)/share/locale
13
14 all: fixfiles genhomedircon chcat
15
16+# we want the script to use the user sbin directory on the target
17+#
18 genhomedircon:
19 @echo "#!/bin/sh" > genhomedircon
20 @echo >> genhomedircon
21- @if [ ! -e semodule_path ]; then echo -n "$(USRSBINDIR)/" >> genhomedircon; fi
22- @if [ -e semodule_path ]; then echo -n "`cat semodule_path`/" >> genhomedircon; fi
23+ @echo -n "$(sbindir)/" >> genhomedircon
24 @echo "semodule -Bn" >> genhomedircon
25
26 install: all