From Todd.Miller at courtesan.com Thu Mar 4 08:12:46 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 04 Mar 2010 08:12:46 -0500 Subject: [sudo-commits] sudo changeset 5080:45250024c5dc Message-ID: changeset: 5080:45250024c5dc in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/45250024c5dc user: Todd C. Miller date: Thu Mar 04 08:12:36 2010 -0500 Log Message: No longer need to substitute in script.o and pty.o; I/O logging support is always built. diffstat: INSTALL | 28 +- configure | 569 +++++++++++++++++++++++----------------------------------- configure.in | 71 +++---- 3 files changed, 272 insertions(+), 396 deletions(-) From Todd.Miller at courtesan.com Thu Mar 4 12:06:54 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 04 Mar 2010 12:06:54 -0500 Subject: [sudo-commits] sudo changeset 5081:7cd66999a374 Message-ID: changeset: 5081:7cd66999a374 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/7cd66999a374 user: Todd C. Miller date: Thu Mar 04 12:06:42 2010 -0500 Log Message: Fix strlcpy() return value check. diffstat: src/load_plugins.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Thu Mar 4 20:18:29 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 04 Mar 2010 20:18:29 -0500 Subject: [sudo-commits] sudo changeset 5082:d03b6e4a3b75 Message-ID: changeset: 5082:d03b6e4a3b75 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/d03b6e4a3b75 user: Todd C. Miller date: Thu Mar 04 20:18:22 2010 -0500 Log Message: Convert to ANSI C diffstat: src/Makefile.in | 1 - src/aix.c | 8 ++------ src/alloc.c | 35 +++++++++++------------------------ src/atobool.c | 7 ++++--- src/error.c | 5 +---- src/fileops.c | 22 ++++++---------------- src/lbuf.c | 18 +++++++----------- src/list.c | 25 ++++++++++--------------- src/pty.c | 3 +-- src/sesh.c | 2 +- src/sudo.c | 3 +-- src/sudo_edit.c | 7 ++----- src/term.c | 32 ++++++++------------------------ src/zero_bytes.c | 4 +--- 14 files changed, 55 insertions(+), 117 deletions(-) From Todd.Miller at courtesan.com Fri Mar 5 14:39:32 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 05 Mar 2010 14:39:32 -0500 Subject: [sudo-commits] sudo changeset 5083:b1bc6d81a65f Message-ID: changeset: 5083:b1bc6d81a65f in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b1bc6d81a65f user: Todd C. Miller date: Fri Mar 05 14:38:42 2010 -0500 Log Message: Fix a mismatch between sudo_settings and settings_pairs that causes some settings to get the wrong values. diffstat: src/parse_args.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Fri Mar 5 14:39:33 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 05 Mar 2010 14:39:33 -0500 Subject: [sudo-commits] sudo changeset 5084:7ee12068bc57 Message-ID: changeset: 5084:7ee12068bc57 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/7ee12068bc57 user: Todd C. Miller date: Fri Mar 05 14:39:13 2010 -0500 Log Message: runas_user is in settings not user_info diffstat: plugins/sample/sample_plugin.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Fri Mar 5 16:52:30 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 05 Mar 2010 16:52:30 -0500 Subject: [sudo-commits] sudo changeset 5085:2d995db9aa99 Message-ID: changeset: 5085:2d995db9aa99 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/2d995db9aa99 user: Todd C. Miller date: Fri Mar 05 14:44:04 2010 -0500 Log Message: Use $(OBJS) instead of sample_plugin.lo diffstat: plugins/sample/Makefile.in | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) From Todd.Miller at courtesan.com Fri Mar 5 16:52:31 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 05 Mar 2010 16:52:31 -0500 Subject: [sudo-commits] sudo changeset 5086:73df09e2109f Message-ID: changeset: 5086:73df09e2109f in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/73df09e2109f user: Todd C. Miller date: Fri Mar 05 16:52:04 2010 -0500 Log Message: Don't depend on emalloc/erealloc diffstat: compat/getline.c | 26 +++++++++++++++++--------- 1 files changed, 17 insertions(+), 9 deletions(-) From Todd.Miller at courtesan.com Fri Mar 5 17:14:32 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 05 Mar 2010 17:14:32 -0500 Subject: [sudo-commits] sudo changeset 5087:6ce09b6cb204 Message-ID: changeset: 5087:6ce09b6cb204 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/6ce09b6cb204 user: Todd C. Miller date: Fri Mar 05 17:13:42 2010 -0500 Log Message: Handle NULL reply from conversation function diffstat: plugins/sample/sample_plugin.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Fri Mar 5 17:14:34 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 05 Mar 2010 17:14:34 -0500 Subject: [sudo-commits] sudo changeset 5088:75ab127c6a94 Message-ID: changeset: 5088:75ab127c6a94 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/75ab127c6a94 user: Todd C. Miller date: Fri Mar 05 17:14:19 2010 -0500 Log Message: Simplify conversion of command line args to name=value pairs. diffstat: src/parse_args.c | 113 +++++++++++++++++++++++------------------------------- 1 files changed, 49 insertions(+), 64 deletions(-) From Todd.Miller at courtesan.com Sat Mar 6 14:34:34 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 06 Mar 2010 14:34:34 -0500 Subject: [sudo-commits] sudo changeset 5089:c64c82c9d5a2 Message-ID: changeset: 5089:c64c82c9d5a2 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/c64c82c9d5a2 user: Todd C. Miller date: Sat Mar 06 07:36:02 2010 -0500 Log Message: AUTH_OBJS should contain .lo files not .o files. diffstat: configure | 34 +++++++++++++++++----------------- configure.in | 34 +++++++++++++++++----------------- 2 files changed, 34 insertions(+), 34 deletions(-) From Todd.Miller at courtesan.com Sat Mar 6 14:34:35 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 06 Mar 2010 14:34:35 -0500 Subject: [sudo-commits] sudo changeset 5090:0e0e1fd5c31c Message-ID: changeset: 5090:0e0e1fd5c31c in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/0e0e1fd5c31c user: Todd C. Miller date: Sat Mar 06 14:28:26 2010 -0500 Log Message: tq_remove not list_remove diffstat: include/list.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Sat Mar 6 14:34:36 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 06 Mar 2010 14:34:36 -0500 Subject: [sudo-commits] sudo changeset 5091:ade64d368147 Message-ID: changeset: 5091:ade64d368147 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/ade64d368147 user: Todd C. Miller date: Sat Mar 06 14:29:04 2010 -0500 Log Message: Don't use emalloc() in fmt_string(); we want to be able to use it from a plugin. diffstat: src/fmt_string.c | 16 +++++++++------- src/parse_args.c | 5 ++++- src/sudo.c | 8 ++++++++ 3 files changed, 21 insertions(+), 8 deletions(-) From Todd.Miller at courtesan.com Sat Mar 6 14:34:37 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 06 Mar 2010 14:34:37 -0500 Subject: [sudo-commits] sudo changeset 5093:379581ec7272 Message-ID: changeset: 5093:379581ec7272 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/379581ec7272 user: Todd C. Miller date: Sat Mar 06 14:34:23 2010 -0500 Log Message: Wire up SIGALRM handler Set close on exec flag for child side of the socketpair Fix signal handling when not doing I/O logging diffstat: src/script.c | 114 +++++++++++++++++++++++++++++++++++++--------------------- src/sudo.c | 2 - 2 files changed, 72 insertions(+), 44 deletions(-) From Todd.Miller at courtesan.com Sat Mar 6 14:34:36 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 06 Mar 2010 14:34:36 -0500 Subject: [sudo-commits] sudo changeset 5092:0afa03912dce Message-ID: changeset: 5092:0afa03912dce in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/0afa03912dce user: Todd C. Miller date: Sat Mar 06 14:29:32 2010 -0500 Log Message: g/c unused SIGCHLD handler diffstat: src/sudo.c | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) From Todd.Miller at courtesan.com Sat Mar 6 16:31:18 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 06 Mar 2010 16:31:18 -0500 Subject: [sudo-commits] sudo changeset 5094:cfefa4fa60b5 Message-ID: changeset: 5094:cfefa4fa60b5 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/cfefa4fa60b5 user: Todd C. Miller date: Sat Mar 06 16:29:59 2010 -0500 Log Message: Add support to -u and -g flags Check fmt_string retval Add timeout for debugging purposes diffstat: plugins/sample/sample_plugin.c | 82 +++++++++++++++++++++++++++++++---------- 1 files changed, 61 insertions(+), 21 deletions(-) From Todd.Miller at courtesan.com Sat Mar 6 16:31:19 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 06 Mar 2010 16:31:19 -0500 Subject: [sudo-commits] sudo changeset 5095:0646fac4cf93 Message-ID: changeset: 5095:0646fac4cf93 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/0646fac4cf93 user: Todd C. Miller date: Sat Mar 06 16:31:10 2010 -0500 Log Message: transcript option is now --with not --enable diffstat: aclocal.m4 | 24 +++++++++++------------- 1 files changed, 11 insertions(+), 13 deletions(-) From Todd.Miller at courtesan.com Sun Mar 7 07:45:22 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 07 Mar 2010 07:45:22 -0500 Subject: [sudo-commits] sudo changeset 5096:564f528c3bb7 Message-ID: changeset: 5096:564f528c3bb7 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/564f528c3bb7 user: Todd C. Miller date: Sun Mar 07 07:45:17 2010 -0500 Log Message: Use parent process group id instead of parent process id when checking foreground status and suspending parent. Fixes an issue when running commands under /usr/bin/time and others. diffstat: src/script.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) From Todd.Miller at courtesan.com Tue Mar 9 12:38:01 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 09 Mar 2010 12:38:01 -0500 Subject: [sudo-commits] sudo changeset 5098:eac86126e335 Message-ID: changeset: 5098:eac86126e335 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/eac86126e335 user: Todd C. Miller date: Mon Mar 08 14:27:30 2010 -0500 Log Message: Use parent process group id instead of parent process id when checking foreground status and suspending parent. Fixes an issue when running commands under /usr/bin/time and others. diffstat: script.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) From Todd.Miller at courtesan.com Tue Mar 9 12:38:00 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 09 Mar 2010 12:38:00 -0500 Subject: [sudo-commits] sudo changeset 5097:d202091ec15e Message-ID: changeset: 5097:d202091ec15e in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/d202091ec15e user: Todd C. Miller date: Mon Mar 08 13:53:54 2010 -0500 Log Message: In setenv(), if the var is empty, return 1 and set errno to EINVAL instead of returning EINVAL directly. diffstat: env.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Tue Mar 9 12:38:02 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 09 Mar 2010 12:38:02 -0500 Subject: [sudo-commits] sudo changeset 5099:549f8f7c2463 Message-ID: changeset: 5099:549f8f7c2463 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/549f8f7c2463 user: Todd C. Miller date: Tue Mar 09 12:37:50 2010 -0500 Log Message: When doing a glob match, short circuit if gl.gl_pathc is 0. From Mark Kettenis. diffstat: match.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Tue Mar 9 15:38:20 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 09 Mar 2010 15:38:20 -0500 Subject: [sudo-commits] sudo changeset 5100:4b270f2e0aa8 Message-ID: changeset: 5100:4b270f2e0aa8 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/4b270f2e0aa8 user: Todd C. Miller date: Tue Mar 09 12:57:01 2010 -0500 Log Message: When doing a glob match, short circuit if gl.gl_pathc is 0. From Mark Kettenis. diffstat: parse.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Tue Mar 9 19:20:07 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 09 Mar 2010 19:20:07 -0500 Subject: [sudo-commits] sudo changeset 5101:c534cae1ac4a Message-ID: changeset: 5101:c534cae1ac4a in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/c534cae1ac4a user: Todd C. Miller date: Tue Mar 09 19:20:01 2010 -0500 Log Message: conversation function no longer puts a newline at the end of info or error messages. diffstat: plugins/sample/sample_plugin.c | 12 +++++++----- src/conversation.c | 6 ++---- 2 files changed, 9 insertions(+), 9 deletions(-) From Todd.Miller at courtesan.com Thu Mar 11 17:21:42 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 11 Mar 2010 17:21:42 -0500 Subject: [sudo-commits] sudo changeset 5102:c85b3ce6b77d Message-ID: changeset: 5102:c85b3ce6b77d in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/c85b3ce6b77d user: Todd C. Miller date: Thu Mar 11 16:57:20 2010 -0500 Log Message: Add definition of WCOREDUMP for systems without it. This is known to work on AIX and SunOS 4, but may be incorrect on other systems that lack WCOREDUMP. diffstat: include/compat.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Thu Mar 11 17:21:43 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 11 Mar 2010 17:21:43 -0500 Subject: [sudo-commits] sudo changeset 5103:04a233b6c491 Message-ID: changeset: 5103:04a233b6c491 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/04a233b6c491 user: Todd C. Miller date: Thu Mar 11 17:02:23 2010 -0500 Log Message: Mention in the conversation function section that a newline is not implicit. diffstat: doc/sudo_plugin.cat | 52 +++++++++++++++++++++++++------------------------- doc/sudo_plugin.man.in | 6 +++- doc/sudo_plugin.pod | 4 ++- 3 files changed, 33 insertions(+), 29 deletions(-) From Todd.Miller at courtesan.com Thu Mar 11 17:21:44 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 11 Mar 2010 17:21:44 -0500 Subject: [sudo-commits] sudo changeset 5104:9ae4a80a5ade Message-ID: changeset: 5104:9ae4a80a5ade in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/9ae4a80a5ade user: Todd C. Miller date: Thu Mar 11 17:21:34 2010 -0500 Log Message: Change SUDO_LDFLAGS to SUDOERS_LDFLAGS and add SUDOERS_OBJS. We now use SUDO_OBJS for the main driver as part of OBJS. diffstat: configure | 167 +++++++++++++++++++++++++++++-------------------------- configure.in | 52 +++++++++-------- src/Makefile.in | 5 +- 3 files changed, 118 insertions(+), 106 deletions(-) From Todd.Miller at courtesan.com Fri Mar 12 05:26:13 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 12 Mar 2010 05:26:13 -0500 Subject: [sudo-commits] sudo changeset 5105:2e078fed2408 Message-ID: changeset: 5105:2e078fed2408 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/2e078fed2408 user: Todd C. Miller date: Fri Mar 12 05:26:01 2010 -0500 Log Message: Change the sys_siglist check to use AC_CHECK_DECLS and also check for _sys_siglist and__sys_siglist diffstat: compat/strsignal.c | 24 +++- config.h.in | 12 +- configure | 292 ++++++++++++++++++++++++++++++++++++++++++---------- configure.in | 14 +- 4 files changed, 271 insertions(+), 71 deletions(-) From Todd.Miller at courtesan.com Fri Mar 12 11:47:34 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 12 Mar 2010 11:47:34 -0500 Subject: [sudo-commits] sudo changeset 5106:9b2fa2f17a1c Message-ID: changeset: 5106:9b2fa2f17a1c in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/9b2fa2f17a1c user: Todd C. Miller date: Fri Mar 12 11:45:57 2010 -0500 Log Message: Require either termios or termio, no more sgtty. diffstat: configure | 22 ++++++----- configure.in | 13 ++---- src/lbuf.c | 4 +- src/script.c | 6 +-- src/term.c | 104 +++++----------------------------------------------------- 5 files changed, 29 insertions(+), 120 deletions(-) From Todd.Miller at courtesan.com Fri Mar 12 12:46:45 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 12 Mar 2010 12:46:45 -0500 Subject: [sudo-commits] sudo changeset 5107:0b16ec210c81 Message-ID: changeset: 5107:0b16ec210c81 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/0b16ec210c81 user: Todd C. Miller date: Fri Mar 12 12:39:04 2010 -0500 Log Message: Remove redundant getgroups check diffstat: configure | 3 +-- configure.in | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) From Todd.Miller at courtesan.com Fri Mar 12 12:46:46 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 12 Mar 2010 12:46:46 -0500 Subject: [sudo-commits] sudo changeset 5108:4a344b8cbe49 Message-ID: changeset: 5108:4a344b8cbe49 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/4a344b8cbe49 user: Todd C. Miller date: Fri Mar 12 12:40:00 2010 -0500 Log Message: Fix botched ANSI C coversion of globexp2() diffstat: compat/glob.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Fri Mar 12 12:46:47 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 12 Mar 2010 12:46:47 -0500 Subject: [sudo-commits] sudo changeset 5109:384580566389 Message-ID: changeset: 5109:384580566389 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/384580566389 user: Todd C. Miller date: Fri Mar 12 12:43:03 2010 -0500 Log Message: Must check HAVE_DECL_SYS_SIGLIST == 1 (not just if defined) since if it doesn't exist configure will set it to 0. diffstat: compat/strsignal.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) From Todd.Miller at courtesan.com Fri Mar 12 12:46:48 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 12 Mar 2010 12:46:48 -0500 Subject: [sudo-commits] sudo changeset 5110:c94f7aad380f Message-ID: changeset: 5110:c94f7aad380f in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/c94f7aad380f user: Todd C. Miller date: Fri Mar 12 12:46:30 2010 -0500 Log Message: Need to include compat.h before missing.h diffstat: plugins/sample/sample_plugin.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Fri Mar 12 17:11:27 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 12 Mar 2010 17:11:27 -0500 Subject: [sudo-commits] sudo changeset 5111:25c9fd399a4d Message-ID: changeset: 5111:25c9fd399a4d in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/25c9fd399a4d user: Todd C. Miller date: Fri Mar 12 17:11:11 2010 -0500 Log Message: Add strdup and strndup to compat diffstat: compat/strdup.c | 52 +++++++++++++++++++++++++++++++++++++++++++ compat/strndup.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++ configure | 4 ++- configure.in | 2 +- plugins/sample/Makefile.in | 4 +++ src/Makefile.in | 4 +++ 6 files changed, 119 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Sun Mar 14 18:01:32 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 14 Mar 2010 18:01:32 -0400 Subject: [sudo-commits] sudo changeset 5113:e1e04972b5fe Message-ID: changeset: 5113:e1e04972b5fe in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/e1e04972b5fe user: Todd C. Miller date: Sun Mar 14 18:01:17 2010 -0400 Log Message: Build libmissing in two flavors (one PIC one non-PIC) and link with the appropriate one. diffstat: Makefile | 2 +- compat/fnmatch.c | 4 ++-- compat/glob.c | 4 ++-- compat/nanosleep.c | 2 +- compat/utimes.c | 2 +- plugins/sample/Makefile.in | 44 +------------------------------------------- src/Makefile.in | 44 +------------------------------------------- 7 files changed, 9 insertions(+), 93 deletions(-) From Todd.Miller at courtesan.com Sun Mar 14 18:01:31 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 14 Mar 2010 18:01:31 -0400 Subject: [sudo-commits] sudo changeset 5112:c159babe2896 Message-ID: changeset: 5112:c159babe2896 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/c159babe2896 user: Todd C. Miller date: Sat Mar 13 09:30:22 2010 -0500 Log Message: Add strdup and strndup and fix strsignal diffstat: include/missing.h | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Sun Mar 14 18:05:41 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 14 Mar 2010 18:05:41 -0400 Subject: [sudo-commits] sudo changeset 5115:50a3c0dd510f Message-ID: changeset: 5115:50a3c0dd510f in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/50a3c0dd510f user: Todd C. Miller date: Sun Mar 14 18:05:23 2010 -0400 Log Message: Add HAVE_STRDUP and HAVE_STRNDUP diffstat: config.h.in | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Sun Mar 14 18:05:39 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 14 Mar 2010 18:05:39 -0400 Subject: [sudo-commits] sudo changeset 5114:b62f411a4c18 Message-ID: changeset: 5114:b62f411a4c18 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b62f411a4c18 user: Todd C. Miller date: Sun Mar 14 18:05:00 2010 -0400 Log Message: Build libmissing in two flavors (one PIC one non-PIC) and link with the appropriate one. diffstat: compat/Makefile.in | 116 +++++++++++++++++++++++++++++++++++++++++++++++++++++ configure | 3 +- configure.in | 2 +- 3 files changed, 119 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Sun Mar 14 19:59:00 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 14 Mar 2010 19:59:00 -0400 Subject: [sudo-commits] sudo changeset 5116:af2a2c59a952 Message-ID: changeset: 5116:af2a2c59a952 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/af2a2c59a952 user: Todd C. Miller date: Sun Mar 14 19:58:47 2010 -0400 Log Message: Initial bits of sudoers plugin; still needs work. diffstat: plugins/sudoers/Makefile.in | 605 ++++--------------- plugins/sudoers/alias.c | 2 +- plugins/sudoers/auth/afs.c | 2 +- plugins/sudoers/auth/aix_auth.c | 4 +- plugins/sudoers/auth/bsdauth.c | 10 +- plugins/sudoers/auth/dce.c | 2 +- plugins/sudoers/auth/fwtk.c | 15 +- plugins/sudoers/auth/kerb4.c | 2 +- plugins/sudoers/auth/kerb5.c | 2 +- plugins/sudoers/auth/pam.c | 10 +- plugins/sudoers/auth/passwd.c | 2 +- plugins/sudoers/auth/rfc1938.c | 2 +- plugins/sudoers/auth/secureware.c | 2 +- plugins/sudoers/auth/securid.c | 2 +- plugins/sudoers/auth/securid5.c | 10 +- plugins/sudoers/auth/sia.c | 2 +- plugins/sudoers/auth/sudo_auth.c | 91 ++- plugins/sudoers/auth/sudo_auth.h | 6 + plugins/sudoers/check.c | 49 +- plugins/sudoers/defaults.c | 2 +- plugins/sudoers/env.c | 52 +- plugins/sudoers/error.c | 93 +++ plugins/sudoers/find_path.c | 2 +- plugins/sudoers/getspwuid.c | 36 +- plugins/sudoers/goodpath.c | 2 +- plugins/sudoers/gram.c | 175 ++--- plugins/sudoers/gram.y | 3 +- plugins/sudoers/interfaces.c | 2 +- plugins/sudoers/ldap.c | 2 +- plugins/sudoers/logging.c | 63 +- plugins/sudoers/match.c | 2 +- plugins/sudoers/mon_systrace.c | 2 +- plugins/sudoers/parse.c | 2 +- plugins/sudoers/pwutil.c | 2 +- plugins/sudoers/redblack.c | 2 +- plugins/sudoers/set_perms.c | 2 +- plugins/sudoers/sudo_nss.c | 2 +- plugins/sudoers/sudoers.c | 1101 ++++++++++++++---------------------- plugins/sudoers/sudoers.h | 42 +- plugins/sudoers/testsudoers.c | 2 +- plugins/sudoers/toke.c | 2 +- plugins/sudoers/tsgetgrpw.c | 2 +- plugins/sudoers/vasgroups.c | 2 +- plugins/sudoers/visudo.c | 2 +- 44 files changed, 1027 insertions(+), 1392 deletions(-) From Todd.Miller at courtesan.com Sun Mar 14 20:48:05 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 14 Mar 2010 20:48:05 -0400 Subject: [sudo-commits] sudo changeset 5117:1ad359d36be9 Message-ID: changeset: 5117:1ad359d36be9 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/1ad359d36be9 user: Todd C. Miller date: Sun Mar 14 20:47:56 2010 -0400 Log Message: Rename sudo_conv to conversation to avoid a namespace conflict. diffstat: plugins/sudoers/auth/pam.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Mon Mar 15 10:44:37 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 15 Mar 2010 10:44:37 -0400 Subject: [sudo-commits] sudo changeset 5118:85f964215eef Message-ID: changeset: 5118:85f964215eef in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/85f964215eef user: Todd C. Miller date: Mon Mar 15 10:44:06 2010 -0400 Log Message: Use warningx in yyerror() so the conversation function gets used when built as part of sudoers. diffstat: plugins/sudoers/gram.c | 167 ++++++++++++++++++++++++------------------------ plugins/sudoers/gram.y | 5 +- 2 files changed, 85 insertions(+), 87 deletions(-) From Todd.Miller at courtesan.com Mon Mar 15 10:44:38 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 15 Mar 2010 10:44:38 -0400 Subject: [sudo-commits] sudo changeset 5119:5cdf06e66978 Message-ID: changeset: 5119:5cdf06e66978 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/5cdf06e66978 user: Todd C. Miller date: Mon Mar 15 10:44:19 2010 -0400 Log Message: Build sudoers plugin diffstat: Makefile | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Mon Mar 15 13:37:40 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 15 Mar 2010 13:37:40 -0400 Subject: [sudo-commits] sudo changeset 5120:b2331fb006bc Message-ID: changeset: 5120:b2331fb006bc in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b2331fb006bc user: Todd C. Miller date: Mon Mar 15 07:01:51 2010 -0400 Log Message: Quiet a libtool warning diffstat: plugins/sample/Makefile.in | 2 +- plugins/sudoers/Makefile.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Mon Mar 15 13:37:41 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 15 Mar 2010 13:37:41 -0400 Subject: [sudo-commits] sudo changeset 5121:b50e26f1c73f Message-ID: changeset: 5121:b50e26f1c73f in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b50e26f1c73f user: Todd C. Miller date: Mon Mar 15 07:06:11 2010 -0400 Log Message: Use siglongjmp() in log_error for fatal errors diffstat: plugins/sudoers/logging.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) From Todd.Miller at courtesan.com Mon Mar 15 13:37:42 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 15 Mar 2010 13:37:42 -0400 Subject: [sudo-commits] sudo changeset 5122:7c9b09024b63 Message-ID: changeset: 5122:7c9b09024b63 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/7c9b09024b63 user: Todd C. Miller date: Mon Mar 15 07:14:45 2010 -0400 Log Message: Make _warning in error.c use the conversation function and remove commented out warning/warningx in sudoers.c. diffstat: plugins/sudoers/error.c | 47 ++++++++++++++++++++++++------------------ plugins/sudoers/sudoers.c | 51 +---------------------------------------------- 2 files changed, 28 insertions(+), 70 deletions(-) From Todd.Miller at courtesan.com Mon Mar 15 13:42:48 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 15 Mar 2010 13:42:48 -0400 Subject: [sudo-commits] sudo changeset 5123:7041c441e1c8 Message-ID: changeset: 5123:7041c441e1c8 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/7041c441e1c8 user: Todd C. Miller date: Mon Mar 15 13:42:40 2010 -0400 Log Message: Make this compile diffstat: plugins/sudoers/error.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Mon Mar 15 18:14:07 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 15 Mar 2010 18:14:07 -0400 Subject: [sudo-commits] sudo changeset 5124:61bee85128c8 Message-ID: changeset: 5124:61bee85128c8 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/61bee85128c8 user: Todd C. Miller date: Mon Mar 15 17:07:10 2010 -0400 Log Message: Set user_groups and user_ngroups based on user_info diffstat: plugins/sudoers/sudoers.c | 28 ++++++++++++++++++++++------ 1 files changed, 22 insertions(+), 6 deletions(-) From Todd.Miller at courtesan.com Mon Mar 15 18:14:08 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 15 Mar 2010 18:14:08 -0400 Subject: [sudo-commits] sudo changeset 5125:337dba3870a7 Message-ID: changeset: 5125:337dba3870a7 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/337dba3870a7 user: Todd C. Miller date: Mon Mar 15 18:13:06 2010 -0400 Log Message: Add missing newline after pass password warning diffstat: plugins/sudoers/auth/sudo_auth.c | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) From Todd.Miller at courtesan.com Mon Mar 15 18:14:09 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 15 Mar 2010 18:14:09 -0400 Subject: [sudo-commits] sudo changeset 5126:5a591aa8e744 Message-ID: changeset: 5126:5a591aa8e744 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/5a591aa8e744 user: Todd C. Miller date: Mon Mar 15 18:13:31 2010 -0400 Log Message: Add newline at the end of message and space after the colon in warning message diffstat: plugins/sudoers/error.c | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) From Todd.Miller at courtesan.com Mon Mar 15 18:14:10 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 15 Mar 2010 18:14:10 -0400 Subject: [sudo-commits] sudo changeset 5127:27cc35699eca Message-ID: changeset: 5127:27cc35699eca in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/27cc35699eca user: Todd C. Miller date: Mon Mar 15 18:13:58 2010 -0400 Log Message: Wire up policy_list diffstat: plugins/sudoers/sudoers.c | 54 ++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 44 insertions(+), 10 deletions(-) From Todd.Miller at courtesan.com Mon Mar 15 19:41:21 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 15 Mar 2010 19:41:21 -0400 Subject: [sudo-commits] sudo changeset 5128:43a45add9974 Message-ID: changeset: 5128:43a45add9974 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/43a45add9974 user: Todd C. Miller date: Mon Mar 15 19:40:15 2010 -0400 Log Message: Allow -k to be specified with a command. diffstat: src/parse_args.c | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) From Todd.Miller at courtesan.com Mon Mar 15 19:41:22 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 15 Mar 2010 19:41:22 -0400 Subject: [sudo-commits] sudo changeset 5129:edad239b098b Message-ID: changeset: 5129:edad239b098b in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/edad239b098b user: Todd C. Miller date: Mon Mar 15 19:41:15 2010 -0400 Log Message: Add support for -k flag with a command. diffstat: plugins/sudoers/check.c | 4 ++-- plugins/sudoers/sudoers.c | 2 +- plugins/sudoers/sudoers.h | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) From Todd.Miller at courtesan.com Mon Mar 15 20:25:01 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 15 Mar 2010 20:25:01 -0400 Subject: [sudo-commits] sudo changeset 5130:c0630c7bca47 Message-ID: changeset: 5130:c0630c7bca47 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/c0630c7bca47 user: Todd C. Miller date: Mon Mar 15 20:24:55 2010 -0400 Log Message: Wire up invalidate and validate methods for sudoers diffstat: plugins/sudoers/sudoers.c | 19 +++++++++++++++++-- src/sudo.c | 2 +- 2 files changed, 18 insertions(+), 3 deletions(-) From Todd.Miller at courtesan.com Tue Mar 16 08:41:44 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 16 Mar 2010 08:41:44 -0400 Subject: [sudo-commits] sudo changeset 5131:2bbc46a39a2b Message-ID: changeset: 5131:2bbc46a39a2b in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/2bbc46a39a2b user: Todd C. Miller date: Tue Mar 16 07:13:57 2010 -0400 Log Message: Don't update ticket file if verify_user returns FALSE. diffstat: plugins/sudoers/check.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Tue Mar 16 08:41:45 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 16 Mar 2010 08:41:45 -0400 Subject: [sudo-commits] sudo changeset 5132:1ab4719f509b Message-ID: changeset: 5132:1ab4719f509b in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/1ab4719f509b user: Todd C. Miller date: Tue Mar 16 07:41:41 2010 -0400 Log Message: Use conversation function for lecture. diffstat: plugins/sudoers/check.c | 33 +++++++++++++++++++++++---------- 1 files changed, 23 insertions(+), 10 deletions(-) From Todd.Miller at courtesan.com Tue Mar 16 08:41:46 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 16 Mar 2010 08:41:46 -0400 Subject: [sudo-commits] sudo changeset 5133:667b8ad575ce Message-ID: changeset: 5133:667b8ad575ce in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/667b8ad575ce user: Todd C. Miller date: Tue Mar 16 08:41:36 2010 -0400 Log Message: Pass the error value back via siglongjmp. diffstat: plugins/sudoers/error.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Tue Mar 16 08:50:10 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 16 Mar 2010 08:50:10 -0400 Subject: [sudo-commits] sudo changeset 5134:e4e3728ed482 Message-ID: changeset: 5134:e4e3728ed482 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/e4e3728ed482 user: Todd C. Miller date: Tue Mar 16 08:50:03 2010 -0400 Log Message: Kill dead code Add missing sigsetjmp in sudo_policy_invalidate Error out if we fail to lookup the user's name that is passed in diffstat: plugins/sudoers/sudoers.c | 73 ++++++++-------------------------------------- 1 files changed, 13 insertions(+), 60 deletions(-) From Todd.Miller at courtesan.com Wed Mar 17 08:36:31 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 17 Mar 2010 08:36:31 -0400 Subject: [sudo-commits] sudo changeset 5135:a2208dd09051 Message-ID: changeset: 5135:a2208dd09051 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/a2208dd09051 user: Todd C. Miller date: Wed Mar 17 08:36:17 2010 -0400 Log Message: Use TIOCGSIZE/TIOCSSIZE instead of TIOCGWINSZ/TIOCSWINSZ diffstat: src/script.c | 25 ++++++++++++++++--------- 1 files changed, 16 insertions(+), 9 deletions(-) From Todd.Miller at courtesan.com Wed Mar 17 10:44:26 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 17 Mar 2010 10:44:26 -0400 Subject: [sudo-commits] sudo changeset 5136:23f3d27e77a7 Message-ID: changeset: 5136:23f3d27e77a7 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/23f3d27e77a7 user: Todd C. Miller date: Wed Mar 17 10:36:02 2010 -0400 Log Message: Add tty size to user info diffstat: src/Makefile.in | 4 ++- src/sudo.c | 4 +++ src/sudo.h | 5 ++++ src/ttysize.c | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 82 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Wed Mar 17 10:44:26 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 17 Mar 2010 10:44:26 -0400 Subject: [sudo-commits] sudo changeset 5137:a808872394f3 Message-ID: changeset: 5137:a808872394f3 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/a808872394f3 user: Todd C. Miller date: Wed Mar 17 10:44:16 2010 -0400 Log Message: Document lines/cols in user_info diffstat: doc/sudo_plugin.cat | 124 ++++++++++++++++++++++++------------------------ doc/sudo_plugin.man.in | 10 +++- doc/sudo_plugin.pod | 10 +++ 3 files changed, 81 insertions(+), 63 deletions(-) From Todd.Miller at courtesan.com Wed Mar 17 18:48:25 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 17 Mar 2010 18:48:25 -0400 Subject: [sudo-commits] sudo changeset 5138:edad89924cd1 Message-ID: changeset: 5138:edad89924cd1 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/edad89924cd1 user: Todd C. Miller date: Wed Mar 17 18:48:19 2010 -0400 Log Message: Set the sudoers plugin name in configure so we get the extension right. diffstat: config.h.in | 3 +++ configure | 6 ++++++ configure.in | 2 ++ src/load_plugins.c | 4 ++-- 4 files changed, 13 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Wed Mar 17 19:56:33 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 17 Mar 2010 19:56:33 -0400 Subject: [sudo-commits] sudo changeset 5139:63601e6cb171 Message-ID: changeset: 5139:63601e6cb171 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/63601e6cb171 user: Todd C. Miller date: Wed Mar 17 19:56:27 2010 -0400 Log Message: Kill __P in sudoers diffstat: plugins/sudoers/alias.c | 2 +- plugins/sudoers/auth/dce.c | 2 +- plugins/sudoers/auth/kerb5.c | 2 +- plugins/sudoers/auth/pam.c | 4 +- plugins/sudoers/auth/sia.c | 2 +- plugins/sudoers/auth/sudo_auth.h | 68 ++++++++-------- plugins/sudoers/check.c | 10 +- plugins/sudoers/defaults.c | 24 +++--- plugins/sudoers/defaults.h | 12 +- plugins/sudoers/env.c | 5 +- plugins/sudoers/getdate.c | 98 +++++++++++------------- plugins/sudoers/getdate.y | 6 +- plugins/sudoers/gram.c | 10 +- plugins/sudoers/gram.y | 10 +- plugins/sudoers/interfaces.h | 4 +- plugins/sudoers/logging.c | 12 +- plugins/sudoers/logging.h | 13 +- plugins/sudoers/match.c | 8 +- plugins/sudoers/mon_systrace.h | 46 +++++------ plugins/sudoers/parse.c | 4 +- plugins/sudoers/parse.h | 44 +++++----- plugins/sudoers/pwutil.c | 22 ++-- plugins/sudoers/redblack.c | 17 ++-- plugins/sudoers/redblack.h | 17 ++-- plugins/sudoers/set_perms.c | 6 +- plugins/sudoers/sudo_nss.h | 20 ++-- plugins/sudoers/sudoers.c | 24 +++--- plugins/sudoers/sudoers.h | 154 +++++++++++++++++++------------------- plugins/sudoers/sudoreplay.c | 22 ++-- plugins/sudoers/testsudoers.c | 40 +++++----- plugins/sudoers/timestr.c | 2 +- plugins/sudoers/toke.c | 138 +++++++++++++++++----------------- plugins/sudoers/toke.l | 20 ++-- plugins/sudoers/tsgetgrpw.c | 24 +++--- plugins/sudoers/visudo.c | 34 ++++---- 35 files changed, 455 insertions(+), 471 deletions(-) From Todd.Miller at courtesan.com Wed Mar 17 21:25:38 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 17 Mar 2010 21:25:38 -0400 Subject: [sudo-commits] sudo changeset 5140:8a16635c2638 Message-ID: changeset: 5140:8a16635c2638 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/8a16635c2638 user: Todd C. Miller date: Wed Mar 17 21:25:32 2010 -0400 Log Message: Use number of tty columns that is passed in user_info instead of getting it directly in the lbuf code. diffstat: include/lbuf.h | 3 ++- plugins/sudoers/sudo_nss.c | 2 +- plugins/sudoers/sudoers.c | 8 ++++++++ plugins/sudoers/sudoers.h | 2 ++ src/lbuf.c | 36 +++++------------------------------- src/parse_args.c | 9 ++++----- src/sudo.c | 8 ++++---- 7 files changed, 26 insertions(+), 42 deletions(-) From Todd.Miller at courtesan.com Thu Mar 18 06:42:23 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 18 Mar 2010 06:42:23 -0400 Subject: [sudo-commits] sudo changeset 5141:6d261261a072 Message-ID: changeset: 5141:6d261261a072 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/6d261261a072 user: Todd C. Miller date: Thu Mar 18 06:42:17 2010 -0400 Log Message: Pass in output function to lbuf_init() instead of writing to stdout. A side effect is that the usage info can now go to stderr as it should. diffstat: include/lbuf.h | 13 +++++++------ plugins/sudoers/auth/sudo_auth.c | 2 -- plugins/sudoers/check.c | 2 -- plugins/sudoers/sudo_nss.c | 19 ++++++++++++++++++- plugins/sudoers/sudoers.c | 2 ++ plugins/sudoers/sudoers.h | 1 + src/lbuf.c | 26 +++++++++++++++----------- src/parse_args.c | 8 +++++++- 8 files changed, 50 insertions(+), 23 deletions(-) From Todd.Miller at courtesan.com Thu Mar 18 08:58:37 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 18 Mar 2010 08:58:37 -0400 Subject: [sudo-commits] sudo changeset 5142:37382df948de Message-ID: changeset: 5142:37382df948de in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/37382df948de user: Todd C. Miller date: Thu Mar 18 08:58:31 2010 -0400 Log Message: Include stdarg.h for va_list rather than requiring all consumers of missing.h to include stdarg.h themselves. diffstat: include/missing.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Thu Mar 18 11:42:20 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 18 Mar 2010 11:42:20 -0400 Subject: [sudo-commits] sudo changeset 5143:a4c6ebb2495c Message-ID: changeset: 5143:a4c6ebb2495c in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/a4c6ebb2495c user: Todd C. Miller date: Thu Mar 18 11:42:12 2010 -0400 Log Message: Play more nicely with libtool and let it build libreplace (was libmissing) for us. diffstat: compat/Makefile.in | 55 +++++++++++++------------------- configure | 75 ++++++++++++++++++++++---------------------- configure.in | 1 - plugins/sample/Makefile.in | 10 ++--- plugins/sudoers/Makefile.in | 10 ++--- src/Makefile.in | 10 +++--- 6 files changed, 73 insertions(+), 88 deletions(-) From Todd.Miller at courtesan.com Thu Mar 18 12:02:34 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 18 Mar 2010 12:02:34 -0400 Subject: [sudo-commits] sudo changeset 5144:f9bbd0c0e9d3 Message-ID: changeset: 5144:f9bbd0c0e9d3 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/f9bbd0c0e9d3 user: Todd C. Miller date: Thu Mar 18 12:02:05 2010 -0400 Log Message: Hard-code sudoers.so instead of using SUDOERS_PLUGIN since libtool appears to always install a shared object with the .so suffix. diffstat: config.h.in | 3 --- configure | 6 ------ configure.in | 2 -- src/load_plugins.c | 2 +- 4 files changed, 1 insertions(+), 12 deletions(-) From Todd.Miller at courtesan.com Fri Mar 19 07:32:20 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 19 Mar 2010 07:32:20 -0400 Subject: [sudo-commits] sudo changeset 5148:65f4ddf5545e Message-ID: changeset: 5148:65f4ddf5545e in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/65f4ddf5545e user: Todd C. Miller date: Fri Mar 19 07:31:42 2010 -0400 Log Message: Add missing whitespace for Runas and Command-specific defaults diffstat: plugins/sudoers/sudo_nss.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Fri Mar 19 07:32:21 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 19 Mar 2010 07:32:21 -0400 Subject: [sudo-commits] sudo changeset 5149:b64b633f426d Message-ID: changeset: 5149:b64b633f426d in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b64b633f426d user: Todd C. Miller date: Fri Mar 19 07:32:14 2010 -0400 Log Message: Fix --with-ldap diffstat: configure | 29 ++++++++++++++++------------- configure.in | 5 +++-- plugins/sudoers/Makefile.in | 4 +++- 3 files changed, 22 insertions(+), 16 deletions(-) From Todd.Miller at courtesan.com Fri Mar 19 07:52:37 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 19 Mar 2010 07:52:37 -0400 Subject: [sudo-commits] sudo changeset 5150:25d8663e6006 Message-ID: changeset: 5150:25d8663e6006 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/25d8663e6006 user: Todd C. Miller date: Fri Mar 19 07:52:31 2010 -0400 Log Message: Rewrite compat/getprogname.c and add setprogname(). The progname is now passed to the plugin via the settings array. diffstat: compat/getprogname.c | 40 ++++++++++++++++++---------------------- include/compat.h | 1 + plugins/sample/sample_plugin.c | 5 +++++ plugins/sudoers/sudoers.c | 8 ++++++-- src/parse_args.c | 7 ++++++- src/sudo.c | 14 ++++++-------- 6 files changed, 42 insertions(+), 33 deletions(-) From Todd.Miller at courtesan.com Fri Mar 19 07:56:11 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 19 Mar 2010 07:56:11 -0400 Subject: [sudo-commits] sudo changeset 5151:42031d56a2e3 Message-ID: changeset: 5151:42031d56a2e3 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/42031d56a2e3 user: Todd C. Miller date: Fri Mar 19 07:56:06 2010 -0400 Log Message: Document progname in settings diffstat: doc/sudo_plugin.cat | 206 ++++++++++++++++++++++++------------------------ doc/sudo_plugin.man.in | 5 +- doc/sudo_plugin.pod | 4 + 3 files changed, 111 insertions(+), 104 deletions(-) From Todd.Miller at courtesan.com Fri Mar 19 08:17:15 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 19 Mar 2010 08:17:15 -0400 Subject: [sudo-commits] sudo changeset 5152:0327a6c3d55d Message-ID: changeset: 5152:0327a6c3d55d in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/0327a6c3d55d user: Todd C. Miller date: Fri Mar 19 08:17:09 2010 -0400 Log Message: display_bound_defaults() stub should return 0, not 1 since it is a count, not a boolean. diffstat: plugins/sudoers/ldap.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Fri Mar 19 08:18:10 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 19 Mar 2010 08:18:10 -0400 Subject: [sudo-commits] sudo changeset 5153:622bf18179e9 Message-ID: changeset: 5153:622bf18179e9 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/622bf18179e9 user: Todd C. Miller date: Fri Mar 19 08:17:58 2010 -0400 Log Message: Better prefix determination now that we can't rely on len==0 to tell the beginning on an entry. diffstat: plugins/sudoers/parse.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Sun Mar 21 08:58:32 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 21 Mar 2010 08:58:32 -0400 Subject: [sudo-commits] sudo changeset 5154:2c56aaa38e21 Message-ID: changeset: 5154:2c56aaa38e21 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/2c56aaa38e21 user: Todd C. Miller date: Fri Mar 19 20:01:00 2010 -0400 Log Message: Bring back SUDOERS_PLUGIN but add .dylib -> .so conversion for Darwin where libraries end in .dylib but modules end in .so diffstat: config.h.in | 3 +++ configure | 12 ++++++++++++ configure.in | 8 ++++++++ src/load_plugins.c | 2 +- 4 files changed, 24 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Sun Mar 21 08:58:33 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 21 Mar 2010 08:58:33 -0400 Subject: [sudo-commits] sudo changeset 5155:bf889c38f229 Message-ID: changeset: 5155:bf889c38f229 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/bf889c38f229 user: Todd C. Miller date: Sun Mar 21 08:54:06 2010 -0400 Log Message: Fix the -s and -i flags and add support for the "implied_shell" option. If the user does not specify a command, sudo will now pass in the path to the user's shell and set impied_shell=true. The plugin can them either check the command normally or return -2 to cause sudo to print a usage message and exit. diffstat: doc/sudo_plugin.cat | 286 ++++++++++++++++++++++++++++----------------- doc/sudo_plugin.man.in | 11 +- doc/sudo_plugin.pod | 10 + plugins/sudoers/sudoers.c | 89 +++---------- plugins/sudoers/sudoers.h | 2 - src/parse_args.c | 63 ++++++++- src/sudo.c | 13 +- src/sudo.h | 4 + 8 files changed, 286 insertions(+), 192 deletions(-) From Todd.Miller at courtesan.com Sun Mar 21 08:58:34 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 21 Mar 2010 08:58:34 -0400 Subject: [sudo-commits] sudo changeset 5156:e9cb4c34bbcf Message-ID: changeset: 5156:e9cb4c34bbcf in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/e9cb4c34bbcf user: Todd C. Miller date: Sun Mar 21 08:58:13 2010 -0400 Log Message: Document the -2 return in the check_policy section too diffstat: TODO | 24 +++++++++++++++++++++--- doc/sudo_plugin.cat | 10 +++++----- doc/sudo_plugin.man.in | 12 +++++++----- doc/sudo_plugin.pod | 12 +++++++----- 4 files changed, 40 insertions(+), 18 deletions(-) From Todd.Miller at courtesan.com Sun Mar 21 12:58:23 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 21 Mar 2010 12:58:23 -0400 Subject: [sudo-commits] sudo changeset 5157:f6683cdcd2dd Message-ID: changeset: 5157:f6683cdcd2dd in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/f6683cdcd2dd user: Todd C. Miller date: Sun Mar 21 12:57:00 2010 -0400 Log Message: term.c does not needto include sudo.h diffstat: src/Makefile.in | 2 +- src/term.c | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) From Todd.Miller at courtesan.com Sun Mar 21 12:58:23 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 21 Mar 2010 12:58:23 -0400 Subject: [sudo-commits] sudo changeset 5158:9d581d5fa4d4 Message-ID: changeset: 5158:9d581d5fa4d4 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/9d581d5fa4d4 user: Todd C. Miller date: Sun Mar 21 12:58:14 2010 -0400 Log Message: Rename plugin-specific error.c to plugin_error.c Wire up visudo, sudoreplay and testsudoers in the build diffstat: plugins/sudoers/Makefile.in | 129 +++++++++++++++++++++++++++++++++------- plugins/sudoers/error.c | 105 --------------------------------- plugins/sudoers/plugin_error.c | 105 +++++++++++++++++++++++++++++++++ 3 files changed, 209 insertions(+), 130 deletions(-) From Todd.Miller at courtesan.com Mon Mar 22 19:40:04 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 22 Mar 2010 19:40:04 -0400 Subject: [sudo-commits] sudo changeset 5160:7420c5d15474 Message-ID: changeset: 5160:7420c5d15474 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/7420c5d15474 user: Todd C. Miller date: Mon Mar 22 08:11:06 2010 -0400 Log Message: Pass in preserve_groups when the -P flag is specified as per the design diffstat: src/parse_args.c | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Mon Mar 22 19:40:06 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 22 Mar 2010 19:40:06 -0400 Subject: [sudo-commits] sudo changeset 5162:e75315e40bd4 Message-ID: changeset: 5162:e75315e40bd4 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/e75315e40bd4 user: Todd C. Miller date: Mon Mar 22 08:26:05 2010 -0400 Log Message: Fix setting of groups list diffstat: src/sudo.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) From Todd.Miller at courtesan.com Mon Mar 22 19:40:05 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 22 Mar 2010 19:40:05 -0400 Subject: [sudo-commits] sudo changeset 5161:a62b8ba50863 Message-ID: changeset: 5161:a62b8ba50863 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/a62b8ba50863 user: Todd C. Miller date: Mon Mar 22 08:25:30 2010 -0400 Log Message: Add checks for getgrset and getgrouplist and use replacement getgrouplist if the system doesn't support it. diffstat: config.h.in | 6 + configure | 197 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ configure.in | 1 + include/compat.h | 8 ++ include/missing.h | 3 + 5 files changed, 215 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Mon Mar 22 19:40:07 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 22 Mar 2010 19:40:07 -0400 Subject: [sudo-commits] sudo changeset 5163:1266119ad654 Message-ID: changeset: 5163:1266119ad654 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/1266119ad654 user: Todd C. Miller date: Mon Mar 22 08:28:11 2010 -0400 Log Message: Set preserve_groups or groups list in command_info diffstat: plugins/sudoers/sudoers.c | 29 +++++++++++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Mon Mar 22 19:40:04 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 22 Mar 2010 19:40:04 -0400 Subject: [sudo-commits] sudo changeset 5159:71c905702697 Message-ID: changeset: 5159:71c905702697 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/71c905702697 user: Todd C. Miller date: Mon Mar 22 08:09:50 2010 -0400 Log Message: Check preserve_groups and ignore_ticket args with atobool instead of assuming they are true if present. diffstat: plugins/sudoers/sudoers.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Mon Mar 22 19:40:08 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 22 Mar 2010 19:40:08 -0400 Subject: [sudo-commits] sudo changeset 5164:5177a284b9ff Message-ID: changeset: 5164:5177a284b9ff in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/5177a284b9ff user: Todd C. Miller date: Mon Mar 22 09:50:06 2010 -0400 Log Message: Fix installation of sudoers.ldap in "make install" when --with-ldap was specified without a directory. From Prof. Dr. Andreas Mueller diffstat: configure | 2 +- configure.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Mon Mar 22 19:40:09 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 22 Mar 2010 19:40:09 -0400 Subject: [sudo-commits] sudo changeset 5165:4ab4d21e3b16 Message-ID: changeset: 5165:4ab4d21e3b16 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/4ab4d21e3b16 user: Todd C. Miller date: Mon Mar 22 09:54:10 2010 -0400 Log Message: getgrouplist(3) for those without it diffstat: compat/getgrouplist.c | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 86 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Mon Mar 22 19:40:10 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 22 Mar 2010 19:40:10 -0400 Subject: [sudo-commits] sudo changeset 5166:a8108a0776c2 Message-ID: changeset: 5166:a8108a0776c2 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/a8108a0776c2 user: Todd C. Miller date: Mon Mar 22 10:19:07 2010 -0400 Log Message: Merge 5177a284b9ff 549f8f7c2463 88f3181692fe from 1.7 branch. diffstat: configure | 2 +- configure.in | 2 +- plugins/sudoers/match.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Mon Mar 22 19:40:10 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 22 Mar 2010 19:40:10 -0400 Subject: [sudo-commits] sudo changeset 5167:b3c45a0cd643 Message-ID: changeset: 5167:b3c45a0cd643 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b3c45a0cd643 user: Todd C. Miller date: Mon Mar 22 18:08:17 2010 -0400 Log Message: Fix iteration over runas_groups list. diffstat: src/sudo.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Mon Mar 22 19:40:12 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 22 Mar 2010 19:40:12 -0400 Subject: [sudo-commits] sudo changeset 5169:1fd72024fb5a Message-ID: changeset: 5169:1fd72024fb5a in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/1fd72024fb5a user: Todd C. Miller date: Mon Mar 22 19:39:02 2010 -0400 Log Message: Fix typo in preserve groups case diffstat: plugins/sudoers/sudoers.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Mon Mar 22 19:40:11 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 22 Mar 2010 19:40:11 -0400 Subject: [sudo-commits] sudo changeset 5168:5c64dce4f285 Message-ID: changeset: 5168:5c64dce4f285 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/5c64dce4f285 user: Todd C. Miller date: Mon Mar 22 19:27:02 2010 -0400 Log Message: In command_info it is "runas_groups" not "groups". diffstat: plugins/sudoers/sudoers.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Mon Mar 22 19:55:55 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 22 Mar 2010 19:55:55 -0400 Subject: [sudo-commits] sudo changeset 5170:fbce3e9eda3a Message-ID: changeset: 5170:fbce3e9eda3a in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/fbce3e9eda3a user: Todd C. Miller date: Mon Mar 22 19:55:49 2010 -0400 Log Message: Add REPLAY_LIBS for sudoreplay and add -lrt to it on Solaris. diffstat: configure | 27 +++++++++++++++------------ configure.in | 3 ++- plugins/sudoers/Makefile.in | 3 ++- 3 files changed, 19 insertions(+), 14 deletions(-) From Todd.Miller at courtesan.com Tue Mar 23 05:22:24 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 23 Mar 2010 05:22:24 -0400 Subject: [sudo-commits] sudo changeset 5171:6281fcf9c3bb Message-ID: changeset: 5171:6281fcf9c3bb in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/6281fcf9c3bb user: Todd C. Miller date: Tue Mar 23 05:21:38 2010 -0400 Log Message: Fix off by one error when allocating user_groups. diffstat: plugins/sudoers/sudoers.c | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) From Todd.Miller at courtesan.com Sat Mar 27 20:19:47 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 27 Mar 2010 20:19:47 -0400 Subject: [sudo-commits] sudo changeset 5172:af7a995284f8 Message-ID: changeset: 5172:af7a995284f8 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/af7a995284f8 user: Todd C. Miller date: Sat Mar 27 09:12:48 2010 -0400 Log Message: Comment out dead code; will be removed when set_perms is rewritten. diffstat: plugins/sudoers/set_perms.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Sat Mar 27 20:19:48 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 27 Mar 2010 20:19:48 -0400 Subject: [sudo-commits] sudo changeset 5173:9bd932f66226 Message-ID: changeset: 5173:9bd932f66226 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/9bd932f66226 user: Todd C. Miller date: Sat Mar 27 20:19:40 2010 -0400 Log Message: Add back io logging (transcript) support. Currently, the open function runs too early and it is not possible to use the io module independently of the policy module. diffstat: plugins/sudoers/Makefile.in | 15 +- plugins/sudoers/iolog.c | 329 ++++++++++++++++++++++++++++++++++++++++++++ plugins/sudoers/set_perms.c | 2 + plugins/sudoers/sudoers.c | 12 +- plugins/sudoers/sudoers.h | 7 + 5 files changed, 352 insertions(+), 13 deletions(-) From Todd.Miller at courtesan.com Tue Mar 30 12:01:25 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 30 Mar 2010 12:01:25 -0400 Subject: [sudo-commits] sudo changeset 5174:f3297c325b48 Message-ID: changeset: 5174:f3297c325b48 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/f3297c325b48 user: Todd C. Miller date: Sun Mar 28 08:41:06 2010 -0400 Log Message: Delay calling the I/O plugin open function until the policy plugin returns success. diffstat: src/parse_args.c | 2 +- src/sudo.c | 27 ++++++++++++++------------- 2 files changed, 15 insertions(+), 14 deletions(-) From Todd.Miller at courtesan.com Tue Mar 30 12:06:37 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 30 Mar 2010 12:06:37 -0400 Subject: [sudo-commits] sudo changeset 5175:22da618ba0a1 Message-ID: changeset: 5175:22da618ba0a1 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/22da618ba0a1 user: Todd C. Miller date: Tue Mar 30 12:06:27 2010 -0400 Log Message: It looks like AIX doesn't need to push STREAMS modules for ptys. diffstat: src/pty.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Wed Mar 31 05:44:40 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 31 Mar 2010 05:44:40 -0400 Subject: [sudo-commits] sudo changeset 5176:ea38befd0742 Message-ID: changeset: 5176:ea38befd0742 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/ea38befd0742 user: Todd C. Miller date: Wed Mar 31 05:42:58 2010 -0400 Log Message: Load the sudoers I/O plugin by default too now that it is hooked up. diffstat: src/load_plugins.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Wed Mar 31 05:44:42 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 31 Mar 2010 05:44:42 -0400 Subject: [sudo-commits] sudo changeset 5177:ceb5e6c3b78b Message-ID: changeset: 5177:ceb5e6c3b78b in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/ceb5e6c3b78b user: Todd C. Miller date: Wed Mar 31 05:44:17 2010 -0400 Log Message: Move --tag=disable-static to when we link sudoers.la, not when we install. diffstat: plugins/sudoers/Makefile.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Wed Mar 31 10:36:51 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 31 Mar 2010 10:36:51 -0400 Subject: [sudo-commits] sudo changeset 5178:130228f062b7 Message-ID: changeset: 5178:130228f062b7 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/130228f062b7 user: Todd C. Miller date: Wed Mar 31 10:36:39 2010 -0400 Log Message: progname should be const diffstat: compat/getprogname.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Wed Mar 31 12:43:38 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 31 Mar 2010 12:43:38 -0400 Subject: [sudo-commits] sudo changeset 5179:9eba0115e35a Message-ID: changeset: 5179:9eba0115e35a in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/9eba0115e35a user: Todd C. Miller date: Wed Mar 31 12:43:26 2010 -0400 Log Message: Unlike most operating systems, HP-UX select() is not interrupted by SIGCHLD when the signal is registered with SA_RESTART. If we clear SA_RESTART when calling sigaction() for SIGCHLD we get the expected behavior and the code in the select() loops already handles EINTR correctly. diffstat: src/script.c | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) From Todd.Miller at courtesan.com Wed Mar 31 20:30:40 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 31 Mar 2010 20:30:40 -0400 Subject: [sudo-commits] sudo changeset 5180:aa1bcf5afcce Message-ID: changeset: 5180:aa1bcf5afcce in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/aa1bcf5afcce user: Todd C. Miller date: Wed Mar 31 20:30:34 2010 -0400 Log Message: Fix a sizeof(ptr) vs. sizeof(*ptr) diffstat: src/script.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)