Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Rkhunter now showing Warnings for two files: /bin/egrep & fgrep
Date: Sat, 31 Jan 2015 12:24:54
Message-Id: 20150131122441.750dfe1e@digimed.co.uk
In Reply to: Re: [gentoo-user] Rkhunter now showing Warnings for two files: /bin/egrep & fgrep by Mick
1 On Sat, 31 Jan 2015 12:17:47 +0000, Mick wrote:
2
3 > > You can tell rkhunter to ignore them.
4 > >
5 > > % grep grep /etc/rkhunter.conf.local
6 > > SCRIPTWHITELIST=/bin/egrep
7 > > SCRIPTWHITELIST=/bin/fgrep
8 >
9 > I've also been getting the same warning for:
10 >
11 > Warning: The command '/usr/bin/ldd' has been replaced by a script:
12 > /usr/bin/ldd: Bourne-Again shell script, ASCII text executable
13 >
14 > Warning: The command '/usr/bin/whatis' has been replaced by a script:
15 > /usr/bin/whatis: POSIX shell script, ASCII text executable
16 >
17 > Should I treat them the same?
18
19 I do, here's my full list of whitelisted scripts
20
21 % grep SCRIPT /etc/rkhunter.conf.local
22 SCRIPTWHITELIST=/usr/bin/ldd
23 SCRIPTWHITELIST=/usr/bin/whatis
24 SCRIPTWHITELIST=/usr/bin/lwp-request
25 SCRIPTWHITELIST=/bin/egrep
26 SCRIPTWHITELIST=/bin/fgrep
27
28 Check that the files are as installed by portage, using something like
29 qcheck, before you whitelist anything.
30
31
32 --
33 Neil Bothwick
34
35 A wok is what you throw at a wabbit.