summaryrefslogtreecommitdiffstats
path: root/rules/net-snmp.in
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2013-09-03 22:29:47 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2013-09-09 18:21:18 +0200
commitcf8fdd181a256e375e50365f08efef5470d46337 (patch)
tree41e5a7e75ae30514efc82661a16fb083077456b4 /rules/net-snmp.in
parent29eb1df47ffb4382b146c41d6422820a95ea27aa (diff)
downloadptxdist-cf8fdd181a256e375e50365f08efef5470d46337.tar.gz
ptxdist-cf8fdd181a256e375e50365f08efef5470d46337.tar.xz
net-snmp: make the agent's availability via TCP/UDP configurable
This needs a patch to net-snmp's autoconf magic because without it it makes no difference if you pass --enable-agentx-dom-sock-only or --disable-...; in both cases only domain sockets were allowed. So default to the conservative setting as this is what older builds resulted in. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/net-snmp.in')
-rw-r--r--rules/net-snmp.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/rules/net-snmp.in b/rules/net-snmp.in
index 6205a1946..1ddc293a7 100644
--- a/rules/net-snmp.in
+++ b/rules/net-snmp.in
@@ -118,4 +118,9 @@ config NET_SNMP_MIB_INSTALL_DIR
string
default "/usr/share/snmp/mibs"
+config NET_SNMP_DOM_SOCK_ONLY
+ bool "Only allow domain socket connections to the agent" if NET_SNMP_AGENT
+ default y
+ help
+ Enable this to disable TCP and UDP connections to the agent.
endif