proliantutils/proliantutils/ilo/snmp
Ilya Etingof 0c7dbee0f9 Exclude pysnmp_mibs from search path
MIB opening class of pysnmp include `pysnmp_mibs` location
as one of the places where pysnmp will try to find the MIB
files being requested. Part of the problem is that pysnmp
opens files in `pysnmp_mibs` directory by relative location
(e.g. CWD) which is generally not a good idea from
security perspective.

It turns out that if the process imports this library being
in a non-readable directory, pysnmp blows up at probing
`pysnmp_mibs` location.

This patch excludes relative `pysnmp_mibs` location from the
search path effectively fixing the blow up problem.

Change-Id: I7fa1b5353a2d33fd58de45426a9ee6dbcbf4eaef
2018-05-24 16:08:53 +02:00
..
cpqdisk_mibs snmp inspection for disk size 2017-01-24 06:19:14 +00:00
__init__.py snmp inspection for disk size 2017-01-24 06:19:14 +00:00
snmp_cpqdisk_sizes.py Exclude pysnmp_mibs from search path 2018-05-24 16:08:53 +02:00