From: Abdur Rehman Date: Tue, 28 Mar 2017 16:14:54 +0000 (+0500) Subject: update_gio_module_cache: fix host user contamination X-Git-Tag: yocto-2.3~310 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=9a23af37ad11a7176248ade88511f34fe6dd97bb;p=openembedded-core.git update_gio_module_cache: fix host user contamination update_gio_module_cache intercept creates file: $D${libdir}/gio/modules/giomodule.cache Change ownership of this file to root:root to avoid user contamination by host. Signed-off-by: Abdur Rehman Signed-off-by: Christopher Larson Signed-off-by: Richard Purdie --- diff --git a/scripts/postinst-intercepts/update_gio_module_cache b/scripts/postinst-intercepts/update_gio_module_cache index fe468092cf..92092f2144 100644 --- a/scripts/postinst-intercepts/update_gio_module_cache +++ b/scripts/postinst-intercepts/update_gio_module_cache @@ -5,3 +5,5 @@ set -e PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D${libdir}:$D${base_libdir} \ $D${libexecdir}/${binprefix}gio-querymodules $D${libdir}/gio/modules/ +chown root:root $D${libdir}/gio/modules/giomodule.cache +