Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jan 2019 13:51:16 +0000 (UTC)
From:      Renato Botelho <garga@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r490951 - in head/security/sudo: . files
Message-ID:  <201901221351.x0MDpGox021950@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: garga
Date: Tue Jan 22 13:51:16 2019
New Revision: 490951
URL: https://svnweb.freebsd.org/changeset/ports/490951

Log:
  security/sudo: Fix listpw=never
  
  When listpw=never is set, 'sudo -l' is expected to run without asking for a
  password.
  
  PR:		234756
  Reported by:	vas@mpeks.tomsk.su
  Obtained from:	https://bugzilla.sudo.ws/show_bug.cgi?id=869
  Sponsored by:	Rubicon Communications, LLC (Netgate)

Added:
  head/security/sudo/files/patch-plugins_sudoers_parse.c   (contents, props changed)
Modified:
  head/security/sudo/Makefile

Modified: head/security/sudo/Makefile
==============================================================================
--- head/security/sudo/Makefile	Tue Jan 22 13:32:50 2019	(r490950)
+++ head/security/sudo/Makefile	Tue Jan 22 13:51:16 2019	(r490951)
@@ -3,6 +3,7 @@
 
 PORTNAME=	sudo
 PORTVERSION=	1.8.27
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	SUDO
 

Added: head/security/sudo/files/patch-plugins_sudoers_parse.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/sudo/files/patch-plugins_sudoers_parse.c	Tue Jan 22 13:51:16 2019	(r490951)
@@ -0,0 +1,11 @@
+--- plugins/sudoers/parse.c.orig	2019-01-22 13:45:48 UTC
++++ plugins/sudoers/parse.c
+@@ -60,7 +60,7 @@ sudoers_lookup_pseudo(struct sudo_nss_list *snl, struc
+     debug_decl(sudoers_lookup_pseudo, SUDOERS_DEBUG_PARSER)
+ 
+     pwcheck = (pwflag == -1) ? never : sudo_defs_table[pwflag].sd_un.tuple;
+-    nopass = (pwcheck == all) ? true : false;
++    nopass = (pwcheck == never) ? true : false;
+ 
+     if (list_pw == NULL)
+ 	SET(validated, FLAG_NO_CHECK);



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