[Pkg-net-snmp-devel] Bug#905668: net-snmp: agent module references internal dpkg database

Guillem Jover guillem at debian.org
Tue Aug 7 23:28:32 BST 2018


Source: net-snmp
Source-Version: 5.7.3+dfsg-3
Severity: normal
Tags: upstream patch
User: debian-dpkg at lists.debian.org
Usertags: dpkg-db-access-inert

Hi!

This package contains a MIB implementation for dpkg, with a reference
to the dpkg internal database [M], which it does not use anyway as it
is properly using the «dpkg-query» interface. In addition, the module
seems to be misnamed as swinst_apt instead of swinst_dpkg.

  [M] agent/mibgroup/host/data_access/swinst_apt.c

This a problem for multiple reasons. Even though the layout and format
of the dpkg database is administrator friendly, and it's expected that
those might need to mess with it, in case of emergency, this interface
does not extend to other programs besides the dpkg suite of tools. The
admindir can also be configured differently at dpkg build or run-time.
And finally, the contents and its format, will be changing in the near
future.


Attached an untested patch that should in theory fix this issue.

Thanks,
Guillem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-swinst-Fix-dpkg-module.patch
Type: text/x-diff
Size: 3873 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-net-snmp-devel/attachments/20180808/1e8a4fbd/attachment.patch>


More information about the Pkg-net-snmp-devel mailing list