[oe-commits] [openembedded-core] 02/04: update_gio_module_cache: fix host user contamination

git at git.openembedded.org git at git.openembedded.org
Tue Mar 28 16:21:33 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 9a23af37ad11a7176248ade88511f34fe6dd97bb
Author: Abdur Rehman <abdur_rehman at mentor.com>
AuthorDate: Tue Mar 28 21:14:54 2017 +0500

    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 at mentor.com>
    Signed-off-by: Christopher Larson <chris_larson at mentor.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/postinst-intercepts/update_gio_module_cache | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/postinst-intercepts/update_gio_module_cache b/scripts/postinst-intercepts/update_gio_module_cache
index fe46809..92092f2 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
+

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list