diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2013-02-09 17:39:32 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2013-02-09 17:39:32 -0600 |
commit | bbc6b96a4012b0ec176bd1e082642c12612e88cb (patch) | |
tree | 500c61cfeb9f75bc7b22a3bdbbbcf6bf640139c7 /init.d | |
parent | 8a6c3391bdc707e89733c259d116d004cbebce88 (diff) |
oldnet: accomodate rkhunter false positive
rkhunter thinks OpenRC is a rootkit because of the hidefirstrout
variable. This has been renamed to hideFirstroute in order to get past
rkhunter.
I realize this is not an openrc bug. In this case though I do not have a
problem renaming the variable.
Reported-by: ago@gentoo.org
X-Gentoo-Bug: 339714
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=339714
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/net.lo.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in index 32ca8107..fbc0124b 100644 --- a/init.d/net.lo.in +++ b/init.d/net.lo.in @@ -633,7 +633,7 @@ start() return 1 fi - local hidefirstroute=false first=true routes= + local hideFirstroute=false first=true routes= if ${fallback}; then routes="$(_get_array "fallback_routes_${IFVAR}")" fi @@ -644,7 +644,7 @@ start() if [ "${config_0}" != "null" ]; then routes="127.0.0.0/8 via 127.0.0.1 ${routes}" - hidefirstroute=true + hideFirstroute=true fi fi @@ -676,9 +676,9 @@ ${routes}" *:*/*) cmd="-net ${cmd}";; *) cmd="-host ${cmd}";; esac - if ${hidefirstroute}; then + if ${hideFirstroute}; then _add_route ${fam} ${cmd} >/dev/null 2>&1 - hidefirstroute=false + hideFirstroute=false else _add_route ${fam} ${cmd} >/dev/null fi |