From Todd.Miller at courtesan.com Mon Aug 2 15:31:19 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 02 Aug 2010 15:31:19 -0400 Subject: [sudo-commits] sudo changeset 5948:fb88d22eabc6 Message-ID: changeset: 5948:fb88d22eabc6 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/fb88d22eabc6 user: Todd C. Miller date: Mon Aug 02 15:31:11 2010 -0400 Log Message: Add cross-compile defaults for remaining AC_TRY_RUN usage. diffstat: aclocal.m4 | 4 ++-- configure | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) From Todd.Miller at courtesan.com Mon Aug 2 15:32:13 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 02 Aug 2010 15:32:13 -0400 Subject: [sudo-commits] sudo changeset 5949:e385c176d0ee Message-ID: changeset: 5949:e385c176d0ee in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/e385c176d0ee user: Todd C. Miller date: Mon Aug 02 15:32:06 2010 -0400 Log Message: Add cross-compile defaults for remaining AC_TRY_RUN usage. Also add back getgroups() check since AC_FUNC_GETGROUPS defaults to "no" when cross-compiling. diffstat: aclocal.m4 | 4 ++-- configure | 9 +++------ configure.in | 2 +- 3 files changed, 6 insertions(+), 9 deletions(-) From Todd.Miller at courtesan.com Mon Aug 2 18:16:53 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 02 Aug 2010 18:16:53 -0400 Subject: [sudo-commits] sudo changeset 5950:8a5e05d6f71f Message-ID: changeset: 5950:8a5e05d6f71f in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/8a5e05d6f71f user: Todd C. Miller date: Mon Aug 02 18:16:47 2010 -0400 Log Message: Add %option noinput diffstat: toke.c | 117 +++++++++++++++++++++++++++++++++------------------------------- toke.l | 1 + 2 files changed, 61 insertions(+), 57 deletions(-) From Todd.Miller at courtesan.com Mon Aug 2 18:17:55 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 02 Aug 2010 18:17:55 -0400 Subject: [sudo-commits] sudo changeset 5951:72b9cd49b4f1 Message-ID: changeset: 5951:72b9cd49b4f1 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/72b9cd49b4f1 user: Todd C. Miller date: Mon Aug 02 18:17:51 2010 -0400 Log Message: Add %option noinput diffstat: plugins/sudoers/toke.c | 117 +++++++++++++++++++++++++----------------------- plugins/sudoers/toke.l | 1 + 2 files changed, 61 insertions(+), 57 deletions(-) From Todd.Miller at courtesan.com Tue Aug 3 11:18:01 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 03 Aug 2010 11:18:01 -0400 Subject: [sudo-commits] sudo changeset 5952:c99f138960e0 Message-ID: changeset: 5952:c99f138960e0 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/c99f138960e0 user: Todd C. Miller date: Tue Aug 03 11:17:56 2010 -0400 Log Message: Quiet gcc warnings on glibc systems that use warn_unused_result for write(2) and others. diffstat: plugins/sudoers/check.c | 3 ++- plugins/sudoers/logging.c | 3 ++- plugins/sudoers/sudoreplay.c | 9 ++++++--- plugins/sudoers/visudo.c | 18 +++++++++++++----- src/exec_pty.c | 15 ++++++++++----- src/get_pty.c | 3 ++- src/tgetpass.c | 25 +++++++++++++++++-------- 7 files changed, 52 insertions(+), 24 deletions(-) From Todd.Miller at courtesan.com Tue Aug 3 11:18:11 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 03 Aug 2010 11:18:11 -0400 Subject: [sudo-commits] sudo changeset 5953:5faf88695c66 Message-ID: changeset: 5953:5faf88695c66 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/5faf88695c66 user: Todd C. Miller date: Tue Aug 03 11:18:07 2010 -0400 Log Message: Quiet gcc warnings on glibc systems that use warn_unused_result for write(2) and others. diffstat: check.c | 3 ++- exec_pty.c | 15 ++++++++++----- get_pty.c | 3 ++- logging.c | 3 ++- sudoreplay.c | 9 ++++++--- tgetpass.c | 25 +++++++++++++++++-------- visudo.c | 18 +++++++++++++----- 7 files changed, 52 insertions(+), 24 deletions(-) From Todd.Miller at courtesan.com Tue Aug 3 14:59:26 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 03 Aug 2010 14:59:26 -0400 Subject: [sudo-commits] sudo changeset 5954:2c1d8ec4fa5f Message-ID: changeset: 5954:2c1d8ec4fa5f in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/2c1d8ec4fa5f user: Todd C. Miller date: Tue Aug 03 14:59:17 2010 -0400 Log Message: Instead of caching struct passwd and struct group in the red-black tree, store a struct cache_item which includes both the key and datum. This allows us to user the actual name that was looked up as the key instead of the contents of struct passwd or struct group. This matters because the name in the database may not match what we looked up, due either to case folding or truncation (historically at 8 characters). Also mark the disabled calls to sudo_freepwcache() and sudo_freegrcache() as broken since we use cached data for things like set_perms() and the logging functions. Fixing this would require making a copy of the structs for user and runas or adding a reference count (better). diffstat: pwutil.c | 360 +++++++++++++++++++++++++++++++++++++------------------------- 1 files changed, 214 insertions(+), 146 deletions(-) From Todd.Miller at courtesan.com Tue Aug 3 15:15:08 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 03 Aug 2010 15:15:08 -0400 Subject: [sudo-commits] sudo changeset 5955:eeaaa73d7f5b Message-ID: changeset: 5955:eeaaa73d7f5b in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/eeaaa73d7f5b user: Todd C. Miller date: Tue Aug 03 15:14:55 2010 -0400 Log Message: Do not produce a warning for "sudo -k" if the ticket file does not exist. diffstat: check.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Tue Aug 3 15:17:02 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 03 Aug 2010 15:17:02 -0400 Subject: [sudo-commits] sudo changeset 5956:b4968379b12d Message-ID: changeset: 5956:b4968379b12d in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b4968379b12d user: Todd C. Miller date: Tue Aug 03 15:10:56 2010 -0400 Log Message: Fix path to mkinstalldirs diffstat: plugins/sudoers/Makefile.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Tue Aug 3 15:17:03 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 03 Aug 2010 15:17:03 -0400 Subject: [sudo-commits] sudo changeset 5957:225d4a22f60e Message-ID: changeset: 5957:225d4a22f60e in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/225d4a22f60e user: Todd C. Miller date: Tue Aug 03 15:15:45 2010 -0400 Log Message: Instead of caching struct passwd and struct group in the red-black tree, store a struct cache_item which includes both the key and datum. This allows us to user the actual name that was looked up as the key instead of the contents of struct passwd or struct group. This matters because the name in the database may not match what we looked up, due either to case folding or truncation (historically at 8 characters). Also mark the disabled calls to sudo_freepwcache() and sudo_freegrcache() as broken since we use cached data for things like set_perms() and the logging functions. Fixing this would require making a copy of the structs for user and runas or adding a reference count (better). diffstat: plugins/sudoers/pwutil.c | 356 +++++++++++++++++++++++++++------------------- 1 files changed, 212 insertions(+), 144 deletions(-) From Todd.Miller at courtesan.com Tue Aug 3 15:17:04 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 03 Aug 2010 15:17:04 -0400 Subject: [sudo-commits] sudo changeset 5958:1598f6061b75 Message-ID: changeset: 5958:1598f6061b75 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/1598f6061b75 user: Todd C. Miller date: Tue Aug 03 15:16:57 2010 -0400 Log Message: Do not produce a warning for "sudo -k" if the ticket file does not exist. diffstat: plugins/sudoers/check.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Wed Aug 4 09:13:23 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 04 Aug 2010 09:13:23 -0400 Subject: [sudo-commits] sudo changeset 5959:0f443aa22e96 Message-ID: changeset: 5959:0f443aa22e96 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/0f443aa22e96 user: Todd C. Miller date: Wed Aug 04 08:41:49 2010 -0400 Log Message: Fix typo diffstat: UPGRADE | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Wed Aug 4 09:13:25 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 04 Aug 2010 09:13:25 -0400 Subject: [sudo-commits] sudo changeset 5960:e414c67e11fd Message-ID: changeset: 5960:e414c67e11fd in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/e414c67e11fd user: Todd C. Miller date: Wed Aug 04 09:13:17 2010 -0400 Log Message: Reference count cached passwd and group structs. The cache holds one reference itself and another is added by sudo_getgr{gid,nam} and sudo_getpw{uid,nam}. The final ref on the runas and user passwd and group structs are persistent for now. diffstat: check.c | 2 + get_pty.c | 4 +- glob.c | 6 +- ldap.c | 10 ++- match.c | 34 +++++++-- pwutil.c | 207 +++++++++++++++++++++++++++++++++++++------------------------ sudo.c | 14 +++- sudo.h | 4 + 8 files changed, 184 insertions(+), 97 deletions(-) From Todd.Miller at courtesan.com Wed Aug 4 09:33:00 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 04 Aug 2010 09:33:00 -0400 Subject: [sudo-commits] sudo changeset 5961:460b7b6ca2ce Message-ID: changeset: 5961:460b7b6ca2ce in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/460b7b6ca2ce user: Todd C. Miller date: Wed Aug 04 09:32:52 2010 -0400 Log Message: Repair usergr_matches() return value broken in last checkin. diffstat: match.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Wed Aug 4 09:43:37 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 04 Aug 2010 09:43:37 -0400 Subject: [sudo-commits] sudo changeset 5962:0a7dd113cb1f Message-ID: changeset: 5962:0a7dd113cb1f in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/0a7dd113cb1f user: Todd C. Miller date: Wed Aug 04 09:43:29 2010 -0400 Log Message: delref the old runas group in set_runasgr() diffstat: sudo.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Wed Aug 4 09:48:57 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 04 Aug 2010 09:48:57 -0400 Subject: [sudo-commits] sudo changeset 5963:fafb278f47a6 Message-ID: changeset: 5963:fafb278f47a6 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/fafb278f47a6 user: Todd C. Miller date: Wed Aug 04 09:48:51 2010 -0400 Log Message: Add missing delref in user_in_group() diffstat: pwutil.c | 37 +++++++++++++++++++++++++------------ 1 files changed, 25 insertions(+), 12 deletions(-) From Todd.Miller at courtesan.com Wed Aug 4 09:58:42 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 04 Aug 2010 09:58:42 -0400 Subject: [sudo-commits] sudo changeset 5964:19bc5a47db06 Message-ID: changeset: 5964:19bc5a47db06 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/19bc5a47db06 user: Todd C. Miller date: Wed Aug 04 09:58:34 2010 -0400 Log Message: Make sure we don't try to delref NULL. diffstat: check.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Wed Aug 4 09:58:55 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 04 Aug 2010 09:58:55 -0400 Subject: [sudo-commits] sudo changeset 5965:e32f2d35e6c9 Message-ID: changeset: 5965:e32f2d35e6c9 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/e32f2d35e6c9 user: Todd C. Miller date: Wed Aug 04 08:42:05 2010 -0400 Log Message: fix typo diffstat: doc/UPGRADE | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Wed Aug 4 09:58:56 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 04 Aug 2010 09:58:56 -0400 Subject: [sudo-commits] sudo changeset 5966:e544685523c3 Message-ID: changeset: 5966:e544685523c3 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/e544685523c3 user: Todd C. Miller date: Wed Aug 04 09:58:50 2010 -0400 Log Message: Reference count cached passwd and group structs. The cache holds one reference itself and another is added by sudo_getgr{gid,nam} and sudo_getpw{uid,nam}. The final ref on the runas and user passwd and group structs are persistent for now. diffstat: plugins/sudoers/check.c | 4 + plugins/sudoers/ldap.c | 10 +- plugins/sudoers/match.c | 36 +++++- plugins/sudoers/pwutil.c | 235 ++++++++++++++++++++++++++++----------------- plugins/sudoers/sudoers.c | 20 ++- plugins/sudoers/sudoers.h | 4 + 6 files changed, 201 insertions(+), 108 deletions(-) From Todd.Miller at courtesan.com Thu Aug 5 09:45:29 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 05 Aug 2010 09:45:29 -0400 Subject: [sudo-commits] sudo changeset 5967:883f0db94fd4 Message-ID: changeset: 5967:883f0db94fd4 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/883f0db94fd4 user: Todd C. Miller date: Thu Aug 05 09:45:21 2010 -0400 Log Message: Move calls to sudo_endgrent() and sudo_endpwent() to be after set_perms(), which may do passwd or group lookups. diffstat: sudo.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Thu Aug 5 10:17:31 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 05 Aug 2010 10:17:31 -0400 Subject: [sudo-commits] sudo changeset 5968:220be2de2f31 Message-ID: changeset: 5968:220be2de2f31 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/220be2de2f31 user: Todd C. Miller date: Thu Aug 05 10:17:21 2010 -0400 Log Message: delref sudo_user.pw, runas_pw and runas_gr immediately before we exec. diffstat: sudo.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Fri Aug 6 10:02:10 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 06 Aug 2010 10:02:10 -0400 Subject: [sudo-commits] sudo changeset 5969:8b285f601ec0 Message-ID: changeset: 5969:8b285f601ec0 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/8b285f601ec0 user: Todd C. Miller date: Fri Aug 06 09:39:01 2010 -0400 Log Message: When removing/resetting the timestamp file ignore the tty ticket contents. diffstat: check.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Fri Aug 6 10:02:11 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 06 Aug 2010 10:02:11 -0400 Subject: [sudo-commits] sudo changeset 5970:10a85eebbf4c Message-ID: changeset: 5970:10a85eebbf4c in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/10a85eebbf4c user: Todd C. Miller date: Fri Aug 06 10:02:02 2010 -0400 Log Message: No need to look up shadow password unless we are doing password-style authentication. This moves the shadow password lookup to the auth functions that need it. diffstat: Makefile.in | 2 +- auth/passwd.c | 32 +++++++++++++++++++++++++------- auth/secureware.c | 26 ++++++++++++++++++++++---- auth/sudo_auth.c | 4 ++-- auth/sudo_auth.h | 2 ++ configure | 4 ++-- configure.in | 6 +++--- pwutil.c | 22 +--------------------- 8 files changed, 58 insertions(+), 40 deletions(-) From Todd.Miller at courtesan.com Fri Aug 6 12:20:01 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 06 Aug 2010 12:20:01 -0400 Subject: [sudo-commits] sudo changeset 5971:d35cf4628d9a Message-ID: changeset: 5971:d35cf4628d9a in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/d35cf4628d9a user: Todd C. Miller date: Fri Aug 06 12:19:54 2010 -0400 Log Message: Don't print getspwuid as an auth method. diffstat: configure | 2 +- configure.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Fri Aug 6 13:55:40 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 06 Aug 2010 13:55:40 -0400 Subject: [sudo-commits] sudo changeset 5972:4d67d15dfd3b Message-ID: changeset: 5972:4d67d15dfd3b in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/4d67d15dfd3b user: Todd C. Miller date: Fri Aug 06 12:07:03 2010 -0400 Log Message: delref sudo_user.pw, runas_pw and runas_gr immediately before we return. diffstat: plugins/sudoers/sudoers.c | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Fri Aug 6 13:55:41 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 06 Aug 2010 13:55:41 -0400 Subject: [sudo-commits] sudo changeset 5973:b709f5667a0b Message-ID: changeset: 5973:b709f5667a0b in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b709f5667a0b user: Todd C. Miller date: Fri Aug 06 12:07:21 2010 -0400 Log Message: When removing/resetting the timestamp file ignore the tty ticket contents. diffstat: plugins/sudoers/check.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Fri Aug 6 13:55:42 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 06 Aug 2010 13:55:42 -0400 Subject: [sudo-commits] sudo changeset 5974:395115f89dd6 Message-ID: changeset: 5974:395115f89dd6 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/395115f89dd6 user: Todd C. Miller date: Fri Aug 06 13:53:17 2010 -0400 Log Message: Fix mismerge diffstat: plugins/sudoers/check.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Fri Aug 6 13:55:43 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 06 Aug 2010 13:55:43 -0400 Subject: [sudo-commits] sudo changeset 5975:bbe214cb4119 Message-ID: changeset: 5975:bbe214cb4119 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/bbe214cb4119 user: Todd C. Miller date: Fri Aug 06 13:54:35 2010 -0400 Log Message: Retain final passwd/group refs until the policy close() function. Note that this doesn't get called in all cases so putting this in a cleanup function is probably better. diffstat: plugins/sudoers/sudoers.c | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) From Todd.Miller at courtesan.com Fri Aug 6 13:55:44 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 06 Aug 2010 13:55:44 -0400 Subject: [sudo-commits] sudo changeset 5976:ba9e3eba2b72 Message-ID: changeset: 5976:ba9e3eba2b72 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/ba9e3eba2b72 user: Todd C. Miller date: Fri Aug 06 13:55:33 2010 -0400 Log Message: No need to look up shadow password unless we are doing password-style authentication. This moves the shadow password lookup to the auth functions that need it. diffstat: configure | 6 +++--- configure.in | 8 ++++---- plugins/sudoers/Makefile.in | 3 +-- plugins/sudoers/auth/passwd.c | 32 +++++++++++++++++++++++++------- plugins/sudoers/auth/secureware.c | 26 ++++++++++++++++++++++---- plugins/sudoers/auth/sudo_auth.c | 4 ++-- plugins/sudoers/auth/sudo_auth.h | 2 ++ plugins/sudoers/pwutil.c | 22 +--------------------- 8 files changed, 60 insertions(+), 43 deletions(-) From Todd.Miller at courtesan.com Fri Aug 6 17:09:13 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 06 Aug 2010 17:09:13 -0400 Subject: [sudo-commits] sudo changeset 5977:59d2b1328d1e Message-ID: changeset: 5977:59d2b1328d1e in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/59d2b1328d1e user: Todd C. Miller date: Fri Aug 06 17:09:03 2010 -0400 Log Message: For non-standalone auth methods, stop reading the password if the user enters ^C at the prompt. diffstat: auth/sudo_auth.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Fri Aug 6 17:17:07 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 06 Aug 2010 17:17:07 -0400 Subject: [sudo-commits] sudo changeset 5978:82c2911bb264 Message-ID: changeset: 5978:82c2911bb264 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/82c2911bb264 user: Todd C. Miller date: Fri Aug 06 17:16:57 2010 -0400 Log Message: For non-standalone auth methods, stop reading the password if the user enters ^C at the prompt. diffstat: plugins/sudoers/auth/sudo_auth.c | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) From Todd.Miller at courtesan.com Sat Aug 7 11:08:28 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 07 Aug 2010 11:08:28 -0400 Subject: [sudo-commits] sudo changeset 5979:d18ef30f0a72 Message-ID: changeset: 5979:d18ef30f0a72 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/d18ef30f0a72 user: Todd C. Miller date: Sat Aug 07 11:08:16 2010 -0400 Log Message: Better handling of versions with a patchlevel. For rpm and deb, use the patchlevel+1 as the release. For AIX, use the patchlevel as the 4th version number. For the rest, just leave the patchlevel in the version string. diffstat: sudo.pp | 27 +++++++++++++++++++-------- 1 files changed, 19 insertions(+), 8 deletions(-) From Todd.Miller at courtesan.com Sat Aug 7 11:08:37 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 07 Aug 2010 11:08:37 -0400 Subject: [sudo-commits] sudo changeset 5980:638bd35f2346 Message-ID: changeset: 5980:638bd35f2346 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/638bd35f2346 user: Todd C. Miller date: Sat Aug 07 11:08:32 2010 -0400 Log Message: Better handling of versions with a patchlevel. For rpm and deb, use the patchlevel+1 as the release. For AIX, use the patchlevel as the 4th version number. For the rest, just leave the patchlevel in the version string. diffstat: sudo.pp | 27 +++++++++++++++++++-------- 1 files changed, 19 insertions(+), 8 deletions(-) From Todd.Miller at courtesan.com Sat Aug 7 14:28:54 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 07 Aug 2010 14:28:54 -0400 Subject: [sudo-commits] sudo changeset 5981:814c87778567 Message-ID: changeset: 5981:814c87778567 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/814c87778567 user: Todd C. Miller date: Sat Aug 07 14:28:46 2010 -0400 Log Message: Set pp_kit_version and strip off patchlevel diffstat: sudo.pp | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Sat Aug 7 14:29:13 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 07 Aug 2010 14:29:13 -0400 Subject: [sudo-commits] sudo changeset 5982:aacfda1b676d Message-ID: changeset: 5982:aacfda1b676d in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/aacfda1b676d user: Todd C. Miller date: Sat Aug 07 14:29:09 2010 -0400 Log Message: Set pp_kit_version and strip off patch level diffstat: sudo.pp | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Mon Aug 9 06:35:03 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 09 Aug 2010 06:35:03 -0400 Subject: [sudo-commits] sudo changeset 5983:624a40269189 Message-ID: changeset: 5983:624a40269189 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/624a40269189 user: Todd C. Miller date: Mon Aug 09 06:31:14 2010 -0400 Log Message: Use sudo_waitpid() instead of bare waitpid() diffstat: exec_pty.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Mon Aug 9 06:35:04 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 09 Aug 2010 06:35:04 -0400 Subject: [sudo-commits] sudo changeset 5984:97719b3259f2 Message-ID: changeset: 5984:97719b3259f2 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/97719b3259f2 user: Todd C. Miller date: Mon Aug 09 06:34:55 2010 -0400 Log Message: Fix waitpid() loop termination condition. diffstat: exec.c | 27 ++++++++++++++------------- 1 files changed, 14 insertions(+), 13 deletions(-) From Todd.Miller at courtesan.com Tue Aug 10 13:44:11 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 10 Aug 2010 13:44:11 -0400 Subject: [sudo-commits] sudo changeset 5985:2be6218c3a36 Message-ID: changeset: 5985:2be6218c3a36 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/2be6218c3a36 user: Todd C. Miller date: Tue Aug 10 13:44:05 2010 -0400 Log Message: Remove some obsolete configure tests, ancient Unix systems are no longer supported. diffstat: common/gettime.c | 9 +---- compat/snprintf.c | 16 -------- compat/strcasecmp.c | 87 ----------------------------------------------- compat/strerror.c | 41 ---------------------- config.h.in | 46 +------------------------ configure | 62 ++++++++++++--------------------- configure.in | 22 ++--------- include/compat.h | 29 --------------- include/missing.h | 3 - plugins/sudoers/logging.c | 8 ---- plugins/sudoers/sudoers.c | 8 +--- plugins/sudoers/visudo.c | 6 +-- src/sudo.c | 6 +-- 13 files changed, 33 insertions(+), 310 deletions(-) From Todd.Miller at courtesan.com Tue Aug 10 13:50:46 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 10 Aug 2010 13:50:46 -0400 Subject: [sudo-commits] sudo changeset 5986:7490426c99ae Message-ID: changeset: 5986:7490426c99ae in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/7490426c99ae user: Todd C. Miller date: Tue Aug 10 13:50:40 2010 -0400 Log Message: Use gettimeofday() directly instead of via the gettime() wrapper. diffstat: common/Makefile.in | 3 +-- common/gettime.c | 37 ------------------------------------- compat/mkstemps.c | 4 +--- plugins/sudoers/sudoers.h | 3 --- plugins/sudoers/visudo.c | 4 ++-- src/sudo.h | 3 --- src/sudo_edit.c | 4 ++-- 7 files changed, 6 insertions(+), 52 deletions(-) From Todd.Miller at courtesan.com Tue Aug 10 16:37:02 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 10 Aug 2010 16:37:02 -0400 Subject: [sudo-commits] sudo changeset 5987:cabe68e07807 Message-ID: changeset: 5987:cabe68e07807 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/cabe68e07807 user: Todd C. Miller date: Tue Aug 10 16:36:54 2010 -0400 Log Message: sudoers.h includes sudo_plugin.h for us diffstat: plugins/sudoers/sudoers.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Thu Aug 12 10:29:49 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 12 Aug 2010 10:29:49 -0400 Subject: [sudo-commits] sudo changeset 5988:8eeefe8d7e77 Message-ID: changeset: 5988:8eeefe8d7e77 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/8eeefe8d7e77 user: Todd C. Miller date: Thu Aug 12 10:27:56 2010 -0400 Log Message: Make _sudo_printf return the number of characters printed on success like printf(3). diffstat: src/conversation.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Thu Aug 12 10:29:50 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 12 Aug 2010 10:29:50 -0400 Subject: [sudo-commits] sudo changeset 5989:745c0017814c Message-ID: changeset: 5989:745c0017814c in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/745c0017814c user: Todd C. Miller date: Thu Aug 12 10:29:43 2010 -0400 Log Message: Document sudo_conv_t function and sudo_printf_t return values. diffstat: doc/sudo_plugin.cat | 240 ++++++++++++++++++++++++------------------------ doc/sudo_plugin.man.in | 8 +- doc/sudo_plugin.pod | 6 + 3 files changed, 133 insertions(+), 121 deletions(-) From Todd.Miller at courtesan.com Thu Aug 12 11:56:01 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 12 Aug 2010 11:56:01 -0400 Subject: [sudo-commits] sudo changeset 5990:a5296cb3a20a Message-ID: changeset: 5990:a5296cb3a20a in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/a5296cb3a20a user: Todd C. Miller date: Thu Aug 12 11:55:56 2010 -0400 Log Message: Update comment diffstat: plugins/sudoers/check.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) From Todd.Miller at courtesan.com Sat Aug 14 10:18:36 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 14 Aug 2010 10:18:36 -0400 Subject: [sudo-commits] sudo changeset 5991:c8f6bc58fd86 Message-ID: changeset: 5991:c8f6bc58fd86 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/c8f6bc58fd86 user: Todd C. Miller date: Sat Aug 14 10:18:27 2010 -0400 Log Message: If the user hits ^C while a password is being read, error out before reading any further passwords in the pam conversation function. Otherwise, if multiple PAM auth methods are required, the user will have to hit ^C for each one. diffstat: auth/pam.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Sat Aug 14 10:18:53 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 14 Aug 2010 10:18:53 -0400 Subject: [sudo-commits] sudo changeset 5992:23782631748c Message-ID: changeset: 5992:23782631748c in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/23782631748c user: Todd C. Miller date: Sat Aug 14 10:18:49 2010 -0400 Log Message: If the user hits ^C while a password is being read, error out before reading any further passwords in the pam conversation function. Otherwise, if multiple PAM auth methods are required, the user will have to hit ^C for each one. diffstat: plugins/sudoers/auth/pam.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Mon Aug 16 14:06:05 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 16 Aug 2010 14:06:05 -0400 Subject: [sudo-commits] sudo changeset 5993:572909ae9716 Message-ID: changeset: 5993:572909ae9716 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/572909ae9716 user: Todd C. Miller date: Mon Aug 16 14:05:44 2010 -0400 Log Message: Merge compat.h and missing.h into missing.h diffstat: MANIFEST | 1 - common/Makefile.in | 16 +- common/aix.c | 2 +- common/alloc.c | 1 - common/atobool.c | 1 - common/fileops.c | 1 - common/fmt_string.c | 2 +- common/lbuf.c | 3 +- common/list.c | 2 +- common/term.c | 2 +- common/zero_bytes.c | 2 +- compat/Makefile.in | 39 ++-- compat/closefrom.c | 2 +- compat/fnmatch.c | 2 +- compat/getcwd.c | 2 +- compat/getgrouplist.c | 2 +- compat/getline.c | 2 +- compat/getprogname.c | 2 +- compat/glob.c | 2 +- compat/isblank.c | 2 +- compat/memrchr.c | 2 +- compat/mksiglist.c | 4 +- compat/mkstemps.c | 2 +- compat/nanosleep.c | 2 +- compat/setenv.c | 2 +- compat/snprintf.c | 2 +- compat/strlcat.c | 3 +- compat/strlcpy.c | 2 +- compat/strsignal.c | 2 +- compat/unsetenv.c | 2 +- compat/utimes.c | 2 +- include/compat.h | 70 +++++++++- include/missing.h | 247 +++++++++++++++++++++++++++++++++++- plugins/sample/sample_plugin.c | 1 - plugins/sample_group/getgrent.c | 1 - plugins/sample_group/sample_group.c | 1 - plugins/sudoers/Makefile.in | 18 +- plugins/sudoers/audit.c | 2 +- plugins/sudoers/boottime.c | 1 - plugins/sudoers/getdate.c | 2 +- plugins/sudoers/getdate.y | 2 +- plugins/sudoers/linux_audit.c | 3 +- plugins/sudoers/plugin_error.c | 2 +- plugins/sudoers/sudoers.h | 3 +- plugins/sudoers/sudoreplay.c | 3 +- plugins/sudoers/timestr.c | 2 +- src/Makefile.in | 13 +- src/error.c | 2 +- src/sesh.c | 2 +- src/sudo.h | 3 +- src/sudo_noexec.c | 2 +- src/ttysize.c | 2 +- 52 files changed, 392 insertions(+), 103 deletions(-) From Todd.Miller at courtesan.com Mon Aug 16 14:22:21 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 16 Aug 2010 14:22:21 -0400 Subject: [sudo-commits] sudo changeset 5994:905905c7a8f0 Message-ID: changeset: 5994:905905c7a8f0 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/905905c7a8f0 user: Todd C. Miller date: Mon Aug 16 14:22:14 2010 -0400 Log Message: Merge compat.h and missing.h into missing.h diffstat: Makefile.in | 54 +++++----- aix.c | 2 +- audit.c | 2 +- boottime.c | 1 - compat.h | 312 ---------------------------------------------------------- error.c | 2 +- fnmatch.c | 2 +- getcwd.c | 2 +- getdate.c | 2 +- getdate.y | 2 +- getline.c | 2 +- getprogname.c | 2 +- gettime.c | 2 +- glob.c | 2 +- isblank.c | 2 +- linux_audit.c | 3 +- memrchr.c | 2 +- missing.h | 295 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- mksiglist.c | 4 +- nanosleep.c | 2 +- sesh.c | 2 +- setsid.c | 2 +- sigaction.c | 2 +- snprintf.c | 2 +- strcasecmp.c | 2 +- strerror.c | 2 +- strlcat.c | 3 +- strlcpy.c | 2 +- strsignal.c | 2 +- sudo.h | 2 +- sudo_noexec.c | 2 +- sudoreplay.c | 3 +- timestr.c | 2 +- utimes.c | 2 +- vasgroups.c | 2 +- zero_bytes.c | 2 +- 36 files changed, 354 insertions(+), 377 deletions(-) From Todd.Miller at courtesan.com Tue Aug 17 09:50:09 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 17 Aug 2010 09:50:09 -0400 Subject: [sudo-commits] sudo changeset 5995:a3e6c5a66890 Message-ID: changeset: 5995:a3e6c5a66890 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/a3e6c5a66890 user: Todd C. Miller date: Tue Aug 17 09:49:59 2010 -0400 Log Message: Fix typos that prevented compilation on Irix; Friedrich Haubensak diffstat: boottime.c | 2 +- get_pty.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Tue Aug 17 09:51:19 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 17 Aug 2010 09:51:19 -0400 Subject: [sudo-commits] sudo changeset 5996:b48be51b65fc Message-ID: changeset: 5996:b48be51b65fc in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/b48be51b65fc user: Todd C. Miller date: Tue Aug 17 09:51:12 2010 -0400 Log Message: Fix typo that prevented compilation on Irix; Friedrich Haubensak diffstat: src/get_pty.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Wed Aug 18 07:42:55 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 18 Aug 2010 07:42:55 -0400 Subject: [sudo-commits] sudo changeset 5997:ab14a68e546f Message-ID: changeset: 5997:ab14a68e546f in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/ab14a68e546f user: Todd C. Miller date: Wed Aug 18 07:42:47 2010 -0400 Log Message: Substitute sysconfdir in the installed sudoers file to get the correct path for sudoers.d. diffstat: configure | 3 +- configure.in | 2 +- sudoers | 89 ----------------------------------------------------------- sudoers.in | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 93 insertions(+), 91 deletions(-) From Todd.Miller at courtesan.com Wed Aug 18 08:09:20 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 18 Aug 2010 08:09:20 -0400 Subject: [sudo-commits] sudo changeset 5998:86072b6cd55d Message-ID: changeset: 5998:86072b6cd55d in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/86072b6cd55d user: Todd C. Miller date: Wed Aug 18 08:09:10 2010 -0400 Log Message: Substitute sysconfdir in the installed sudoers file to get the correct path for sudoers.d. diffstat: configure | 3 +- configure.in | 2 +- plugins/sudoers/sudoers | 89 --------------------------------------------- plugins/sudoers/sudoers.in | 90 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 93 insertions(+), 91 deletions(-) From Todd.Miller at courtesan.com Wed Aug 18 15:25:28 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 18 Aug 2010 15:25:28 -0400 Subject: [sudo-commits] sudo changeset 5999:2672ae047984 Message-ID: changeset: 5999:2672ae047984 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/2672ae047984 user: Todd C. Miller date: Wed Aug 18 15:25:19 2010 -0400 Log Message: Set dupcheck to TRUE when setting new HOME value if !env_reset but always_set_home is true. Prevents a duplicate HOME in the environment (old value plus the new one) introduced in 9f97e4b43a4b. diffstat: env.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Wed Aug 18 15:26:31 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 18 Aug 2010 15:26:31 -0400 Subject: [sudo-commits] sudo changeset 6000:9ca19183794f Message-ID: changeset: 6000:9ca19183794f in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/9ca19183794f user: Todd C. Miller date: Wed Aug 18 15:26:26 2010 -0400 Log Message: Set dupcheck to TRUE when setting new HOME value if !env_reset but always_set_home is true. Prevents a duplicate HOME in the environment (old value plus the new one) introduced in f421f8827340. diffstat: plugins/sudoers/env.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Wed Aug 18 15:32:39 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Wed, 18 Aug 2010 15:32:39 -0400 Subject: [sudo-commits] sudo changeset 6001:616509f85d6c Message-ID: changeset: 6001:616509f85d6c in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/616509f85d6c user: Todd C. Miller date: Wed Aug 18 15:32:30 2010 -0400 Log Message: Replace sudoers with sudoers.in in DISTFILES diffstat: Makefile.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Fri Aug 20 14:24:14 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 20 Aug 2010 14:24:14 -0400 Subject: [sudo-commits] sudo changeset 6002:68895469ea8d Message-ID: changeset: 6002:68895469ea8d in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/68895469ea8d user: Todd C. Miller date: Fri Aug 20 14:24:07 2010 -0400 Log Message: Plug memory leak diffstat: plugins/sudoers/plugin_error.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Fri Aug 20 16:53:30 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 20 Aug 2010 16:53:30 -0400 Subject: [sudo-commits] sudo changeset 6003:d69e363a506b Message-ID: changeset: 6003:d69e363a506b in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/d69e363a506b user: Todd C. Miller date: Fri Aug 20 16:53:21 2010 -0400 Log Message: Convert a remaining puts() and putchar() to use the output function. diffstat: common/lbuf.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Fri Aug 20 16:55:02 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Fri, 20 Aug 2010 16:55:02 -0400 Subject: [sudo-commits] sudo changeset 6004:d68c213feb0f Message-ID: changeset: 6004:d68c213feb0f in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/d68c213feb0f user: Todd C. Miller date: Fri Aug 20 16:54:57 2010 -0400 Log Message: Convert a remaining puts() and putchar() to use the output function. diffstat: lbuf.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Sat Aug 21 08:31:38 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 21 Aug 2010 08:31:38 -0400 Subject: [sudo-commits] sudo changeset 6005:2ae1bbe4437a Message-ID: changeset: 6005:2ae1bbe4437a in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/2ae1bbe4437a user: Todd C. Miller date: Sat Aug 21 08:31:21 2010 -0400 Log Message: Don't need to fork and wait when compiled with --disable-pam-session diffstat: sudo.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Sat Aug 21 08:48:21 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 21 Aug 2010 08:48:21 -0400 Subject: [sudo-commits] sudo changeset 6006:3130e37787af Message-ID: changeset: 6006:3130e37787af in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/3130e37787af user: Todd C. Miller date: Sat Aug 21 08:48:13 2010 -0400 Log Message: Move get_auth() into check.c where it is actually used. diffstat: check.c | 39 +++++++++++++++++++++++++++++++++++---- sudo.c | 34 ---------------------------------- 2 files changed, 35 insertions(+), 38 deletions(-) From Todd.Miller at courtesan.com Sat Aug 21 08:48:40 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 21 Aug 2010 08:48:40 -0400 Subject: [sudo-commits] sudo changeset 6007:e31db0ce3a61 Message-ID: changeset: 6007:e31db0ce3a61 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/e31db0ce3a61 user: Todd C. Miller date: Sat Aug 21 08:48:35 2010 -0400 Log Message: Move get_auth() into check.c where it is actually used. diffstat: plugins/sudoers/check.c | 39 +++++++++++++++++++++++++++++++++++---- plugins/sudoers/sudoers.c | 36 +----------------------------------- 2 files changed, 36 insertions(+), 39 deletions(-) From Todd.Miller at courtesan.com Sat Aug 21 10:02:38 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 21 Aug 2010 10:02:38 -0400 Subject: [sudo-commits] sudo changeset 6008:e30778d73c0b Message-ID: changeset: 6008:e30778d73c0b in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/e30778d73c0b user: Todd C. Miller date: Sat Aug 21 10:02:29 2010 -0400 Log Message: g/c unused auth_pw global diffstat: sudo.c | 2 +- sudo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Sat Aug 21 10:02:55 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Sat, 21 Aug 2010 10:02:55 -0400 Subject: [sudo-commits] sudo changeset 6009:40eb7477ba17 Message-ID: changeset: 6009:40eb7477ba17 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/40eb7477ba17 user: Todd C. Miller date: Sat Aug 21 10:02:50 2010 -0400 Log Message: g/c unused auth_pw extern definition diffstat: plugins/sudoers/sudoers.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Tue Aug 24 08:42:53 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Tue, 24 Aug 2010 08:42:53 -0400 Subject: [sudo-commits] sudo changeset 6011:495dce52a5aa Message-ID: changeset: 6011:495dce52a5aa in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/495dce52a5aa user: Todd C. Miller date: Tue Aug 24 08:42:47 2010 -0400 Log Message: When not logging I/O install a handler for SIGCONT and deliver it to the command upon resume. Fixes bugzilla #431 diffstat: src/exec.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) From Todd.Miller at courtesan.com Thu Aug 26 11:06:25 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 26 Aug 2010 11:06:25 -0400 Subject: [sudo-commits] sudo changeset 6012:fb7422e90f03 Message-ID: changeset: 6012:fb7422e90f03 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/fb7422e90f03 user: Todd C. Miller date: Thu Aug 26 11:06:12 2010 -0400 Log Message: Add target to generate sudoers file Remove generated sudoers file as part of distclean diffstat: plugins/sudoers/Makefile.in | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Thu Aug 26 11:10:11 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 26 Aug 2010 11:10:11 -0400 Subject: [sudo-commits] sudo changeset 6013:448627fc35b6 Message-ID: changeset: 6013:448627fc35b6 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/448627fc35b6 user: Todd C. Miller date: Thu Aug 26 11:10:00 2010 -0400 Log Message: Add target to generate sudoers file Remove generated sudoers file as part of distclean diffstat: Makefile.in | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Thu Aug 26 11:36:53 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 26 Aug 2010 11:36:53 -0400 Subject: [sudo-commits] sudo changeset 6014:24a695707b67 Message-ID: changeset: 6014:24a695707b67 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/24a695707b67 user: Todd C. Miller date: Thu Aug 26 11:36:47 2010 -0400 Log Message: If runas_pw changes, reset the stashed runas aux group vector. Otherwise, if runas_default is set in a per-command Defaults statement, the command runs with root's aux group vector (i.e. the one that was used when locating the command). diffstat: set_perms.c | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) From Todd.Miller at courtesan.com Thu Aug 26 11:40:11 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Thu, 26 Aug 2010 11:40:11 -0400 Subject: [sudo-commits] sudo changeset 6015:24f9107cedd2 Message-ID: changeset: 6015:24f9107cedd2 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/24f9107cedd2 user: Todd C. Miller date: Thu Aug 26 11:40:04 2010 -0400 Log Message: If runas_pw changes, reset the stashed runas aux group vector. Otherwise, if runas_default is set in a per-command Defaults statement, the command runs with root's aux group vector (i.e. the one that was used when locating the command). diffstat: plugins/sudoers/set_perms.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) From Todd.Miller at courtesan.com Mon Aug 30 09:06:15 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 30 Aug 2010 09:06:15 -0400 Subject: [sudo-commits] sudo changeset 6016:a26afd8db531 Message-ID: changeset: 6016:a26afd8db531 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/a26afd8db531 user: Todd C. Miller date: Mon Aug 30 09:06:04 2010 -0400 Log Message: Install sudoers file from the build dir not hte src dir. diffstat: Makefile.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Mon Aug 30 09:06:31 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 30 Aug 2010 09:06:31 -0400 Subject: [sudo-commits] sudo changeset 6017:ca89e962dbf4 Message-ID: changeset: 6017:ca89e962dbf4 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/ca89e962dbf4 user: Todd C. Miller date: Mon Aug 30 09:06:25 2010 -0400 Log Message: Install sudoers file from the build dir not hte src dir. diffstat: plugins/sudoers/Makefile.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From Todd.Miller at courtesan.com Mon Aug 30 09:08:30 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 30 Aug 2010 09:08:30 -0400 Subject: [sudo-commits] sudo changeset 6018:2ffbbb12f322 Message-ID: changeset: 6018:2ffbbb12f322 in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/2ffbbb12f322 user: Todd C. Miller date: Mon Aug 30 09:08:16 2010 -0400 Log Message: Add #include of sys/types.h for .c files that include missing.h to be sure that size_t and ssize_t are defined. diffstat: error.c | 2 ++ getprogname.c | 2 ++ isblank.c | 1 + missing.h | 16 +++++++++------- mksiglist.c | 2 ++ sigaction.c | 1 + strerror.c | 1 + strsignal.c | 2 ++ sudo_noexec.c | 2 ++ 9 files changed, 22 insertions(+), 7 deletions(-) From Todd.Miller at courtesan.com Mon Aug 30 09:15:01 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 30 Aug 2010 09:15:01 -0400 Subject: [sudo-commits] sudo changeset 6019:08e3132dbf4f Message-ID: changeset: 6019:08e3132dbf4f in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/08e3132dbf4f user: Todd C. Miller date: Mon Aug 30 09:14:41 2010 -0400 Log Message: Add #include of sys/types.h for .c files that include missing.h to be sure that size_t and ssize_t are defined. diffstat: compat/fnmatch.c | 2 ++ compat/getprogname.c | 5 ++++- compat/isblank.c | 3 +++ compat/mksiglist.c | 2 ++ compat/strsignal.c | 5 ++++- plugins/sudoers/plugin_error.c | 5 ++++- src/error.c | 5 ++++- src/sudo_noexec.c | 2 ++ 8 files changed, 25 insertions(+), 4 deletions(-) From Todd.Miller at courtesan.com Mon Aug 30 09:48:10 2010 From: Todd.Miller at courtesan.com (Todd C. Miller) Date: Mon, 30 Aug 2010 09:48:10 -0400 Subject: [sudo-commits] sudo changeset 6020:458a749c2c5e Message-ID: changeset: 6020:458a749c2c5e in /home/hg/sudo details: http://www.sudo.ws/repos/sudo/rev/458a749c2c5e user: Todd C. Miller date: Mon Aug 30 09:47:52 2010 -0400 Log Message: Add missing definition of timedir diffstat: plugins/sudoers/Makefile.in | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)