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
This commit is contained in:
William Hubbs 2013-02-09 17:39:32 -06:00
parent 8a6c3391bd
commit bbc6b96a40

View File

@ -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