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: lucaceresoli/bug-15201-perf-libtraceevent-missing~21849 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a23af37ad11a7176248ade88511f34fe6dd97bb;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.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 fe468092cf6..92092f21445 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 +