diff options
| -rw-r--r-- | recipes-security/selinux/policycoreutils/scripts_makefile.patch | 26 | ||||
| -rw-r--r-- | recipes-security/selinux/policycoreutils_2.1.13.bb | 3 |
2 files changed, 28 insertions, 1 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 @@ | |||
| 1 | policycoreutils: fix genhomedircon generation | ||
| 2 | |||
| 3 | The script is put on the target and needs to reference | ||
| 4 | the directory in which semodule is installed. | ||
| 5 | |||
| 6 | Upstream Status: pending | ||
| 7 | |||
| 8 | Signed-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 | ||
diff --git a/recipes-security/selinux/policycoreutils_2.1.13.bb b/recipes-security/selinux/policycoreutils_2.1.13.bb index 6696357..687347c 100644 --- a/recipes-security/selinux/policycoreutils_2.1.13.bb +++ b/recipes-security/selinux/policycoreutils_2.1.13.bb | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | PR = "r2" | 1 | PR = "r3" |
| 2 | 2 | ||
| 3 | include selinux_20120924.inc | 3 | include selinux_20120924.inc |
| 4 | include ${BPN}.inc | 4 | include ${BPN}.inc |
| @@ -11,4 +11,5 @@ SRC_URI[sha256sum] = "34040f06f3111d9ee957576e4095841d35b9ca9141ee8d80aab036cbef | |||
| 11 | SRC_URI += "\ | 11 | SRC_URI += "\ |
| 12 | file://policycoreutils-revert-restorecon-update-type.patch \ | 12 | file://policycoreutils-revert-restorecon-update-type.patch \ |
| 13 | file://policycoreutils-revert-run_init-open_init_pty.patch \ | 13 | file://policycoreutils-revert-run_init-open_init_pty.patch \ |
| 14 | file://scripts_makefile.patch \ | ||
| 14 | " | 15 | " |
