qtbase: fix QA warning of host uid leakage
PATCH 1/1 qtbase: fix QA warning of host uid leakage
Two files in /usr/lib, were own by the uid of the build process.
--- recipes-qt/qt5/qtbase_git.bb | 2 ++ 1 file changed, 2 insertions(+)
recipes-qt/qt5/qtbase_git.bb +2 -0
@@ -232,6 +232,8 @@ do_install_append() { chown -R root:root ${D}/${OE_QMAKE_PATH_QT_FONTS} fi cp -a ${B}/lib/libqt* ${D}${libdir} + chown root:root ${D}${libdir}/libqtpcre.prl + chown root:root ${D}${libdir}/libqtpcre.a # Remove example.pro file as it is useless rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro
Signature · 1 line
2.6.1
Quoted 12 lines · Anders Darander
Two files in
/usr/lib, were own by the uid of the build process.Signed-off-by Anders Darander <[email protected]>--- recipes-qt/qt5/qtbase_git.bb | 2 ++ 1 file changed, 2 insertions(+)recipes-qt/qt5/qtbase_git.bb +0
-0
recipes-qt/qt5/qtbase_git.bb do_install_append() { · line 234
Quoted 3 lines
recipes-qt/qt5/qtbase_git.bb +0
-0@@ -232,6 +232,8 @@ do_install_append() { chown -R root:root ${D}/${OE_QMAKE_PATH_QT_FONTS} fi cp -a ${B}/lib/libqt* ${D}${libdir}
Can we use install instead of cp to resolve this issue instead of chmod?
Quoted 13 lines
recipes-qt/qt5/qtbase_git.bb +2
-0+ chown root:root ${D}${libdir}/libqtpcre.prl + chown root:root ${D}${libdir}/libqtpcre.a # Remove example.pro file as it is useless rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.proSignature · 7 lines
2.6.1 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 8 lines · Martin Jansa
Quoted 6 lines · Anders Darander
Two files in
/usr/lib, were own by the uid of the build process.Signed-off-by Anders Darander <[email protected]>--- recipes-qt/qt5/qtbase_git.bb | 2 ++ 1 file changed, 2 insertions(+)
Quoted 10 lines
recipes-qt/qt5/qtbase_git.bb do_install_append() { · line 234
Quoted 8 lines
recipes-qt/qt5/qtbase_git.bb +0
-0@@ -232,6 +232,8 @@ do_install_append() { chown -R root:root ${D}/${OE_QMAKE_PATH_QT_FONTS} fi cp -a ${B}/lib/libqt* ${D}${libdir}Can we use install instead of cp to resolve this issue instead of chmod?
Well, that was my first idea too. Though, to be honest, I never looked into how many files were covered by the cp command.
At least with my minimal configuration Qt, it's only the two files below that gets copied. So I'll respin the patch to use install instead.
Do you, or someone else know if there are occasions were more than the two file belows matches ${B}/lib/libqt*?
Cheers,
Anders
Quoted 4 lines
Quoted 4 lines
recipes-qt/qt5/qtbase_git.bb +2
-0+ chown root:root ${D}${libdir}/libqtpcre.prl + chown root:root ${D}${libdir}/libqtpcre.a # Remove example.pro file as it is useless rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro
Signature · 2 lines
Anders Darander ChargeStorm AB / eStorm AB