From Todd.Miller at courtesan.com Mon May 3 10:13:02 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 03 May 2010 10:13:02 -0400 Subject: [sudo-commits] sudo changeset 5300:1a945e0ab2da Message-ID: changeset: 5300:1a945e0ab2da in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/1a945e0ab2da user: Todd C. Miller date: Mon May 03 10:12:54 2010 -0400 Log Message: Use pipes to the sudo process if stdout or stderr is not a tty. Still needs some polishing and a decision as to whether it is desirable to add additonal entry points for logging stdout/stderr/stdin when they are not ttys. That would allow a replay program to keep things separate and to know whether the terminal needs to be in raw mode at replay time. diffstat: src/script.c | 314 ++++++++++++++++++++++++++++++++-------------------------- 1 files changed, 172 insertions(+), 142 deletions(-) From Todd.Miller at courtesan.com Mon May 3 10:44:23 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 03 May 2010 10:44:23 -0400 Subject: [sudo-commits] sudo changeset 5301:f42811f70a19 Message-ID: changeset: 5301:f42811f70a19 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/f42811f70a19 user: Todd C. Miller date: Mon May 03 10:41:26 2010 -0400 Log Message: Do not need the opost flag to term_copy() now that we use pipes for stdout/stderr when they are not a tty. diffstat: src/script.c | 4 ++-- src/sudo.h | 2 +- src/term.c | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) From Todd.Miller at courtesan.com Mon May 3 17:57:15 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 03 May 2010 17:57:15 -0400 Subject: [sudo-commits] sudo changeset 5302:b1fa2861b575 Message-ID: changeset: 5302:b1fa2861b575 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b1fa2861b575 user: Todd C. Miller date: Mon May 03 16:53:05 2010 -0400 Log Message: Add print_error() function that uses the conversation function to print a variable number of error strings and use it in log_error(). diffstat: plugins/sudoers/logging.c | 35 +++++++++++---------- plugins/sudoers/plugin_error.c | 68 +++++++++++++++++++++++++++++------------ plugins/sudoers/sudoers.h | 3 + 3 files changed, 69 insertions(+), 37 deletions(-) From Todd.Miller at courtesan.com Mon May 3 17:57:16 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 03 May 2010 17:57:16 -0400 Subject: [sudo-commits] sudo changeset 5303:df53697174ec Message-ID: changeset: 5303:df53697174ec in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/df53697174ec user: Todd C. Miller date: Mon May 03 17:56:06 2010 -0400 Log Message: No longer need strdup() or strndup() replacements. diffstat: compat/Makefile.in | 2 - compat/strdup.c | 52 --------------------------------------------------- compat/strndup.c | 55 ------------------------------------------------------ 3 files changed, 0 insertions(+), 109 deletions(-) From Todd.Miller at courtesan.com Mon May 3 18:02:29 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 03 May 2010 18:02:29 -0400 Subject: [sudo-commits] sudo changeset 5304:d142e0cacb22 Message-ID: changeset: 5304:d142e0cacb22 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/d142e0cacb22 user: Todd C. Miller date: Mon May 03 18:02:19 2010 -0400 Log Message: Use print_error() when displaying ldap config info in debugging mode. diffstat: plugins/sudoers/ldap.c | 88 +++++++++++++++++++++++++++---------------------- 1 files changed, 49 insertions(+), 39 deletions(-) From Todd.Miller at courtesan.com Tue May 4 09:09:02 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 04 May 2010 09:09:02 -0400 Subject: [sudo-commits] sudo changeset 5305:20ff67218666 Message-ID: changeset: 5305:20ff67218666 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/20ff67218666 user: Todd C. Miller date: Tue May 04 09:09:12 2010 -0400 Log Message: Only set user's tty to blocking mode when doing the final flush. Flush pipes as well as pty master when the process is done. diffstat: src/script.c | 58 ++++++++++++++++++++++++++++++++++------------------------ 1 files changed, 34 insertions(+), 24 deletions(-) From Todd.Miller at courtesan.com Wed May 5 13:20:07 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 05 May 2010 13:20:07 -0400 Subject: [sudo-commits] sudo changeset 5306:228bb3ad2dbc Message-ID: changeset: 5306:228bb3ad2dbc in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/228bb3ad2dbc user: Todd C. Miller date: Tue May 04 15:13:40 2010 -0400 Log Message: Stop if make in a subdir fails diffstat: Makefile.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Wed May 5 13:20:08 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 05 May 2010 13:20:08 -0400 Subject: [sudo-commits] sudo changeset 5307:98734eea8ef1 Message-ID: changeset: 5307:98734eea8ef1 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/98734eea8ef1 user: Todd C. Miller date: Tue May 04 19:17:31 2010 -0400 Log Message: Add pointer to a printf like function to plugin open functon. This can be used instead of the conversation function to display info and error messages. diffstat: include/sudo_plugin.h | 9 +- plugins/sample/sample_plugin.c | 80 ++++++++++---------------- plugins/sudoers/iolog.c | 5 +- plugins/sudoers/ldap.c | 121 ++++++++++++++++++++++------------------ plugins/sudoers/logging.c | 27 ++++---- plugins/sudoers/plugin_error.c | 25 -------- plugins/sudoers/sudoers.c | 10 ++- plugins/sudoers/sudoers.h | 7 +- src/conversation.c | 30 +++++++++- src/sudo.c | 8 +- src/sudo_plugin_int.h | 1 + 11 files changed, 163 insertions(+), 160 deletions(-) From Todd.Miller at courtesan.com Wed May 5 13:20:10 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 05 May 2010 13:20:10 -0400 Subject: [sudo-commits] sudo changeset 5309:04c9c59fcfba Message-ID: changeset: 5309:04c9c59fcfba in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/04c9c59fcfba user: Todd C. Miller date: Wed May 05 09:47:12 2010 -0400 Log Message: Add support for logging stdin when it is not a tty. There is still a bug where "cat | sudo cat" has problems because both cat and sudo are trying to read from the tty. diffstat: src/script.c | 93 ++++++++++++++++++++++++++++++++++++----------------------- 1 files changed, 57 insertions(+), 36 deletions(-) From Todd.Miller at courtesan.com Wed May 5 13:20:09 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 05 May 2010 13:20:09 -0400 Subject: [sudo-commits] sudo changeset 5308:a36dfd4ca935 Message-ID: changeset: 5308:a36dfd4ca935 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/a36dfd4ca935 user: Todd C. Miller date: Wed May 05 07:29:28 2010 -0400 Log Message: Add separate I/O logging functions for tty in/out and stdin/stdout/stderr. NOTE: stdin logging does not currently work and is disabled for now. diffstat: include/sudo_plugin.h | 7 +- plugins/sample/sample_plugin.c | 11 ++- plugins/sudoers/sudoers.c | 7 +- src/script.c | 132 ++++++++++++++++++++++++++++++++++------ 4 files changed, 131 insertions(+), 26 deletions(-) From Todd.Miller at courtesan.com Wed May 5 13:22:27 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 05 May 2010 13:22:27 -0400 Subject: [sudo-commits] sudo changeset 5310:fe9430b60ab5 Message-ID: changeset: 5310:fe9430b60ab5 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/fe9430b60ab5 user: Todd C. Miller date: Wed May 05 13:22:21 2010 -0400 Log Message: Document plugin_printf and new logging functions. diffstat: doc/sudo_plugin.cat | 504 +++++++++++++++++++++++++++--------------------- doc/sudo_plugin.man.in | 252 +++++++++++++++++------ doc/sudo_plugin.pod | 247 +++++++++++++++++------ 3 files changed, 653 insertions(+), 350 deletions(-) From Todd.Miller at courtesan.com Wed May 5 13:25:37 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 05 May 2010 13:25:37 -0400 Subject: [sudo-commits] sudo changeset 5311:b1ead182428e Message-ID: changeset: 5311:b1ead182428e in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b1ead182428e user: Todd C. Miller date: Wed May 05 13:25:29 2010 -0400 Log Message: audit files moved to sudoers plugin directory diffstat: MANIFEST | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) From Todd.Miller at courtesan.com Wed May 5 16:11:21 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 05 May 2010 16:11:21 -0400 Subject: [sudo-commits] sudo changeset 5312:5f38bfa8497f Message-ID: changeset: 5312:5f38bfa8497f in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/5f38bfa8497f user: Todd C. Miller date: Wed May 05 16:11:13 2010 -0400 Log Message: Go back to reseting io_buffer offset and length (and now also the EOF handling) in the loop we do the FD_SET, not after we drain the buffer after write() since we don't know what order reads and writes will occur in. diffstat: src/script.c | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) From Todd.Miller at courtesan.com Wed May 5 16:19:07 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 05 May 2010 16:19:07 -0400 Subject: [sudo-commits] sudo changeset 5313:c253729790b2 Message-ID: changeset: 5313:c253729790b2 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/c253729790b2 user: Todd C. Miller date: Wed May 05 16:19:02 2010 -0400 Log Message: Install sudo_plugin man page. diffstat: doc/Makefile.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Thu May 6 10:54:27 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 06 May 2010 10:54:27 -0400 Subject: [sudo-commits] sudo changeset 5314:6cc490083bc7 Message-ID: changeset: 5314:6cc490083bc7 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/6cc490083bc7 user: Todd C. Miller date: Thu May 06 10:54:21 2010 -0400 Log Message: Quest now sponsors Sudo development diffstat: doc/HISTORY | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Fri May 7 10:14:28 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 07 May 2010 10:14:28 -0400 Subject: [sudo-commits] sudo changeset 5315:8db9b611b45a Message-ID: changeset: 5315:8db9b611b45a in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/8db9b611b45a user: Todd C. Miller date: Fri May 07 10:14:12 2010 -0400 Log Message: Free memory after we are done with it. diffstat: src/script.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Fri May 7 10:15:35 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 07 May 2010 10:15:35 -0400 Subject: [sudo-commits] sudo changeset 5316:c627feee1035 Message-ID: changeset: 5316:c627feee1035 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/c627feee1035 user: Todd C. Miller date: Fri May 07 10:15:25 2010 -0400 Log Message: Flush the iobufs on suspend or child exit using the same logic as the main event loop. diffstat: src/script.c | 187 +++++++++++++++++++++++++++++++++------------------------- 1 files changed, 107 insertions(+), 80 deletions(-) From Todd.Miller at courtesan.com Mon May 10 17:23:45 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 10 May 2010 17:23:45 -0400 Subject: [sudo-commits] sudo changeset 5317:bebb6209c795 Message-ID: changeset: 5317:bebb6209c795 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/bebb6209c795 user: Todd C. Miller date: Mon May 10 15:02:50 2010 -0400 Log Message: Do signal setup after turning off echo, not before. If we are using a tty but are not the foreground pgrp this will generate SIGTTOU so we want the default action to be taken (suspend process). diffstat: src/tgetpass.c | 35 ++++++++++++++++++----------------- 1 files changed, 18 insertions(+), 17 deletions(-) From Todd.Miller at courtesan.com Mon May 10 17:23:46 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 10 May 2010 17:23:46 -0400 Subject: [sudo-commits] sudo changeset 5318:2ac726dac864 Message-ID: changeset: 5318:2ac726dac864 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/2ac726dac864 user: Todd C. Miller date: Mon May 10 15:13:48 2010 -0400 Log Message: Use an array for signals received instead of a single variable so we don't lose any when there are multiple different signals. diffstat: src/tgetpass.c | 39 ++++++++++++++++++++++++++++----------- 1 files changed, 28 insertions(+), 11 deletions(-) From Todd.Miller at courtesan.com Mon May 10 17:23:47 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 10 May 2010 17:23:47 -0400 Subject: [sudo-commits] sudo changeset 5319:e68315cf8c6b Message-ID: changeset: 5319:e68315cf8c6b in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/e68315cf8c6b user: Todd C. Miller date: Mon May 10 17:23:35 2010 -0400 Log Message: No need to use pseudo-cbreak mode now that we use pipes when stdout is not a tty. Instead, check whether stdin is a tty and if not, delay setting the tty to raw mode until the command tries to access it itself (and receives SIGTTIN or SIGTTOU). diffstat: plugins/sudoers/sudoreplay.c | 4 ++-- src/script.c | 42 +++++++++++++++++++++++------------------- src/sudo.h | 2 +- src/term.c | 5 +---- 4 files changed, 27 insertions(+), 26 deletions(-) From Todd.Miller at courtesan.com Tue May 11 09:00:45 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 11 May 2010 09:00:45 -0400 Subject: [sudo-commits] sudo changeset 5320:d93bc33a3740 Message-ID: changeset: 5320:d93bc33a3740 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/d93bc33a3740 user: Todd C. Miller date: Tue May 11 08:12:02 2010 -0400 Log Message: Also start the command in the background if stdin is not a tty. diffstat: src/script.c | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) From Todd.Miller at courtesan.com Tue May 11 09:00:46 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 11 May 2010 09:00:46 -0400 Subject: [sudo-commits] sudo changeset 5321:3f6b1991f4fd Message-ID: changeset: 5321:3f6b1991f4fd in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/3f6b1991f4fd user: Todd C. Miller date: Tue May 11 08:59:59 2010 -0400 Log Message: Fix SIGPIPE handling. Now that we use may use pipes for stdin/stdout we need to pass any SIGPIPE we receive to the running command. diffstat: src/script.c | 31 +++++++++++++++++++------------ 1 files changed, 19 insertions(+), 12 deletions(-) From Todd.Miller at courtesan.com Tue May 11 10:07:23 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 11 May 2010 10:07:23 -0400 Subject: [sudo-commits] sudo changeset 5322:dd5464257c69 Message-ID: changeset: 5322:dd5464257c69 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/dd5464257c69 user: Todd C. Miller date: Tue May 11 10:07:12 2010 -0400 Log Message: Remove errant backslash diffstat: doc/Makefile.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Tue May 11 12:11:10 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 11 May 2010 12:11:10 -0400 Subject: [sudo-commits] sudo changeset 5323:910fe727a374 Message-ID: changeset: 5323:910fe727a374 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/910fe727a374 user: Todd C. Miller date: Tue May 11 10:55:59 2010 -0400 Log Message: Add separate test for getresuid() since HP-UX has setresuid() but no getresuid(). diffstat: config.h.in | 3 + configure | 252 ++++++++++++++++++++++++++++++------------- configure.in | 5 +- plugins/sudoers/set_perms.c | 11 +- 4 files changed, 193 insertions(+), 78 deletions(-) From Todd.Miller at courtesan.com Tue May 11 12:11:11 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 11 May 2010 12:11:11 -0400 Subject: [sudo-commits] sudo changeset 5324:d42139391263 Message-ID: changeset: 5324:d42139391263 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/d42139391263 user: Todd C. Miller date: Tue May 11 12:11:03 2010 -0400 Log Message: Link with -lpthread on HP-UX since a plugin may be linked with -lpthread and dlopen() will fail if the shared object has a dependency on -lpthread but the main program is not linked with it. diffstat: configure | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ configure.in | 11 +++++++++ 2 files changed, 80 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Tue May 11 12:18:46 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 11 May 2010 12:18:46 -0400 Subject: [sudo-commits] sudo changeset 5325:1974f342ae0b Message-ID: changeset: 5325:1974f342ae0b in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/1974f342ae0b user: Todd C. Miller date: Tue May 11 12:18:41 2010 -0400 Log Message: audit.c is now private to the sudoers plugin diffstat: plugins/sudoers/Makefile.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Tue May 11 13:08:48 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 11 May 2010 13:08:48 -0400 Subject: [sudo-commits] sudo changeset 5326:6b4639fef973 Message-ID: changeset: 5326:6b4639fef973 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/6b4639fef973 user: Todd C. Miller date: Tue May 11 13:08:41 2010 -0400 Log Message: Fix timestamp removal with -k/-K diffstat: plugins/sudoers/check.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Tue May 11 13:21:57 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 11 May 2010 13:21:57 -0400 Subject: [sudo-commits] sudo changeset 5327:63bdcf579533 Message-ID: changeset: 5327:63bdcf579533 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/63bdcf579533 user: Todd C. Miller date: Tue May 11 13:21:50 2010 -0400 Log Message: Add check for whether sudo need to link with -ldl to get dlopen(). This is a bit of a hack that will get reworked when libtool is updated. diffstat: configure | 72 ++++++++--------------------------------------------------- configure.in | 15 ++++++++---- 2 files changed, 20 insertions(+), 67 deletions(-) From Todd.Miller at courtesan.com Tue May 11 13:34:01 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 11 May 2010 13:34:01 -0400 Subject: [sudo-commits] sudo changeset 5328:df50f0a040c9 Message-ID: changeset: 5328:df50f0a040c9 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/df50f0a040c9 user: Todd C. Miller date: Tue May 11 13:33:42 2010 -0400 Log Message: Fix pasto in mulitple signal fix and use _NSIG not NSIG since that is what our compat checks set. diffstat: src/tgetpass.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Tue May 11 14:25:22 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 11 May 2010 14:25:22 -0400 Subject: [sudo-commits] sudo changeset 5329:0e62a31bceb0 Message-ID: changeset: 5329:0e62a31bceb0 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/0e62a31bceb0 user: Todd C. Miller date: Tue May 11 14:25:14 2010 -0400 Log Message: If the tty lives on a devpts filesystem, stash the ctime in the tty ticket file, as it is not updated when the tty is written to. This helps us determine when a tty has been reused without the user authenticating again with sudo. diffstat: plugins/sudoers/check.c | 47 +++++++++++++++++++++++++++++++++-------------- 1 files changed, 33 insertions(+), 14 deletions(-) From Todd.Miller at courtesan.com Tue May 11 15:33:59 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 11 May 2010 15:33:59 -0400 Subject: [sudo-commits] sudo changeset 5331:2b86120815b2 Message-ID: changeset: 5331:2b86120815b2 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/2b86120815b2 user: Todd C. Miller date: Tue May 11 15:33:47 2010 -0400 Log Message: Document time stamp shortcomings under SECURITY NOTES Use "time stamp" instead of timestamp. diffstat: doc/sudo.cat | 172 ++++++++++++++++++++++++++++---------------------------- doc/sudo.man.in | 52 +++++++++++----- doc/sudo.pod | 48 ++++++++++---- 3 files changed, 154 insertions(+), 118 deletions(-) From Todd.Miller at courtesan.com Tue May 11 15:33:58 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 11 May 2010 15:33:58 -0400 Subject: [sudo-commits] sudo changeset 5330:94588632dba0 Message-ID: changeset: 5330:94588632dba0 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/94588632dba0 user: Todd C. Miller date: Tue May 11 15:33:08 2010 -0400 Log Message: Make sed substitution of mansectsu and mansectform global. diffstat: doc/Makefile.in | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) From Todd.Miller at courtesan.com Wed May 12 08:32:20 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 12 May 2010 08:32:20 -0400 Subject: [sudo-commits] sudo changeset 5332:7ae02b3029b5 Message-ID: changeset: 5332:7ae02b3029b5 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/7ae02b3029b5 user: Todd C. Miller date: Wed May 12 08:31:29 2010 -0400 Log Message: Initialize env_len in env_init() diffstat: plugins/sudoers/env.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Wed May 12 08:32:20 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 12 May 2010 08:32:20 -0400 Subject: [sudo-commits] sudo changeset 5333:5f82601f5ab0 Message-ID: changeset: 5333:5f82601f5ab0 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/5f82601f5ab0 user: Todd C. Miller date: Wed May 12 08:32:12 2010 -0400 Log Message: Call env_init() before we open the sudoers sources as those may call our setenv() replacement. diffstat: plugins/sudoers/sudoers.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) From Todd.Miller at courtesan.com Wed May 12 12:09:05 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 12 May 2010 12:09:05 -0400 Subject: [sudo-commits] sudo changeset 5334:99adc5ea7f0a Message-ID: changeset: 5334:99adc5ea7f0a in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/99adc5ea7f0a user: Todd C. Miller date: Wed May 12 11:13:40 2010 -0400 Log Message: Avoid a potential race condition if SIGCHLD is received immediately before we call select(). diffstat: src/script.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Thu May 13 10:45:34 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 13 May 2010 10:45:34 -0400 Subject: [sudo-commits] sudo changeset 5335:0e3783e63534 Message-ID: changeset: 5335:0e3783e63534 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/0e3783e63534 user: Todd C. Miller date: Thu May 13 10:20:40 2010 -0400 Log Message: Add version of getenv(3) that uses our own environ pointer. diffstat: plugins/sudoers/env.c | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Thu May 13 10:45:34 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 13 May 2010 10:45:34 -0400 Subject: [sudo-commits] sudo changeset 5336:9c23101a094d Message-ID: changeset: 5336:9c23101a094d in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/9c23101a094d user: Todd C. Miller date: Thu May 13 10:27:03 2010 -0400 Log Message: Make find_path() a little more generic by not checking def_foo variables inside it. Instead, pass in ignore_dot as a function argument. diffstat: plugins/sudoers/find_path.c | 10 ++++------ plugins/sudoers/sudoers.c | 9 +++++++-- plugins/sudoers/sudoers.h | 2 +- plugins/sudoers/visudo.c | 2 +- 4 files changed, 13 insertions(+), 10 deletions(-) From Todd.Miller at courtesan.com Thu May 13 14:10:10 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 13 May 2010 14:10:10 -0400 Subject: [sudo-commits] sudo changeset 5337:c31262a31997 Message-ID: changeset: 5337:c31262a31997 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/c31262a31997 user: Todd C. Miller date: Thu May 13 14:09:21 2010 -0400 Log Message: Work in progress support for sudoedit. The actual interface used by the plugin for sudoedit is likely to change. diffstat: include/sudo_plugin.h | 3 + plugins/sample/sample_plugin.c | 3 +- plugins/sudoers/Makefile.in | 6 +- plugins/sudoers/gettime.c | 43 ------ plugins/sudoers/set_perms.c | 2 +- plugins/sudoers/sudoers.c | 114 +++++++++++++++- src/Makefile.in | 9 +- src/gettime.c | 43 ++++++ src/parse_args.c | 7 + src/sudo.c | 36 +++- src/sudo.h | 22 +- src/sudo_edit.c | 280 +++++++++++++++++----------------------- 12 files changed, 322 insertions(+), 246 deletions(-) From Todd.Miller at courtesan.com Thu May 13 17:50:06 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 13 May 2010 17:50:06 -0400 Subject: [sudo-commits] sudo changeset 5338:20623d549a3c Message-ID: changeset: 5338:20623d549a3c in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/20623d549a3c user: Todd C. Miller date: Thu May 13 17:11:31 2010 -0400 Log Message: Change how we handle the sudoedit argv. We now require that there be a "--" in argv to separate the editor and any command line arguments from the files to be edited. diffstat: plugins/sudoers/sudoers.c | 19 +++++++----- src/sudo.c | 2 +- src/sudo.h | 3 +- src/sudo_edit.c | 66 +++++++++++++++++++++++++++------------------- 4 files changed, 51 insertions(+), 39 deletions(-) From Todd.Miller at courtesan.com Thu May 13 17:50:07 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 13 May 2010 17:50:07 -0400 Subject: [sudo-commits] sudo changeset 5339:4cbf5196d993 Message-ID: changeset: 5339:4cbf5196d993 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/4cbf5196d993 user: Todd C. Miller date: Thu May 13 17:49:52 2010 -0400 Log Message: Document sudoedit diffstat: doc/sudo_plugin.cat | 258 ++++++++++++++++++++++++++++++------------------ doc/sudo_plugin.man.in | 35 ++++++- doc/sudo_plugin.pod | 32 ++++++ 3 files changed, 228 insertions(+), 97 deletions(-) From Todd.Miller at courtesan.com Thu May 13 20:10:33 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 13 May 2010 20:10:33 -0400 Subject: [sudo-commits] sudo changeset 5340:f6e47843d139 Message-ID: changeset: 5340:f6e47843d139 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/f6e47843d139 user: Todd C. Miller date: Thu May 13 20:10:21 2010 -0400 Log Message: Fix compilation on HP-UX diffstat: src/sudo_edit.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Fri May 14 09:39:08 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 14 May 2010 09:39:08 -0400 Subject: [sudo-commits] sudo changeset 5341:d39dfaa14ade Message-ID: changeset: 5341:d39dfaa14ade in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/d39dfaa14ade user: Todd C. Miller date: Fri May 14 09:39:01 2010 -0400 Log Message: Clarify sudoedit a tad. diffstat: doc/sudo_plugin.cat | 60 +++++++++++++++++++++++++------------------------- doc/sudo_plugin.man.in | 26 +++++++++++---------- doc/sudo_plugin.pod | 24 ++++++++++--------- 3 files changed, 57 insertions(+), 53 deletions(-) From Todd.Miller at courtesan.com Fri May 14 16:44:07 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 14 May 2010 16:44:07 -0400 Subject: [sudo-commits] sudo changeset 5342:8e9ba4083318 Message-ID: changeset: 5342:8e9ba4083318 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/8e9ba4083318 user: Todd C. Miller date: Fri May 14 16:35:03 2010 -0400 Log Message: Attempt to fix building on systems that only have setuid. diffstat: src/parse_args.c | 6 +++++- src/sudo_edit.c | 21 ++++++++++++++++++--- 2 files changed, 23 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Fri May 14 16:44:08 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 14 May 2010 16:44:08 -0400 Subject: [sudo-commits] sudo changeset 5343:36e8efa3a99d Message-ID: changeset: 5343:36e8efa3a99d in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/36e8efa3a99d user: Todd C. Miller date: Fri May 14 16:43:55 2010 -0400 Log Message: Emulate seteuid using setreuid() or setresuid() as needed. There are still a few places that call seteuid() directly. diffstat: include/compat.h | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Fri May 14 16:49:34 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 14 May 2010 16:49:34 -0400 Subject: [sudo-commits] sudo changeset 5344:3ccb0f853d11 Message-ID: changeset: 5344:3ccb0f853d11 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/3ccb0f853d11 user: Todd C. Miller date: Fri May 14 16:49:22 2010 -0400 Log Message: Fix typo introduced in last commit diffstat: include/compat.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Fri May 14 18:31:39 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 14 May 2010 18:31:39 -0400 Subject: [sudo-commits] sudo changeset 5345:45e406ebdea2 Message-ID: changeset: 5345:45e406ebdea2 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/45e406ebdea2 user: Todd C. Miller date: Fri May 14 18:31:21 2010 -0400 Log Message: Rely more on VPATH; fixes a dependency issue with the parser. diffstat: plugins/sudoers/Makefile.in | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) From Todd.Miller at courtesan.com Sat May 15 07:52:10 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 15 May 2010 07:52:10 -0400 Subject: [sudo-commits] sudo changeset 5346:a1a6cc4c0cef Message-ID: changeset: 5346:a1a6cc4c0cef in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/a1a6cc4c0cef user: Todd C. Miller date: Sat May 15 07:51:24 2010 -0400 Log Message: Add sudoedit support diffstat: plugins/sample/sample_plugin.c | 182 +++++++++++++++++++++++++++++++++++++++- 1 files changed, 175 insertions(+), 7 deletions(-) From Todd.Miller at courtesan.com Sat May 15 11:51:35 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 15 May 2010 11:51:35 -0400 Subject: [sudo-commits] sudo changeset 5347:ac4d366a04cf Message-ID: changeset: 5347:ac4d366a04cf in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/ac4d366a04cf user: Todd C. Miller date: Sat May 15 11:51:00 2010 -0400 Log Message: Refactor common bits of check_policy and check_edit diffstat: plugins/sample/sample_plugin.c | 147 +++++++++++++++++----------------------- 1 files changed, 63 insertions(+), 84 deletions(-) From Todd.Miller at courtesan.com Sat May 15 15:12:20 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 15 May 2010 15:12:20 -0400 Subject: [sudo-commits] sudo changeset 5348:9db4b767fdca Message-ID: changeset: 5348:9db4b767fdca in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/9db4b767fdca user: Todd C. Miller date: Sat May 15 15:12:06 2010 -0400 Log Message: gram.h must not depend on gram.y if we want to avoid unnecessary rebuilding of targets dependent on gram.h when gram.y changes. diffstat: plugins/sudoers/Makefile.in | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Sun May 16 19:27:17 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 16 May 2010 19:27:17 -0400 Subject: [sudo-commits] sudo changeset 5349:96d67b99e42e Message-ID: changeset: 5349:96d67b99e42e in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/96d67b99e42e user: Todd C. Miller date: Sun May 16 19:27:04 2010 -0400 Log Message: If plugin sets "sudoedit=true" in the command info, enable sudoedit mode even if not invoked as sudoedit. This allows a plugin to enable sudoedit when the user runs an editor. diffstat: plugins/sample/sample_plugin.c | 101 ++++++++++++++++++++++++---------------- src/sudo.c | 11 +++- src/sudo.h | 1 + src/sudo_edit.c | 12 ---- 4 files changed, 70 insertions(+), 55 deletions(-) From Todd.Miller at courtesan.com Mon May 17 10:25:36 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 17 May 2010 10:25:36 -0400 Subject: [sudo-commits] sudo changeset 5350:c0328e3276b8 Message-ID: changeset: 5350:c0328e3276b8 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/c0328e3276b8 user: Todd C. Miller date: Mon May 17 10:25:27 2010 -0400 Log Message: Remove check_sudoedit function pointer in struct sudo_policy. Instead, sudo will set sudoedit=true in the settings array. The plugin should check for this and modify argv_out as appropriate in check_policy. diffstat: doc/sudo_plugin.man.in | 88 +++++++++++++++++++++-------------------- doc/sudo_plugin.pod | 83 +++++++++++++++++++-------------------- include/sudo_plugin.h | 3 - plugins/sample/sample_plugin.c | 61 ++++++++--------------------- plugins/sudoers/sudoers.c | 19 +++----- src/parse_args.c | 9 +++- src/sudo.c | 18 +------- src/sudo_edit.c | 4 +- 8 files changed, 121 insertions(+), 164 deletions(-) From Todd.Miller at courtesan.com Mon May 17 10:39:10 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 17 May 2010 10:39:10 -0400 Subject: [sudo-commits] sudo changeset 5351:0d7faa007d27 Message-ID: changeset: 5351:0d7faa007d27 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/0d7faa007d27 user: Todd C. Miller date: Mon May 17 10:38:56 2010 -0400 Log Message: Add argc and argv to I/O logger open function. diffstat: doc/sudo_plugin.cat | 328 ++++++++++++++++++++-------------------- doc/sudo_plugin.man.in | 17 +- doc/sudo_plugin.pod | 17 +- include/sudo_plugin.h | 3 +- plugins/sample/sample_plugin.c | 3 +- plugins/sudoers/iolog.c | 4 +- plugins/sudoers/sudoers.h | 3 +- src/sudo.c | 4 +- 8 files changed, 204 insertions(+), 175 deletions(-) From Todd.Miller at courtesan.com Tue May 18 17:43:16 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 18 May 2010 17:43:16 -0400 Subject: [sudo-commits] sudo changeset 5352:666621635d26 Message-ID: changeset: 5352:666621635d26 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/666621635d26 user: Todd C. Miller date: Tue May 18 17:43:10 2010 -0400 Log Message: Now that we can use pipes for stdin/stdout/stderr there is no longer a need to error out when there is no tty. We just need to make sure we don't try to use the tty fd if it is -1. diffstat: src/script.c | 102 ++++++++++++++++++++++++++++++++++------------------------ 1 files changed, 59 insertions(+), 43 deletions(-) From Todd.Miller at courtesan.com Tue May 18 18:50:27 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 18 May 2010 18:50:27 -0400 Subject: [sudo-commits] sudo changeset 5353:8139cbd3dd54 Message-ID: changeset: 5353:8139cbd3dd54 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/8139cbd3dd54 user: Todd C. Miller date: Tue May 18 18:50:20 2010 -0400 Log Message: Additional checks to make sure we don't close /dev/tty by mistake. When flushing, sleep in select as long as we have buffers that need to be written out. diffstat: src/script.c | 22 ++++++++++++++-------- 1 files changed, 14 insertions(+), 8 deletions(-) From Todd.Miller at courtesan.com Wed May 19 11:40:53 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 19 May 2010 11:40:53 -0400 Subject: [sudo-commits] sudo changeset 5354:e382b39d2e4f Message-ID: changeset: 5354:e382b39d2e4f in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/e382b39d2e4f user: Todd C. Miller date: Wed May 19 11:40:46 2010 -0400 Log Message: Fix compilation for non PAM/BSD auth/AIX auth diffstat: plugins/sudoers/auth/sudo_auth.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Thu May 20 07:33:21 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 20 May 2010 07:33:21 -0400 Subject: [sudo-commits] sudo changeset 5355:b0dcf825244f Message-ID: changeset: 5355:b0dcf825244f in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b0dcf825244f user: Todd C. Miller date: Thu May 20 07:33:14 2010 -0400 Log Message: When execve() of the command fails, it is possible to receive SIGCHLD before we've read the error status from the pipe. Re-order things such that we send the final status at the very end and prefer error status over wait status. diffstat: src/script.c | 119 +++++++++++++++++++++++++++++++++------------------------- 1 files changed, 68 insertions(+), 51 deletions(-) From Todd.Miller at courtesan.com Thu May 20 17:02:02 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 20 May 2010 17:02:02 -0400 Subject: [sudo-commits] sudo changeset 5357:95a273c7ff66 Message-ID: changeset: 5357:95a273c7ff66 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/95a273c7ff66 user: Todd C. Miller date: Thu May 20 17:01:53 2010 -0400 Log Message: Add debugging info when calling plugin close function diffstat: src/sudo.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Thu May 20 17:02:01 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 20 May 2010 17:02:01 -0400 Subject: [sudo-commits] sudo changeset 5356:330e76423caf Message-ID: changeset: 5356:330e76423caf in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/330e76423caf user: Todd C. Miller date: Thu May 20 17:01:27 2010 -0400 Log Message: Avoid closing stdin/stdout/stderr when we are piping output. diffstat: src/script.c | 27 +++++++++++++++++---------- 1 files changed, 17 insertions(+), 10 deletions(-) From Todd.Miller at courtesan.com Thu May 20 17:13:27 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 20 May 2010 17:13:27 -0400 Subject: [sudo-commits] sudo changeset 5358:9765a8fe5ce7 Message-ID: changeset: 5358:9765a8fe5ce7 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/9765a8fe5ce7 user: Todd C. Miller date: Thu May 20 17:10:16 2010 -0400 Log Message: Avoid possible malloc(0) if plugin returns an empty groups list. diffstat: src/sudo.c | 25 ++++++++++++++----------- 1 files changed, 14 insertions(+), 11 deletions(-) From Todd.Miller at courtesan.com Thu May 20 17:13:28 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 20 May 2010 17:13:28 -0400 Subject: [sudo-commits] sudo changeset 5359:f5b387024238 Message-ID: changeset: 5359:f5b387024238 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/f5b387024238 user: Todd C. Miller date: Thu May 20 17:13:22 2010 -0400 Log Message: Break out of select loop if all the fds we want to select on are -1. diffstat: src/script.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Thu May 20 17:34:57 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 20 May 2010 17:34:57 -0400 Subject: [sudo-commits] sudo changeset 5360:b826a95b4491 Message-ID: changeset: 5360:b826a95b4491 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b826a95b4491 user: Todd C. Miller date: Thu May 20 17:34:53 2010 -0400 Log Message: Move check for maxfd == -1 to flush_output where it belongs. diffstat: src/script.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Fri May 21 12:01:17 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 21 May 2010 12:01:17 -0400 Subject: [sudo-commits] sudo changeset 5361:f7851af0143e Message-ID: changeset: 5361:f7851af0143e in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/f7851af0143e user: Todd C. Miller date: Fri May 21 12:01:11 2010 -0400 Log Message: Cosmetic changes: add comments, remove orphaned prototype and make a global static. diffstat: src/script.c | 47 +++++++++++++++++++++++++++++++++-------------- src/sudo.h | 11 ++--------- 2 files changed, 35 insertions(+), 23 deletions(-) From Todd.Miller at courtesan.com Fri May 21 12:20:06 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 21 May 2010 12:20:06 -0400 Subject: [sudo-commits] sudo changeset 5362:31b69a6ecda7 Message-ID: changeset: 5362:31b69a6ecda7 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/31b69a6ecda7 user: Todd C. Miller date: Fri May 21 12:19:55 2010 -0400 Log Message: Set user_tty to "unknown" if there is no tty, like sudo 1.7 does (it is used when logging). Note that user_ttypath will still be NULL if there is no tty. diffstat: plugins/sudoers/sudoers.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Fri May 21 14:51:56 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 21 May 2010 14:51:56 -0400 Subject: [sudo-commits] sudo changeset 5363:060451617713 Message-ID: changeset: 5363:060451617713 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/060451617713 user: Todd C. Miller date: Fri May 21 14:50:26 2010 -0400 Log Message: Close the I/O pipes aftering dup2()ing them to std{in,out,err}. Fixes extra fds being present in the command when it is part of a pipeline. diffstat: src/script.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Fri May 21 14:51:57 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 21 May 2010 14:51:57 -0400 Subject: [sudo-commits] sudo changeset 5364:64fef78cb833 Message-ID: changeset: 5364:64fef78cb833 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/64fef78cb833 user: Todd C. Miller date: Fri May 21 14:51:05 2010 -0400 Log Message: Set close on exec flag in private versions of setpwent() and setgrent(). diffstat: plugins/sudoers/tsgetgrpw.c | 53 ++++++++++++++++++++++++++++++-------------- 1 files changed, 36 insertions(+), 17 deletions(-) From Todd.Miller at courtesan.com Fri May 21 14:51:58 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 21 May 2010 14:51:58 -0400 Subject: [sudo-commits] sudo changeset 5365:2c7e8708df76 Message-ID: changeset: 5365:2c7e8708df76 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/2c7e8708df76 user: Todd C. Miller date: Fri May 21 14:51:50 2010 -0400 Log Message: Set close on exec flag for descriptors used for I/O logging so they are not present in the command being run. diffstat: plugins/sudoers/iolog.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Fri May 21 14:56:35 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 21 May 2010 14:56:35 -0400 Subject: [sudo-commits] sudo changeset 5366:473b3cf965be Message-ID: changeset: 5366:473b3cf965be in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/473b3cf965be user: Todd C. Miller date: Fri May 21 14:56:31 2010 -0400 Log Message: The sample plugin doesn't support being run with no args so return a usage error in this case. diffstat: plugins/sample/sample_plugin.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Fri May 21 15:31:41 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 21 May 2010 15:31:41 -0400 Subject: [sudo-commits] sudo changeset 5367:b258b8401b1c Message-ID: changeset: 5367:b258b8401b1c in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b258b8401b1c user: Todd C. Miller date: Fri May 21 15:31:36 2010 -0400 Log Message: Install sudo_plugin.h as part of "make install" and make other install targets callable from the top-level Makefile diffstat: Makefile.in | 4 ++-- compat/Makefile.in | 6 ++++++ configure | 3 ++- configure.in | 2 +- doc/Makefile.in | 4 ++++ plugins/sample/Makefile.in | 2 ++ plugins/sudoers/Makefile.in | 6 ++++-- src/Makefile.in | 4 ++++ 8 files changed, 25 insertions(+), 6 deletions(-) From Todd.Miller at courtesan.com Fri May 21 15:53:44 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 21 May 2010 15:53:44 -0400 Subject: [sudo-commits] sudo changeset 5368:5d5541c230f5 Message-ID: changeset: 5368:5d5541c230f5 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/5d5541c230f5 user: Todd C. Miller date: Fri May 21 15:53:39 2010 -0400 Log Message: regen with autoupdate to eliminate AC_TRY_LINK diffstat: configure | 11 +++++++---- configure.in | 21 ++++++++++++++------- 2 files changed, 21 insertions(+), 11 deletions(-) From Todd.Miller at courtesan.com Fri May 21 16:52:37 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 21 May 2010 16:52:37 -0400 Subject: [sudo-commits] sudo changeset 5369:aaaeb027d774 Message-ID: changeset: 5369:aaaeb027d774 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/aaaeb027d774 user: Todd C. Miller date: Fri May 21 16:52:31 2010 -0400 Log Message: Install sudo_plugin.h as part of "make install" and make other install targets callable from the top-level Makefile diffstat: include/Makefile.in | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 73 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Fri May 21 16:53:27 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 21 May 2010 16:53:27 -0400 Subject: [sudo-commits] sudo changeset 5370:1581057d6472 Message-ID: changeset: 5370:1581057d6472 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/1581057d6472 user: Todd C. Miller date: Fri May 21 16:53:21 2010 -0400 Log Message: Use libtool to clean objects diffstat: compat/Makefile.in | 2 +- plugins/sample/Makefile.in | 2 +- plugins/sudoers/Makefile.in | 2 +- src/Makefile.in | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Fri May 21 18:00:06 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 21 May 2010 18:00:06 -0400 Subject: [sudo-commits] sudo changeset 5371:6f79ced593bb Message-ID: changeset: 5371:6f79ced593bb in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/6f79ced593bb user: Todd C. Miller date: Fri May 21 17:59:47 2010 -0400 Log Message: Update to libtool-2.2.6b. I haven't made any local modifications this time, which should be OK since we install sudo_noexec.so by hand now. diffstat: Makefile.in | 10 + aclocal.m4 | 9 + acsite.m4 | 7518 ----------------------------------- configure | 7369 +++++++++++++++++++++------------ configure.in | 11 +- ltmain.sh | 9083 ++++++++++++++++++++++++------------------ m4/libtool.m4 | 7357 ++++++++++++++++++++++++++++++++++ m4/ltoptions.m4 | 368 + m4/ltsugar.m4 | 123 + m4/ltversion.m4 | 23 + m4/lt~obsolete.m4 | 92 + plugins/sample/Makefile.in | 2 +- plugins/sudoers/Makefile.in | 2 +- src/Makefile.in | 8 +- 14 files changed, 17903 insertions(+), 14072 deletions(-) From Todd.Miller at courtesan.com Fri May 21 19:25:26 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 21 May 2010 19:25:26 -0400 Subject: [sudo-commits] sudo changeset 5372:42b4e3aee668 Message-ID: changeset: 5372:42b4e3aee668 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/42b4e3aee668 user: Todd C. Miller date: Fri May 21 18:40:04 2010 -0400 Log Message: Remove use of RETSIGTYPE; all modern systems have signal handlers that return void. diffstat: config.h.in | 3 --- plugins/sudoers/logging.h | 2 +- plugins/sudoers/visudo.c | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) From Todd.Miller at courtesan.com Fri May 21 19:25:27 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 21 May 2010 19:25:27 -0400 Subject: [sudo-commits] sudo changeset 5373:755cf3892618 Message-ID: changeset: 5373:755cf3892618 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/755cf3892618 user: Todd C. Miller date: Fri May 21 18:41:18 2010 -0400 Log Message: Fix libtool target (space vs. tabs) diffstat: Makefile.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Fri May 21 19:25:28 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 21 May 2010 19:25:28 -0400 Subject: [sudo-commits] sudo changeset 5374:4fa6ea8caea3 Message-ID: changeset: 5374:4fa6ea8caea3 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/4fa6ea8caea3 user: Todd C. Miller date: Fri May 21 19:25:17 2010 -0400 Log Message: Update to autoconf 2.65 diffstat: config.guess | 236 +- config.sub | 86 +- configure | 23285 ++++++++++++++++---------------------------------------- configure.in | 159 +- 4 files changed, 7054 insertions(+), 16712 deletions(-) From Todd.Miller at courtesan.com Fri May 21 21:05:50 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 21 May 2010 21:05:50 -0400 Subject: [sudo-commits] sudo changeset 5375:16d294d26b58 Message-ID: changeset: 5375:16d294d26b58 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/16d294d26b58 user: Todd C. Miller date: Fri May 21 21:05:44 2010 -0400 Log Message: Fix typo diffstat: config.sub | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Fri May 21 21:29:50 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 21 May 2010 21:29:50 -0400 Subject: [sudo-commits] sudo changeset 5376:36aa6a095335 Message-ID: changeset: 5376:36aa6a095335 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/36aa6a095335 user: Todd C. Miller date: Fri May 21 21:29:44 2010 -0400 Log Message: Substitute @SHELL@ into Makefiles diffstat: Makefile.in | 2 +- compat/Makefile.in | 2 +- configure | 29 +++++++++++++++-------------- configure.in | 1 + doc/Makefile.in | 2 +- include/Makefile.in | 2 +- plugins/sample/Makefile.in | 2 +- plugins/sudoers/Makefile.in | 2 +- src/Makefile.in | 2 +- 9 files changed, 23 insertions(+), 21 deletions(-) From Todd.Miller at courtesan.com Mon May 24 12:25:28 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 24 May 2010 12:25:28 -0400 Subject: [sudo-commits] sudo changeset 5377:c938953231d9 Message-ID: changeset: 5377:c938953231d9 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/c938953231d9 user: Todd C. Miller date: Mon May 24 12:10:05 2010 -0400 Log Message: We cannot conditionally update gram.h or the dependency ordering gets messed up in devel mode. diffstat: plugins/sudoers/Makefile.in | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) From Todd.Miller at courtesan.com Mon May 24 12:25:29 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 24 May 2010 12:25:29 -0400 Subject: [sudo-commits] sudo changeset 5378:c89411a8bf70 Message-ID: changeset: 5378:c89411a8bf70 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/c89411a8bf70 user: Todd C. Miller date: Mon May 24 12:25:20 2010 -0400 Log Message: Use the --file argument to config.status instead of setting CONFIG_FILES in the environment. diffstat: doc/Makefile.in | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) From Todd.Miller at courtesan.com Mon May 24 12:35:51 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 24 May 2010 12:35:51 -0400 Subject: [sudo-commits] sudo changeset 5379:daad4bbd04af Message-ID: changeset: 5379:daad4bbd04af in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/daad4bbd04af user: Todd C. Miller date: Mon May 24 12:35:43 2010 -0400 Log Message: Use mandoc(1) if nroff(1) is not present. diffstat: configure | 11 ++++++++--- configure.in | 6 +++--- 2 files changed, 11 insertions(+), 6 deletions(-) From Todd.Miller at courtesan.com Mon May 24 14:31:02 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 24 May 2010 14:31:02 -0400 Subject: [sudo-commits] sudo changeset 5380:c42f3ae40150 Message-ID: changeset: 5380:c42f3ae40150 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/c42f3ae40150 user: Todd C. Miller date: Mon May 24 14:30:54 2010 -0400 Log Message: If running a command or sudoedit in transcript mode, call io_nextid() before log_allowed() so the session id is logged. diffstat: plugins/sudoers/iolog.c | 3 +-- plugins/sudoers/sudoers.c | 2 ++ plugins/sudoers/sudoers.h | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Mon May 24 15:40:43 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 24 May 2010 15:40:43 -0400 Subject: [sudo-commits] sudo changeset 5381:b1c6257d4bbb Message-ID: changeset: 5381:b1c6257d4bbb in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b1c6257d4bbb user: Todd C. Miller date: Mon May 24 15:40:36 2010 -0400 Log Message: Bring back closefrom settings. diffstat: doc/sudo_plugin.cat | 202 +++++++++++++++++++++++----------------------- doc/sudo_plugin.man.in | 16 ++- doc/sudo_plugin.pod | 12 ++ plugins/sudoers/sudoers.c | 18 +++- plugins/sudoers/sudoers.h | 2 + src/parse_args.c | 8 +- src/script.c | 29 ++++-- src/selinux.c | 7 +- src/sudo.c | 15 +++ src/sudo.h | 1 + 10 files changed, 189 insertions(+), 121 deletions(-) From Todd.Miller at courtesan.com Mon May 24 18:18:17 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 24 May 2010 18:18:17 -0400 Subject: [sudo-commits] sudo changeset 5382:3d3addebcf82 Message-ID: changeset: 5382:3d3addebcf82 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/3d3addebcf82 user: Todd C. Miller date: Mon May 24 18:18:50 2010 -0400 Log Message: Make SELinux support compile again. Needs more work to be complete. diffstat: src/script.c | 25 ++++++++++++++++++++++- src/selinux.c | 61 +++++++++++++++++++++++++++++++++------------------------- src/sudo.h | 5 ++++ 3 files changed, 63 insertions(+), 28 deletions(-) From Todd.Miller at courtesan.com Tue May 25 11:00:06 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 25 May 2010 11:00:06 -0400 Subject: [sudo-commits] sudo changeset 5383:83279cc94bf2 Message-ID: changeset: 5383:83279cc94bf2 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/83279cc94bf2 user: Todd C. Miller date: Tue May 25 11:00:39 2010 -0400 Log Message: Rework SELinux support. diffstat: src/script.c | 27 +---- src/selinux.c | 303 ++++++++++++++++++++++++++------------------------------- src/sudo.h | 5 +- 3 files changed, 148 insertions(+), 187 deletions(-) From Todd.Miller at courtesan.com Tue May 25 13:58:22 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 25 May 2010 13:58:22 -0400 Subject: [sudo-commits] sudo changeset 5384:8ae6d35a126d Message-ID: changeset: 5384:8ae6d35a126d in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/8ae6d35a126d user: Todd C. Miller date: Tue May 25 13:58:16 2010 -0400 Log Message: Set selinux role and type in command details. diffstat: plugins/sudoers/sudoers.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Tue May 25 14:21:26 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 25 May 2010 14:21:26 -0400 Subject: [sudo-commits] sudo changeset 5385:10a0dcdf2ddf Message-ID: changeset: 5385:10a0dcdf2ddf in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/10a0dcdf2ddf user: Todd C. Miller date: Tue May 25 14:21:21 2010 -0400 Log Message: Repair "sudo -l -U username" diffstat: plugins/sudoers/sudoers.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Tue May 25 14:43:43 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 25 May 2010 14:43:43 -0400 Subject: [sudo-commits] sudo changeset 5386:13840d566805 Message-ID: changeset: 5386:13840d566805 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/13840d566805 user: Todd C. Miller date: Tue May 25 14:43:39 2010 -0400 Log Message: Document per-command SELinux settings diffstat: doc/sudoers.pod | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Tue May 25 16:13:13 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 25 May 2010 16:13:13 -0400 Subject: [sudo-commits] sudo changeset 5387:478079c3fd4b Message-ID: changeset: 5387:478079c3fd4b in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/478079c3fd4b user: Todd C. Miller date: Tue May 25 16:13:04 2010 -0400 Log Message: Use numeric registers to handle conditionals instead of trying to do it all with text processing. diffstat: configure | 12 +++--- configure.in | 12 +++--- doc/sudo.man.in | 86 +++++++++++++++++++++++++++--------------------- doc/sudo.man.pl | 35 ++++++++++++------- doc/sudoers.cat | 74 +++++++++++++++++++++--------------------- doc/sudoers.ldap.cat | 26 +++++++------- doc/sudoers.ldap.man.in | 4 +- doc/sudoers.man.in | 64 +++++++++++++++++++++++++----------- doc/sudoers.man.pl | 42 +++++++++++++++------- doc/sudoreplay.cat | 10 ++-- doc/sudoreplay.man.in | 2 +- doc/visudo.cat | 8 ++-- doc/visudo.man.in | 4 +- 13 files changed, 219 insertions(+), 160 deletions(-) From Todd.Miller at courtesan.com Wed May 26 11:19:23 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 26 May 2010 11:19:23 -0400 Subject: [sudo-commits] sudo changeset 5388:25c882643466 Message-ID: changeset: 5388:25c882643466 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/25c882643466 user: Todd C. Miller date: Wed May 26 11:19:17 2010 -0400 Log Message: Now that we defer sending cstat until the end of script_child() we cannot reuse cstat when reading command status from parent. diffstat: src/script.c | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Wed May 26 16:10:30 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 26 May 2010 16:10:30 -0400 Subject: [sudo-commits] sudo changeset 5389:b7cdc9b36650 Message-ID: changeset: 5389:b7cdc9b36650 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b7cdc9b36650 user: Todd C. Miller date: Wed May 26 15:43:46 2010 -0400 Log Message: Fix generation of mksiglist.h diffstat: compat/Makefile.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Wed May 26 16:10:31 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 26 May 2010 16:10:31 -0400 Subject: [sudo-commits] sudo changeset 5390:8949a9861634 Message-ID: changeset: 5390:8949a9861634 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/8949a9861634 user: Todd C. Miller date: Wed May 26 16:10:24 2010 -0400 Log Message: For distclean, clean the main directory last since the subdirs need to be able to run libtool to clean things. diffstat: Makefile.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Wed May 26 17:20:38 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 26 May 2010 17:20:38 -0400 Subject: [sudo-commits] sudo changeset 5391:40d8a50da136 Message-ID: changeset: 5391:40d8a50da136 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/40d8a50da136 user: Todd C. Miller date: Wed May 26 16:33:35 2010 -0400 Log Message: Re-enable PATH_MAX check for command diffstat: plugins/sudoers/sudoers.c | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) From Todd.Miller at courtesan.com Wed May 26 17:20:39 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 26 May 2010 17:20:39 -0400 Subject: [sudo-commits] sudo changeset 5392:f84badad98c5 Message-ID: changeset: 5392:f84badad98c5 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/f84badad98c5 user: Todd C. Miller date: Wed May 26 17:01:00 2010 -0400 Log Message: Back out most of change 45e406ebdea2. Create dummy .l.c and .y.c rules as an alternate way to prevent HP-UX make (and others) from trying to rebuild the parser in non-dev mode. diffstat: plugins/sudoers/Makefile.in | 39 ++++++++++++++++++++++----------------- 1 files changed, 22 insertions(+), 17 deletions(-) From Todd.Miller at courtesan.com Wed May 26 17:20:40 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 26 May 2010 17:20:40 -0400 Subject: [sudo-commits] sudo changeset 5393:7f049e989956 Message-ID: changeset: 5393:7f049e989956 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/7f049e989956 user: Todd C. Miller date: Wed May 26 17:20:21 2010 -0400 Log Message: Add explicit rule to build getdate.o for HP-UX make. diffstat: plugins/sudoers/Makefile.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Wed May 26 17:57:54 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 26 May 2010 17:57:54 -0400 Subject: [sudo-commits] sudo changeset 5394:2665e2920d0d Message-ID: changeset: 5394:2665e2920d0d in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/2665e2920d0d user: Todd C. Miller date: Wed May 26 17:57:47 2010 -0400 Log Message: Add open/close session to sudo auth, only used by PAM. This allows us to open (and close) the PAM session from sudoers. diffstat: plugins/sudoers/auth/pam.c | 33 +++++++++++++------- plugins/sudoers/auth/sudo_auth.c | 62 ++++++++++++++++++++++++++++++--------- plugins/sudoers/auth/sudo_auth.h | 22 ++++++++----- plugins/sudoers/set_perms.c | 51 -------------------------------- plugins/sudoers/sudoers.c | 10 ++++++ plugins/sudoers/sudoers.h | 3 +- 6 files changed, 94 insertions(+), 87 deletions(-) From Todd.Miller at courtesan.com Thu May 27 14:46:46 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 27 May 2010 14:46:46 -0400 Subject: [sudo-commits] sudo changeset 5395:d71723320ee8 Message-ID: changeset: 5395:d71723320ee8 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/d71723320ee8 user: Todd C. Miller date: Thu May 27 14:46:39 2010 -0400 Log Message: Add init_session function to struct policy_plugin that gets called before the uid/gid/etc changes. A struct passwd pointer is passed in,which may be NULL if the user does not exist in the passwd database.The sudoers module uses init_session to open the pam session as needed. diffstat: include/sudo_plugin.h | 2 ++ plugins/sudoers/auth/pam.c | 37 +++++++++++++++++++++++++------------ plugins/sudoers/auth/sudo_auth.c | 4 ++-- plugins/sudoers/sudoers.c | 27 ++++++++++++++++----------- plugins/sudoers/sudoers.h | 4 ++-- src/script.c | 2 +- src/sudo.c | 31 +++++++++++++++++++++---------- 7 files changed, 69 insertions(+), 38 deletions(-) From Todd.Miller at courtesan.com Thu May 27 14:53:16 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 27 May 2010 14:53:16 -0400 Subject: [sudo-commits] sudo changeset 5396:c40fd4cb6e68 Message-ID: changeset: 5396:c40fd4cb6e68 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/c40fd4cb6e68 user: Todd C. Miller date: Thu May 27 14:53:11 2010 -0400 Log Message: Clean up the sudoers auth API a bit and update the docs. diffstat: plugins/sudoers/auth/API | 64 +++++++++----------- plugins/sudoers/auth/sudo_auth.c | 119 +++++++++++++++++++++++--------------- plugins/sudoers/auth/sudo_auth.h | 46 +++----------- 3 files changed, 110 insertions(+), 119 deletions(-) From Todd.Miller at courtesan.com Thu May 27 15:07:51 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 27 May 2010 15:07:51 -0400 Subject: [sudo-commits] sudo changeset 5397:b5324785a406 Message-ID: changeset: 5397:b5324785a406 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b5324785a406 user: Todd C. Miller date: Thu May 27 15:07:43 2010 -0400 Log Message: Document init_session diffstat: doc/sudo_plugin.cat | 346 +++++++++++++++++++++++++++++------------------- doc/sudo_plugin.man.in | 29 +++- doc/sudo_plugin.pod | 22 +++ 3 files changed, 250 insertions(+), 147 deletions(-) From Todd.Miller at courtesan.com Thu May 27 15:09:11 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 27 May 2010 15:09:11 -0400 Subject: [sudo-commits] sudo changeset 5398:0b1c1ca9d4e5 Message-ID: changeset: 5398:0b1c1ca9d4e5 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/0b1c1ca9d4e5 user: Todd C. Miller date: Thu May 27 15:09:05 2010 -0400 Log Message: bump version to 1.8.0a2 diffstat: configure | 18 +++++++++--------- configure.in | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) From Todd.Miller at courtesan.com Thu May 27 16:46:37 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 27 May 2010 16:46:37 -0400 Subject: [sudo-commits] sudo changeset 5399:899b0fb2a14d Message-ID: changeset: 5399:899b0fb2a14d in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/899b0fb2a14d user: Todd C. Miller date: Thu May 27 16:29:48 2010 -0400 Log Message: Rename script_setup() to pty_setup() and call from script_execve() directly. diffstat: src/script.c | 8 ++++++-- src/sudo.c | 8 +------- src/sudo.h | 1 - 3 files changed, 7 insertions(+), 10 deletions(-) From Todd.Miller at courtesan.com Thu May 27 16:46:38 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 27 May 2010 16:46:38 -0400 Subject: [sudo-commits] sudo changeset 5400:36bc3bff9578 Message-ID: changeset: 5400:36bc3bff9578 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/36bc3bff9578 user: Todd C. Miller date: Thu May 27 16:32:41 2010 -0400 Log Message: rename script.c exec.c and fix up the MANIFEST file diffstat: MANIFEST | 8 +- src/Makefile.in | 4 +- src/exec.c | 1383 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/script.c | 1383 ------------------------------------------------------- 4 files changed, 1391 insertions(+), 1387 deletions(-) From Todd.Miller at courtesan.com Thu May 27 16:46:38 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 27 May 2010 16:46:38 -0400 Subject: [sudo-commits] sudo changeset 5401:a35ec80de96a Message-ID: changeset: 5401:a35ec80de96a in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/a35ec80de96a user: Todd C. Miller date: Thu May 27 16:46:31 2010 -0400 Log Message: Rename script_execve to sudo_execve and rename script_foo in exec.c diffstat: src/exec.c | 190 ++++++++++++++++++++++++++++++------------------------------ src/sudo.c | 2 +- src/sudo.h | 4 +- 3 files changed, 99 insertions(+), 97 deletions(-) From Todd.Miller at courtesan.com Thu May 27 17:27:43 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 27 May 2010 17:27:43 -0400 Subject: [sudo-commits] sudo changeset 5402:1d1d98bd55b9 Message-ID: changeset: 5402:1d1d98bd55b9 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/1d1d98bd55b9 user: Todd C. Miller date: Thu May 27 17:27:36 2010 -0400 Log Message: Move code common to sudo and the sudoers plugin to a convenience library, libcommon. Removes the need to make links in the sudoers plugin dir and reduces re-compilation of duplicate object files. diffstat: Makefile.in | 2 +- common/alloc.c | 224 ++++++++++++++++++++++++++++++++++++++++ common/atobool.c | 53 +++++++++ common/fileops.c | 167 +++++++++++++++++++++++++++++ common/fmt_string.c | 65 +++++++++++ common/gettime.c | 43 +++++++ common/lbuf.c | 245 ++++++++++++++++++++++++++++++++++++++++++++ common/list.c | 158 ++++++++++++++++++++++++++++ common/term.c | 174 +++++++++++++++++++++++++++++++ common/zero_bytes.c | 34 ++++++ configure | 3 +- configure.in | 2 +- plugins/sample/Makefile.in | 4 +- plugins/sudoers/Makefile.in | 67 ++--------- src/Makefile.in | 20 +-- src/alloc.c | 224 ---------------------------------------- src/atobool.c | 53 --------- src/fileops.c | 167 ----------------------------- src/fmt_string.c | 65 ----------- src/gettime.c | 43 ------- src/lbuf.c | 245 -------------------------------------------- src/list.c | 158 ---------------------------- src/term.c | 174 ------------------------------- src/zero_bytes.c | 34 ------ 24 files changed, 1189 insertions(+), 1235 deletions(-) From Todd.Miller at courtesan.com Thu May 27 17:29:14 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 27 May 2010 17:29:14 -0400 Subject: [sudo-commits] sudo changeset 5403:4c8986352937 Message-ID: changeset: 5403:4c8986352937 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/4c8986352937 user: Todd C. Miller date: Thu May 27 17:29:09 2010 -0400 Log Message: Move code common to sudo and the sudoers plugin to a convenience library, libcommon. Removes the need to make links in the sudoers plugin dir and reduces re-compilation of duplicate object files. diffstat: common/Makefile.in | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 103 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Thu May 27 17:48:22 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 27 May 2010 17:48:22 -0400 Subject: [sudo-commits] sudo changeset 5404:1847c496ff5b Message-ID: changeset: 5404:1847c496ff5b in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/1847c496ff5b user: Todd C. Miller date: Thu May 27 17:48:17 2010 -0400 Log Message: Link libcommon before libreplace since libcommon may use functions only present in libreplace. diffstat: plugins/sudoers/Makefile.in | 2 +- src/Makefile.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Thu May 27 18:00:18 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 27 May 2010 18:00:18 -0400 Subject: [sudo-commits] sudo changeset 5405:481a5c96d47e Message-ID: changeset: 5405:481a5c96d47e in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/481a5c96d47e user: Todd C. Miller date: Thu May 27 18:00:08 2010 -0400 Log Message: Add explicit rules to compile gram.c and toke.c for HP-UX Pevent ending LIBSUDOERS_OBJS with a backslash diffstat: plugins/sudoers/Makefile.in | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) From Todd.Miller at courtesan.com Thu May 27 18:11:56 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 27 May 2010 18:11:56 -0400 Subject: [sudo-commits] sudo changeset 5406:358ab7f6cc64 Message-ID: changeset: 5406:358ab7f6cc64 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/358ab7f6cc64 user: Todd C. Miller date: Thu May 27 18:11:51 2010 -0400 Log Message: Use explicit path to source file instead of $< for files that live in devdir and top_srcdir. diffstat: plugins/sudoers/Makefile.in | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Fri May 28 09:42:56 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 28 May 2010 09:42:56 -0400 Subject: [sudo-commits] sudo changeset 5407:c1bbb88d0435 Message-ID: changeset: 5407:c1bbb88d0435 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/c1bbb88d0435 user: Todd C. Miller date: Fri May 28 09:42:50 2010 -0400 Log Message: Handle duplicate variables in the environment. For unsetenv(), keep looking even after remove the first instance. For sudo_putenv(), check for and remove dupes after we replace an existing value. diffstat: plugins/sudoers/env.c | 43 ++++++++++++++++++++++++++++++------------- 1 files changed, 30 insertions(+), 13 deletions(-) From Todd.Miller at courtesan.com Fri May 28 09:45:21 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 28 May 2010 09:45:21 -0400 Subject: [sudo-commits] sudo changeset 5408:086c6397d8cd Message-ID: changeset: 5408:086c6397d8cd in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/086c6397d8cd user: Todd C. Miller date: Fri May 28 09:45:01 2010 -0400 Log Message: Handle duplicate variables in the environment. For unsetenv(), keep looking even after remove the first instance. For sudo_putenv(), check for and remove dupes after we replace an existing value. diffstat: env.c | 43 ++++++++++++++++++++++++++++++------------- 1 files changed, 30 insertions(+), 13 deletions(-) From Todd.Miller at courtesan.com Fri May 28 10:02:01 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 28 May 2010 10:02:01 -0400 Subject: [sudo-commits] sudo changeset 5409:a099cb714df6 Message-ID: changeset: 5409:a099cb714df6 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/a099cb714df6 user: Todd C. Miller date: Fri May 28 09:57:42 2010 -0400 Log Message: errx, not errorx diffstat: find_path.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Fri May 28 10:02:02 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 28 May 2010 10:02:02 -0400 Subject: [sudo-commits] sudo changeset 5410:3057fde43cf0 Message-ID: changeset: 5410:3057fde43cf0 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/3057fde43cf0 user: Todd C. Miller date: Fri May 28 10:01:51 2010 -0400 Log Message: Make insert_env() check for and remove dupes after we replace an existing value. diffstat: env.c | 33 ++++++++++++++++++++++++--------- 1 files changed, 24 insertions(+), 9 deletions(-) From Todd.Miller at courtesan.com Fri May 28 10:05:33 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 28 May 2010 10:05:33 -0400 Subject: [sudo-commits] sudo changeset 5411:a09c6812eaec Message-ID: changeset: 5411:a09c6812eaec in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/a09c6812eaec user: Todd C. Miller date: Fri May 28 10:05:25 2010 -0400 Log Message: Handle duplicate variables in the environment. For unsetenv(), keep looking even after remove the first instance. For sudo_putenv(), check for and remove dupes after we replace an existing value. diffstat: env.c | 43 ++++++++++++++++++++++++++++++------------- 1 files changed, 30 insertions(+), 13 deletions(-) From Todd.Miller at courtesan.com Fri May 28 10:42:04 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 28 May 2010 10:42:04 -0400 Subject: [sudo-commits] sudo changeset 5412:6e3b2d6b4437 Message-ID: changeset: 5412:6e3b2d6b4437 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/6e3b2d6b4437 user: Todd C. Miller date: Fri May 28 10:41:58 2010 -0400 Log Message: Minor Makefile cleanup: fix a typo, change the removal order in the clean targets, and remove a superfluous include path for the sudoers plugin. diffstat: common/Makefile.in | 4 ++-- compat/Makefile.in | 4 ++-- plugins/sample/Makefile.in | 4 ++-- plugins/sudoers/Makefile.in | 10 ++++++---- src/Makefile.in | 4 ++-- 5 files changed, 14 insertions(+), 12 deletions(-) From Todd.Miller at courtesan.com Fri May 28 12:01:15 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 28 May 2010 12:01:15 -0400 Subject: [sudo-commits] sudo changeset 5413:435cc9f8d4a2 Message-ID: changeset: 5413:435cc9f8d4a2 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/435cc9f8d4a2 user: Todd C. Miller date: Fri May 28 12:01:06 2010 -0400 Log Message: Use sudo_printf to display verbose version information. diffstat: plugins/sudoers/auth/sudo_auth.c | 24 +++---------- plugins/sudoers/defaults.c | 60 +++++++++++++++++++-------------- plugins/sudoers/interfaces.c | 11 +++-- plugins/sudoers/iolog.c | 4 ++ plugins/sudoers/parse.c | 6 +- plugins/sudoers/sudoers.c | 25 ++++--------- plugins/sudoers/testsudoers.c | 71 ++++++++++++++++++++++++++++----------- plugins/sudoers/visudo.c | 27 +++++++++++++++ 8 files changed, 141 insertions(+), 87 deletions(-) From Todd.Miller at courtesan.com Fri May 28 12:15:19 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 28 May 2010 12:15:19 -0400 Subject: [sudo-commits] sudo changeset 5414:43093f937dd8 Message-ID: changeset: 5414:43093f937dd8 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/43093f937dd8 user: Todd C. Miller date: Fri May 28 12:15:14 2010 -0400 Log Message: Re-enable cleanup functions in sudoers plugin and sudo driver for error()/errorx(). diffstat: plugins/sudoers/sudoers.c | 5 ----- src/exec.c | 10 ++++++++++ src/sudo.c | 24 ------------------------ 3 files changed, 10 insertions(+), 29 deletions(-) From Todd.Miller at courtesan.com Fri May 28 13:24:13 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 28 May 2010 13:24:13 -0400 Subject: [sudo-commits] sudo changeset 5415:83bd711e79c4 Message-ID: changeset: 5415:83bd711e79c4 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/83bd711e79c4 user: Todd C. Miller date: Fri May 28 13:21:56 2010 -0400 Log Message: Eliminate unused variables diffstat: plugins/sudoers/sudoers.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) From Todd.Miller at courtesan.com Fri May 28 13:24:13 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 28 May 2010 13:24:13 -0400 Subject: [sudo-commits] sudo changeset 5416:4766d77cea49 Message-ID: changeset: 5416:4766d77cea49 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/4766d77cea49 user: Todd C. Miller date: Fri May 28 13:24:07 2010 -0400 Log Message: Fix EAGAIN handling when writing to stdout. diffstat: plugins/sudoers/sudoreplay.c | 21 +++++++++++---------- 1 files changed, 11 insertions(+), 10 deletions(-) From Todd.Miller at courtesan.com Sun May 30 06:29:47 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 30 May 2010 06:29:47 -0400 Subject: [sudo-commits] sudo changeset 5417:3d220030b720 Message-ID: changeset: 5417:3d220030b720 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/3d220030b720 user: Todd C. Miller date: Fri May 28 17:37:36 2010 -0400 Log Message: Completely remove the -L flag from the sudo front end. diffstat: doc/sudo.cat | 158 ++++++++++++++++++++++++++-------------------------- doc/sudo.man.in | 9 +-- doc/sudo.pod | 8 +-- src/parse_args.c | 2 +- src/sudo_usage.h.in | 2 +- 5 files changed, 84 insertions(+), 95 deletions(-) From Todd.Miller at courtesan.com Sun May 30 06:29:48 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 30 May 2010 06:29:48 -0400 Subject: [sudo-commits] sudo changeset 5418:b2df3cc3eecb Message-ID: changeset: 5418:b2df3cc3eecb in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b2df3cc3eecb user: Todd C. Miller date: Sat May 29 10:43:34 2010 -0400 Log Message: Make sudoers_io functions static to iolog.c diffstat: plugins/sudoers/iolog.c | 22 ++++++++++++++++++---- plugins/sudoers/sudoers.c | 13 ------------- plugins/sudoers/sudoers.h | 7 ------- 3 files changed, 18 insertions(+), 24 deletions(-) From Todd.Miller at courtesan.com Sun May 30 06:29:49 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 30 May 2010 06:29:49 -0400 Subject: [sudo-commits] sudo changeset 5419:fb460c5273dd Message-ID: changeset: 5419:fb460c5273dd in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/fb460c5273dd user: Todd C. Miller date: Sat May 29 19:44:33 2010 -0400 Log Message: Log all input and output into separate files and store a number on each timing file line to indicate which file the data is in. diffstat: plugins/sudoers/iolog.c | 157 +++++++++++++++++++++++++++++++---------------- 1 files changed, 104 insertions(+), 53 deletions(-) From Todd.Miller at courtesan.com Sun May 30 06:29:49 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 30 May 2010 06:29:49 -0400 Subject: [sudo-commits] sudo changeset 5420:581f52c05f0f Message-ID: changeset: 5420:581f52c05f0f in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/581f52c05f0f user: Todd C. Miller date: Sun May 30 06:29:41 2010 -0400 Log Message: Adapt sudoreplay to iolog changes. diffstat: plugins/sudoers/iolog.c | 4 +- plugins/sudoers/sudoreplay.c | 115 ++++++++++++++++++++++++++++-------------- 2 files changed, 79 insertions(+), 40 deletions(-) From Todd.Miller at courtesan.com Sun May 30 06:35:30 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 30 May 2010 06:35:30 -0400 Subject: [sudo-commits] sudo changeset 5421:6beee63a4553 Message-ID: changeset: 5421:6beee63a4553 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/6beee63a4553 user: Todd C. Miller date: Sun May 30 06:35:21 2010 -0400 Log Message: Use setprogname() as needed. diffstat: plugins/sudoers/sudoreplay.c | 11 +++++------ plugins/sudoers/testsudoers.c | 9 +++++---- plugins/sudoers/visudo.c | 8 ++++---- 3 files changed, 14 insertions(+), 14 deletions(-) From Todd.Miller at courtesan.com Sun May 30 10:57:24 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 30 May 2010 10:57:24 -0400 Subject: [sudo-commits] sudo changeset 5422:db3c1248d2ad Message-ID: changeset: 5422:db3c1248d2ad in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/db3c1248d2ad user: Todd C. Miller date: Sun May 30 10:31:38 2010 -0400 Log Message: Break sudoers transcript feature up into log_input and log_output. diffstat: INSTALL | 13 +- WHATSNEW | 7 +- aclocal.m4 | 20 +- configure | 30 +- configure.in | 12 +- pathnames.h.in | 10 +- plugins/sudoers/def_data.c | 12 +- plugins/sudoers/def_data.h | 10 +- plugins/sudoers/def_data.in | 11 +- plugins/sudoers/defaults.c | 2 +- plugins/sudoers/gram.c | 695 ++++++++++++++++++++++-------------------- plugins/sudoers/gram.h | 24 +- plugins/sudoers/gram.y | 29 +- plugins/sudoers/iolog.c | 36 +- plugins/sudoers/parse.c | 25 +- plugins/sudoers/parse.h | 9 +- plugins/sudoers/sudoers.c | 2 +- plugins/sudoers/sudoreplay.c | 14 +- 18 files changed, 516 insertions(+), 445 deletions(-) From Todd.Miller at courtesan.com Sun May 30 10:57:25 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 30 May 2010 10:57:25 -0400 Subject: [sudo-commits] sudo changeset 5423:18d651989e49 Message-ID: changeset: 5423:18d651989e49 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/18d651989e49 user: Todd C. Miller date: Sun May 30 10:57:14 2010 -0400 Log Message: Update docs to match sudoers I/O logging changes diffstat: doc/sudoers.cat | 554 +++++++++++++++++++++++++------------------------- doc/sudoers.man.in | 86 ++++--- doc/sudoers.pod | 76 ++++-- doc/sudoreplay.cat | 72 +++--- doc/sudoreplay.man.in | 42 ++- doc/sudoreplay.pod | 36 ++- 6 files changed, 467 insertions(+), 399 deletions(-) From Todd.Miller at courtesan.com Sun May 30 11:16:44 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sun, 30 May 2010 11:16:44 -0400 Subject: [sudo-commits] sudo changeset 5424:92121d693b30 Message-ID: changeset: 5424:92121d693b30 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/92121d693b30 user: Todd C. Miller date: Sun May 30 11:16:31 2010 -0400 Log Message: Add --enable-warnings and fix typo in SUDO_IO_LOGDIR diffstat: INSTALL | 3 +++ configure | 50 ++++++++++++++++++++++++++++++++++---------------- configure.in | 19 ++++++++++++++++--- 3 files changed, 53 insertions(+), 19 deletions(-)