Package: net-snmp / 5.9.3+dfsg-2

Metadata

Package Version Patches format
net-snmp 5.9.3+dfsg-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
pingmib_perl_path | (download)

perl/SNMP/examples/pingmib.pl | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 use perl path directly
 Original script used /usr/bin/env perl to find the interpreter. This is
 against Debian policy 10.4
02_statistics.patch | (download)

agent/mibgroup/mibII/interfaces.c | 6 5 + 1 - 0 !
1 file changed, 5 insertions(+), 1 deletion(-)

 ignore interfaces without statistics
03_makefiles.patch | (download)

Makefile.in | 2 1 + 1 - 0 !
Makefile.top | 1 1 + 0 - 0 !
local/Makefile.in | 2 1 + 1 - 0 !
mibs/Makefile.in | 6 3 + 3 - 0 !
4 files changed, 6 insertions(+), 5 deletions(-)

 update makefiles
 Makefile patch to include libwrap and libsensors libraries and install
 extra MIB files.
05_searchdirs.patch | (download)

local/mib2c | 5 3 + 2 - 0 !
1 file changed, 3 insertions(+), 2 deletions(-)

 _searchdirs

Makefile patch to include libwrap and libsensors libraries and install extra
MIB files.

06_extramibs.patch | (download)

mibs/GNOME-SMI.txt | 88 88 + 0 - 0 !
1 file changed, 88 insertions(+)

 _extramibs

Extra MIB files shipped with Debian.

07_docfiles.patch | (download)

EXAMPLE.conf.def | 2 1 + 1 - 0 !
FAQ | 22 11 + 11 - 0 !
2 files changed, 12 insertions(+), 12 deletions(-)

 document paths
 Patch documentation files to change paths to Debian specific locations.
60_libsensors_api.patch | (download)

agent/mibgroup/ucd-snmp/lmSensors.c | 162 78 + 84 - 0 !
1 file changed, 78 insertions(+), 84 deletions(-)

 _libsensors_api

Patch from Jonathan Nieder <jrnieder@gmail.com> to update lmsensors API to libsensors4.

62_add_lib_cflags.patch | (download)

configure.ac | 5 5 + 0 - 0 !
net-snmp-config.in | 5 5 + 0 - 0 !
2 files changed, 10 insertions(+)

 add base-lib-cflags option
 Add option "--base-lib-cflags" to net-snmp-config. This flag returns
 options needed to link against libnetsnmp. In particular, no perl
 specific options are provided.
 .
 It was reported in "libsnmp-base: forcing perl headers in net-snmp-config
 --cflags breaks perl builds"
 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502806
64_missing_lib.patch | (download)

apps/Makefile.in | 6 4 + 2 - 0 !
configure.ac | 3 3 + 0 - 0 !
2 files changed, 7 insertions(+), 2 deletions(-)

 add missing libraries to makefile
fix_snmpcheck_perl_path.patch | (download)

local/snmpcheck.def | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix_snmpcheck_perl_path

snmptranslate.1.patch | (download)

man/snmptranslate.1.def | 22 11 + 11 - 0 !
1 file changed, 11 insertions(+), 11 deletions(-)

 snmptranslate.1 groff errors
fix_spelling_error.patch | (download)

apps/snmpnetstat/inet.c | 2 1 + 1 - 0 !
apps/snmpnetstat/inet6.c | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

 spelling errors
 Fix some minor spelling errors in the code
fix_typo_in_snmpd.conf.patch | (download)

EXAMPLE.conf.def | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix_typo_in_snmpd.conf


fix_manpage has errors_break_line.patch | (download)

man/netsnmp_config_api.3.def | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix man page groff errors
add_rocommunity6.patch | (download)

EXAMPLE.conf.def | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 add_rocommunity6


fix request id 0.patch | (download)

snmplib/snmp_api.c | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 fix-request-id-0
0026 fix Bug 785380 incorrect date format.patch | (download)

local/traptoemail | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 fix bug#785380 incorrect date format


0027 fix 455707 traptoemail use FQDN.patch | (download)

local/traptoemail | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix #455707 traptoemail use fqdn


let_perl_access_engineid.diff | (download)

perl/SNMP/SNMP.pm | 21 21 + 0 - 0 !
perl/SNMP/SNMP.xs | 44 44 + 0 - 0 !
2 files changed, 65 insertions(+)

 let perl access engineid
fix_perl_bulk_gets.diff | (download)

perl/SNMP/SNMP.pm | 53 24 + 29 - 0 !
1 file changed, 24 insertions(+), 29 deletions(-)

 fix perl bulk gets
do_not_callback_for_failed_reports.diff | (download)

snmplib/snmp_api.c | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 perl - do not callback for failed reports
callback_print.diff | (download)

perl/SNMP/SNMP.xs | 4 4 + 0 - 0 !
1 file changed, 4 insertions(+)

 callback_print


fix_engineid_reprobe.diff | (download)

snmplib/snmpusm.c | 5 5 + 0 - 0 !
1 file changed, 5 insertions(+)

 fix engineid reprobe
 Do not probe for engineID when we already know it
snmpwalk_args_in_snmpcheck | (download)

local/snmpcheck.def | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 correct snmpwalk args in snmpcheck

snmpcheck used the old command line arguments for snmpwalk giving an
error and no data.

Closes: #898197

References:
 https://bugs.kali.org/view.php?id=4655

snmpd_pidfile_mode | (download)

agent/snmpd.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 make snmpd pidfile word-readable
 Almost all pid files are mode 644, including snmptrapd. For some unknown
 reason, snmpd had mode 0600.  Now it has 644 like everyone else.
snmpcmd_1_groff | (download)

man/snmpcmd.1.def | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

---
netsnmp_mib_api_3_groff | (download)

man/netsnmp_mib_api.3.def | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

---
snmplib_error_subcontainer | (download)

snmplib/container.c | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 change logging on ia_addr message
 Message about error with subcontainers is just debug, not a filtered by
 keyword debug. This (along with logging options set to high in the init 
 script) made snmpd very chatty.
apps_makefile_use_ldflags | (download)

Makefile.in | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 makefile add correct flags
 The sedscript creation was missing CPPGLAGS
cross.patch | (download)

Makefile.in | 2 1 + 1 - 0 !
configure.d/config_os_libs2 | 18 11 + 7 - 0 !
2 files changed, 12 insertions(+), 8 deletions(-)

---
agent_silent_eacces | (download)

agent/mibgroup/hardware/fsys/fsys_mntent.c | 6 5 + 1 - 0 !
1 file changed, 5 insertions(+), 1 deletion(-)

 be quiet on access error 
 SNMP agents can legitimately be not allowed to access mount points, such as
 trying to get to things under /run/user. This patch changes a EACCES error to
 a debug message.
agent_swinst_dpkg_date | (download)

agent/mibgroup/host/data_access/swinst_apt.c | 30 8 + 22 - 0 !
1 file changed, 8 insertions(+), 22 deletions(-)

 swinst_apt: use dpkg for modified date
 Instead of trawling through dpkg's files, let dpkg-query tell us
 when the package was last modified. It means if the directory
 changes or any other internal changes happen, this will still
 keep working.
 .
 db-sys:Last-Modified field has been in since dpkg-query 1.19.3
 which means it works for Debian stable (Buster) onwards.
snmpd_conf_5_ro_extend | (download)

man/snmpd.conf.5.def | 3 0 + 3 - 0 !
1 file changed, 3 deletions(-)

 snmpd.conf.5 cannot extend extend
 Remove line in man page that you can extend EXTEND with
 SNMP SETs
perl_makefile_man3pods | (download)

perl/SNMP/Makefile.PL | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 rename snmp.3 to snmp.3pm
 The upstream build system installs the perl SNMP man page as SNMP.3
 While the Debian dh_install renames it, it causes the file to be put into
 libsnmp-dev not libsnmp-perl package.
 Giving it the correct name in the first place means its picked up by the
 correct package.
ci_libmariadb dev | (download)

ci/net-snmp-configure | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 ci - use correct mariadb packagenames
 Upstream uses the old names for libmariadb-dev-compat package.
mib2c_perl_error | (download)

local/mib2c | 7 3 + 4 - 0 !
1 file changed, 3 insertions(+), 4 deletions(-)

 mib2c perl error message
 Change the error message of mib2c when it cannot find the perl module to install
 by using apt-get rather than downloading source code from the upstream website.
net snmp create v3 user_paths | (download)

net-snmp-create-v3-user.in | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 fix paths for net-snmp-create-v3-user
 Use the pidof program instead of ps and grep
 Fix the path for configuration file
snmptrapd_correct_mysql_includes | (download)

apps/snmptrapd_sql.c | 6 0 + 6 - 0 !
1 file changed, 6 deletions(-)

 correct snmptrapd mariadb includes
 Do not include my_sys.h
makefile_trap_needs_agent | (download)

apps/Makefile.in | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 add libnetsnmpaget link to libnetsnmptrapd
 Causes a linking issue otherwise 
includes_fix_national_encoding | (download)

include/net-snmp/agent/agent_handler.h | 2 1 + 1 - 0 !
include/net-snmp/agent/snmp_agent.h | 2 1 + 1 - 0 !
include/net-snmp/agent/snmp_vars.h | 2 1 + 1 - 0 !
include/net-snmp/agent/table.h | 2 1 + 1 - 0 !
include/net-snmp/agent/table_iterator.h | 2 1 + 1 - 0 !
include/net-snmp/library/data_list.h | 2 1 + 1 - 0 !
include/net-snmp/library/default_store.h | 2 1 + 1 - 0 !
include/net-snmp/library/snmp_api.h | 2 1 + 1 - 0 !
include/net-snmp/library/system.h | 2 1 + 1 - 0 !
9 files changed, 9 insertions(+), 9 deletions(-)

---
agent_set_null_varbind | (download)

agent/snmp_agent.c | 32 32 + 0 - 0 !
apps/snmpset.c | 1 1 + 0 - 0 !
testing/fulltests/default/T0142snmpv2csetnull_simple | 31 31 + 0 - 0 !
3 files changed, 64 insertions(+)

 agent: disallow set requests with any null varbind
 Fixes CVE-2022-44792 NULL Pointer Exception when handling ipDefaultTTL
 and  CVE-2022-44793 NULL Pointer Exception when handling pv6IpForwarding