summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2013-02-09 17:39:32 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-02-09 17:39:32 -0600
commitbbc6b96a4012b0ec176bd1e082642c12612e88cb (patch)
tree500c61cfeb9f75bc7b22a3bdbbbcf6bf640139c7
parent8a6c3391bdc707e89733c259d116d004cbebce88 (diff)
downloadopenrc-bbc6b96a4012b0ec176bd1e082642c12612e88cb.tar.gz
openrc-bbc6b96a4012b0ec176bd1e082642c12612e88cb.tar.bz2
openrc-bbc6b96a4012b0ec176bd1e082642c12612e88cb.tar.xz
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
-rw-r--r--init.d/net.lo.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in
index 32ca810..fbc0124 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