Page MenuHomeFreeBSD

bsnmpd(1) should use specified prefix for tcpwrappers/hosts.allow
Needs ReviewPublic

Authored by eugen_grosbein.net on Sep 16 2023, 10:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 26 2024, 6:10 AM
Unknown Object (File)
Apr 26 2024, 3:10 AM
Unknown Object (File)
Apr 25 2024, 9:17 PM
Unknown Object (File)
Apr 8 2024, 12:18 PM
Unknown Object (File)
Dec 27 2023, 5:15 AM
Unknown Object (File)
Dec 23 2023, 9:42 AM
Unknown Object (File)
Dec 13 2023, 12:21 AM
Unknown Object (File)
Oct 31 2023, 10:46 AM
Subscribers

Details

Reviewers
harti
syrinx
rew
Summary

bsnmpd(1) has "-l prefix" command line option as the default basename for the pid and the configuration file that simplifies running different instances of the daemon. However, it does not respect this prefix for tcpwappers-based access control but uses hardcoded "snmpd" string.

Proposed one-line change fixes the problem to allow distinct sets of access control lists for distinct daemon instances.

Test Plan

Try running second bsnmpd instance with "-l anothername" command line option while /etc/hosts.allow has restrictions for "snmpd".

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped