From owner-svn-ports-head@freebsd.org Tue Jan 22 13:51:17 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 39C17148DFA0; Tue, 22 Jan 2019 13:51:17 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CFC188D44A; Tue, 22 Jan 2019 13:51:16 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C256E22F9; Tue, 22 Jan 2019 13:51:16 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x0MDpGBN021951; Tue, 22 Jan 2019 13:51:16 GMT (envelope-from garga@FreeBSD.org) Received: (from garga@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x0MDpGox021950; Tue, 22 Jan 2019 13:51:16 GMT (envelope-from garga@FreeBSD.org) Message-Id: <201901221351.x0MDpGox021950@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: garga set sender to garga@FreeBSD.org using -f From: Renato Botelho Date: Tue, 22 Jan 2019 13:51:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r490951 - in head/security/sudo: . files X-SVN-Group: ports-head X-SVN-Commit-Author: garga X-SVN-Commit-Paths: in head/security/sudo: . files X-SVN-Commit-Revision: 490951 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: CFC188D44A X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.97)[-0.967,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2019 13:51:17 -0000 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);