Created attachment 222650 [details] Patch This is a fix for an upstream bug. Given the level of activity on the snmptt Sourceforge project, I expect some delay until upstream fixes the bug. The code attempts to change from the executing user to a configured service user, but it does this by first changing effective, then real uid. It then briefly looks around curiously before falling flat on its face because the real uid change failed, the process not having root anymore at that point. The attached patch reverses the order of the operations.
Spoke to developer in email about this patch, all looks good and upstream fixed for new version as well.
Committed!
A commit references this bug: Author: nc Date: Fri Mar 5 19:44:32 UTC 2021 New revision: 567415 URL: https://svnweb.freebsd.org/changeset/ports/567415 Log: net-mgmt/snmptt: Fix upstream bug The code attempts to change from the executing user to a configured service user, but it does this by first changing effective, then real uid. It then briefly looks around curiously before falling flat on its face because the real uid change failed, the process not having root anymore at that point. PR: 253702 Submitted by: Christian Ullrich <chris AT chrullrich DOT net> Approved by: nistor AT snickers DOT org Changes: head/net-mgmt/snmptt/Makefile head/net-mgmt/snmptt/files/patch-snmptt