summaryrefslogtreecommitdiffstats
path: root/scripts/postinst-intercepts
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-29 16:37:27 +0100
commit07171aba2bd73bdb04c31b8a487bd28c58580498 (patch)
tree3904c06678520dcc04fc3a671ef4f1a560405ede /scripts/postinst-intercepts
parent7effe1870010fdb4b530a6a29babfe9b5ecb084f (diff)
downloadpoky-07171aba2bd73bdb04c31b8a487bd28c58580498.tar.gz
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. (From OE-Core rev: 9a23af37ad11a7176248ade88511f34fe6dd97bb) 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/postinst-intercepts')
-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
5PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D${libdir}:$D${base_libdir} \ 5PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D${libdir}:$D${base_libdir} \
6 $D${libexecdir}/${binprefix}gio-querymodules $D${libdir}/gio/modules/ 6 $D${libexecdir}/${binprefix}gio-querymodules $D${libdir}/gio/modules/
7 7
8chown root:root $D${libdir}/gio/modules/giomodule.cache
9