summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAbdur Rehman <abdur_rehman@mentor.com>2017-03-28 21:14:54 +0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-28 17:21:02 +0100
commit9a23af37ad11a7176248ade88511f34fe6dd97bb (patch)
treec09410e4f4a58248ae37291145557a7b39cbc601 /scripts
parent39103285029a0bb7b64dc5a305c484988b4c651a (diff)
downloadopenembedded-core-9a23af37ad11a7176248ade88511f34fe6dd97bb.tar.gz
openembedded-core-9a23af37ad11a7176248ade88511f34fe6dd97bb.tar.bz2
openembedded-core-9a23af37ad11a7176248ade88511f34fe6dd97bb.zip
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 <abdur_rehman@mentor.com> Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/postinst-intercepts/update_gio_module_cache2
1 files changed, 2 insertions, 0 deletions
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
+