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>
This commit is contained in:
Abdur Rehman 2017-03-28 21:14:54 +05:00 committed by Richard Purdie
parent 7effe18700
commit 07171aba2b
1 changed files with 2 additions and 0 deletions

View File

@ -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