[yocto] [meta-selinux][PATCH] busybox: explicitly set temporary shell scripts to be executable

Alejandro del Castillo alejandro.delcastillo at ni.com
Fri Feb 19 14:45:36 PST 2016


During an on target upgrade, the postinst script is creating scripts
that call buysbox, to avoid missing commands errors. However, the
scripts permissions are not set explicitly, relying on the mask.

Signed-off-by: Alejandro del Castillo <alejandro.delcastillo at ni.com>
---
 recipes-core/busybox/busybox_%.bbappend | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-core/busybox/busybox_%.bbappend b/recipes-core/busybox/busybox_%.bbappend
index b4935b2..2e806af 100644
--- a/recipes-core/busybox/busybox_%.bbappend
+++ b/recipes-core/busybox/busybox_%.bbappend
@@ -78,6 +78,7 @@ pkg_postinst_${PN} () {
 						# we can use busybox here because even if we are using splitted busybox
 						# we've made a symlink from /bin/busybox to /bin/busybox.nosuid.
 						busybox echo "#!/bin/busybox$suffix" > $link
+                                                /bin/busybox.nosuid chmod 755 $link
 					fi
 				done < /etc/busybox.links$suffix
 			fi
-- 
1.9.1




More information about the yocto mailing list