diff options
author | Abdur Rehman <abdur_rehman@mentor.com> | 2017-03-28 21:14:54 +0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-29 16:37:27 +0100 |
commit | 07171aba2bd73bdb04c31b8a487bd28c58580498 (patch) | |
tree | 3904c06678520dcc04fc3a671ef4f1a560405ede /scripts | |
parent | 7effe1870010fdb4b530a6a29babfe9b5ecb084f (diff) | |
download | poky-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')
-rw-r--r-- | scripts/postinst-intercepts/update_gio_module_cache | 2 |
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 | |||
5 | PSEUDO_UNLOAD=1 qemuwrapper -L $D -E LD_LIBRARY_PATH=$D${libdir}:$D${base_libdir} \ | 5 | PSEUDO_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 | ||
8 | chown root:root $D${libdir}/gio/modules/giomodule.cache | ||
9 | |||