svn commit: r490951 - in head/security/sudo: . files
Renato Botelho
garga at FreeBSD.org
Tue Jan 22 13:51:17 UTC 2019
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 at 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);
More information about the svn-ports-head
mailing list