Gentoo Archives: gentoo-user

From: "Poison BL." <poisonbl@×××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Rkhunter now showing Warnings for two files: /bin/egrep & fgrep
Date: Mon, 26 Jan 2015 16:32:30
Message-Id: CAOTuDKrB7XMvDJUs4HAbyQLjKrW8sz-iuUFFu_wtGmsU9bkE=w@mail.gmail.com
In Reply to: [gentoo-user] Rkhunter now showing Warnings for two files: /bin/egrep & fgrep by Tanstaafl
1 On Mon, Jan 26, 2015 at 11:21 AM, Tanstaafl <tanstaafl@×××××××××××.org> wrote:
2 > Hello all,
3 >
4 > Been on rkhunter 1.4.2 for a while, no changes made to its config file,
5 > been running nightly for years without these warnings...
6 >
7 > I recently did some Gentoo updates after almost 2 months of no updates
8 > (was out of town), and now, even after running --propupd, I continue to
9 > get these warnings:
10 >
11 >> # grep Warning /var/log/rkhunter.log
12 >> [03:10:32] Info: Emailing warnings to 'root' using command '/bin/mail
13 > -s "[rkhunter] Warnings found for ${HOST_NAME}"'
14 >> [03:10:45] /bin/egrep [ Warning ]
15 >> [03:10:45] Warning: The command '/bin/egrep' has been replaced by a
16 > script: /bin/egrep: POSIX shell script, ASCII text executable
17 >> [03:10:45] /bin/fgrep [ Warning ]
18 >> [03:10:45] Warning: The command '/bin/fgrep' has been replaced by a
19 > script: /bin/fgrep: POSIX shell script, ASCII text executable
20 >
21 > Anyone know if this is due to something changing in Gentoo?
22 >
23
24 Well, for the 'not updated recently enough' baseline:
25
26 ~ $ eix grep -I
27 [I] sys-apps/grep
28 Available versions: 2.16 ~2.20 ~2.20-r1 ~2.21 {nls pcre static}
29 Installed versions: 2.16(20:37:55 04/11/14)(nls pcre -static)
30 Homepage: http://www.gnu.org/software/grep/
31 Description: GNU regular expression matcher
32
33 ~ $ file /bin/*grep
34 /bin/egrep: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
35 dynamically linked (uses shared libs), for GNU/Linux 2.6.16, stripped
36 /bin/fgrep: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
37 dynamically linked (uses shared libs), for GNU/Linux 2.6.16, stripped
38 /bin/grep: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
39 dynamically linked (uses shared libs), for GNU/Linux 2.6.16, stripped
40
41 ~ $ ls -l /bin/*grep
42 -rwxr-xr-x 1 root root 208096 Apr 11 2014 /bin/egrep
43 -rwxr-xr-x 1 root root 105472 Apr 11 2014 /bin/fgrep
44 -rwxr-xr-x 1 root root 212256 Apr 11 2014 /bin/grep
45
46 -----
47
48 And after a quick update:
49
50 ~ $ eix grep -I
51 [I] sys-apps/grep
52 Available versions: 2.16 ~2.20 ~2.20-r1 ~2.21 2.21-r1 {nls pcre static}
53 Installed versions: 2.21-r1(11:28:57 01/26/15)(nls pcre -static)
54 Homepage: http://www.gnu.org/software/grep/
55 Description: GNU regular expression matcher
56
57 ~ $ file /bin/*grep
58 /bin/egrep: POSIX shell script, ASCII text executable
59 /bin/fgrep: POSIX shell script, ASCII text executable
60 /bin/grep: ELF 64-bit LSB executable, x86-64, version 1 (SYSV),
61 dynamically linked (uses shared libs), for GNU/Linux 2.6.16, stripped
62
63 ~ $ ls -l /bin/*grep
64 -rwxr-xr-x 1 root root 158 Jan 26 11:28 /bin/egrep
65 -rwxr-xr-x 1 root root 158 Jan 26 11:28 /bin/fgrep
66 -rwxr-xr-x 1 root root 154856 Jan 26 11:28 /bin/grep
67
68
69 --
70 Poison [BLX]
71 Joshua M. Murphy