Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Mar 2021 19:44:31 +0000 (UTC)
From:      Neel Chauhan <nc@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r567415 - in head/net-mgmt/snmptt: . files
Message-ID:  <202103051944.125JiVk0086716@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nc
Date: Fri Mar  5 19:44:31 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

Added:
  head/net-mgmt/snmptt/files/patch-snmptt   (contents, props changed)
Modified:
  head/net-mgmt/snmptt/Makefile

Modified: head/net-mgmt/snmptt/Makefile
==============================================================================
--- head/net-mgmt/snmptt/Makefile	Fri Mar  5 19:37:33 2021	(r567414)
+++ head/net-mgmt/snmptt/Makefile	Fri Mar  5 19:44:31 2021	(r567415)
@@ -2,6 +2,7 @@
 
 PORTNAME=	snmptt
 PORTVERSION=	1.4.2
+PORTREVISION=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}_${PORTVERSION}
 DISTNAME=	${PORTNAME}_${PORTVERSION}

Added: head/net-mgmt/snmptt/files/patch-snmptt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-mgmt/snmptt/files/patch-snmptt	Fri Mar  5 19:44:31 2021	(r567415)
@@ -0,0 +1,13 @@
+--- snmptt.orig	2021-02-19 20:24:30 UTC
++++ snmptt
+@@ -956,8 +956,8 @@ if ($daemon == 1)
+       $) = $daemon_gid;
+       $( = $);
+ 	  
+-      $> = $daemon_uid;
+-      $< = $>;
++      $< = $daemon_uid;
++      $> = $<;
+ 	  
+       if ($< != $daemon_uid || $( != $daemon_gid) {	  
+         if ($syslog_system_enable == 1) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103051944.125JiVk0086716>