Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 614202 - net-im/kadu-4.3: scanelf: rpath_security_checks()
Summary: net-im/kadu-4.3: scanelf: rpath_security_checks()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-29 11:28 UTC by Perfect Gentleman
Modified: 2017-11-03 02:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Perfect Gentleman 2017-03-29 11:28:50 UTC
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libjabber_protocol.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libsql_history.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libword_fix.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libscreenshot.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libsimpleview.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/liblast_seen.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libexec_notify.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libautostatus.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libconfig_wizard.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libimagelink.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libidle.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libautoaway.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libauto_hide.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libhistory.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libautoresponder.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libdocking.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libemoticons.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libdocking_notify.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libchat_notify.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libspellchecker.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libsound.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libtabs.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libsingle_window.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libfreedesktop_notify.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libfirewall.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libext_sound.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libhints.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libcenzor.so
scanelf: rpath_security_checks(): Maybe? sec problem with DT_RUNPATH='lib/kadu' in /tmp/portage/net-im/kadu-4.3/image/usr/lib/kadu/plugins/libantistring.so
Comment 1 Maciej Mrozowski gentoo-dev 2017-11-03 02:40:01 UTC
I have no idea why kadu sets rpath for plugins at all..

diff -ruN kadu-4.3/cmake/KaduMacros.cmake my/cmake/KaduMacros.cmake
--- kadu-4.3/cmake/KaduMacros.cmake	2017-01-24 22:36:21.000000000 +0100
+++ my/cmake/KaduMacros.cmake	2017-11-03 03:24:17.827054622 +0100
@@ -221,7 +221,7 @@
 
 	if (NOT WIN32)
 		set_target_properties (${KADU_PLUGIN_NAME} PROPERTIES
-			INSTALL_RPATH "${KADU_INSTALL_LIB_DIR}/kadu"
+			INSTALL_RPATH "${KADU_INSTALL_PREFIX}/${KADU_INSTALL_LIB_DIR}/kadu"
 			BUILD_WITH_INSTALL_RPATH TRUE
 		)
 	endif ()

maciek@liwardyna ~ $ readelf -d /usr/lib64/kadu/plugins/libchat_notify.so

Dynamic section at offset 0x7d90 contains 31 entries:
  Tag        Type                         Name/Value
 0x0000000000000001 (NEEDED)             Shared library: [libinjeqt.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libkadu.so]
 0x0000000000000001 (NEEDED)             Shared library: [libQt5Core.so.5]
 0x0000000000000001 (NEEDED)             Shared library: [libstdc++.so.6]
 0x0000000000000001 (NEEDED)             Shared library: [libgcc_s.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.6]
 0x000000000000000e (SONAME)             Library soname: [libchat_notify.so]
 0x000000000000001d (RUNPATH)            Library runpath: [/usr/lib64/kadu]