"Found preloaded shared library" test not understanding comments
Brought to you by:
dogsbody,
dogsbodymark
A Debian user reported the following on the Debian tracker (http://bugs.debian.org/816089):
"A commented out entry in /etc/ld.so.preload is interpreted as a filename in rkhunter:
pi> cat /etc/ld.so.preload
#/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so
This alerts:
Warning: Found preloaded shared library: #/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so
If I add this commented out entry to SHARED_LIB_WHITELIST to try to
fool rkhunter, naturally it doesn't like that this doesn't look like
an absolute filename:
SHARED_LIB_WHITELIST="/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so #/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so"
Invalid SHARED_LIB_WHITELIST configuration option: Relative pathname: #/usr/lib/arm-linux-gnueabihf/libcofi_rpi.so
It'd be better if rkhunter understood the comment meant the library
wasn't loaded and hence could not possibly be a threat that had to be
tested."
You are correct. This is a bug. I have now fixed this in the CVS version of rkhunter.
Closed as fixed by John.