]> code.ossystems Code Review - openembedded-core.git/commitdiff
update_gio_module_cache: fix host user contamination
authorAbdur Rehman <abdur_rehman@mentor.com>
Tue, 28 Mar 2017 16:14:54 +0000 (21:14 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 Mar 2017 16:21:02 +0000 (17:21 +0100)
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>
scripts/postinst-intercepts/update_gio_module_cache

index fe468092cf61dc11a68e40a8ea13110a39afa425..92092f2144515504cc11227e0441a387c294bfde 100644 (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
+