]>
granicus.if.org Git - sudo/log
Todd C. Miller [Tue, 1 Sep 2009 20:03:07 +0000 (20:03 +0000)]
Install sudoreplay
Todd C. Miller [Tue, 1 Sep 2009 19:53:41 +0000 (19:53 +0000)]
remove unused variable
Todd C. Miller [Sun, 30 Aug 2009 15:18:50 +0000 (15:18 +0000)]
Log the session ID, if there is one. Currently logs ID=XXXXXX, perhaps
should be SESSIONID or SESSID.
Todd C. Miller [Sun, 30 Aug 2009 14:56:18 +0000 (14:56 +0000)]
Add sudoreplay docs
Todd C. Miller [Sun, 30 Aug 2009 14:50:51 +0000 (14:50 +0000)]
add -V (version) flag
Todd C. Miller [Sun, 30 Aug 2009 14:11:04 +0000 (14:11 +0000)]
Hook up max_wait.
Todd C. Miller [Sun, 30 Aug 2009 11:22:53 +0000 (11:22 +0000)]
Use base36 number for the ID and store script files with paths like
/var/log/sudo-session/00/00/00{,.tim,.scr}.
This gives us 36^6 (2,176,782,336) unique IDs.
Todd C. Miller [Sun, 23 Aug 2009 23:52:23 +0000 (23:52 +0000)]
Add check for regcomp
Todd C. Miller [Sun, 23 Aug 2009 13:33:26 +0000 (13:33 +0000)]
Add support for selecting by pattern and tty when listing.
Todd C. Miller [Mon, 17 Aug 2009 14:17:08 +0000 (14:17 +0000)]
The beginnings of a list mode.
Todd C. Miller [Sun, 16 Aug 2009 15:16:04 +0000 (15:16 +0000)]
fix pasto
Todd C. Miller [Sun, 16 Aug 2009 15:13:31 +0000 (15:13 +0000)]
Add scaffolding for building sudoreplay
Todd C. Miller [Sun, 16 Aug 2009 15:12:16 +0000 (15:12 +0000)]
include error.h
first arg to nanotime is const
Todd C. Miller [Sun, 16 Aug 2009 14:58:13 +0000 (14:58 +0000)]
Initial cut at sudoreplay; replay a sudo session.
Todd C. Miller [Sat, 8 Aug 2009 20:00:17 +0000 (20:00 +0000)]
Fix wait() usage and use correct wait status.
Todd C. Miller [Sat, 8 Aug 2009 12:56:02 +0000 (12:56 +0000)]
Add protos for term_* to sudo.h
Todd C. Miller [Sat, 8 Aug 2009 12:55:43 +0000 (12:55 +0000)]
Fix detection of the child process exiting. Since the child is in
its own session we should only ever get SIGCHLD for that process but
better safe than sorry.
Todd C. Miller [Sat, 8 Aug 2009 00:29:30 +0000 (00:29 +0000)]
Add UNIX98 pty support.
Todd C. Miller [Sat, 8 Aug 2009 00:26:13 +0000 (00:26 +0000)]
Add UNIX98 pty support.
Todd C. Miller [Fri, 7 Aug 2009 21:06:54 +0000 (21:06 +0000)]
For raw mode, don't bother clearing BRKINT or PARMRK and clear IUCLC
if it is defined.
Todd C. Miller [Fri, 7 Aug 2009 14:21:51 +0000 (14:21 +0000)]
Set PAM_RUSER and PAM_RHOST early so they can be used during authentication.
Based on a patch from Jamie Beverly.
Todd C. Miller [Fri, 7 Aug 2009 13:25:22 +0000 (13:25 +0000)]
Close dir before returning if strlcpy() reports overflow.
From Martynas Venckus.
Todd C. Miller [Fri, 7 Aug 2009 13:23:07 +0000 (13:23 +0000)]
On Linux, the openpty proto libes in pty.h
Todd C. Miller [Fri, 7 Aug 2009 13:09:09 +0000 (13:09 +0000)]
Call vhangup on exit if the system has it
Use setpgrp() if no setsid()
Todd C. Miller [Thu, 6 Aug 2009 15:53:21 +0000 (15:53 +0000)]
Add checks for revoke and vhangup if we don't have openpty
Todd C. Miller [Thu, 6 Aug 2009 15:51:12 +0000 (15:51 +0000)]
Session logging guts that got forgotten in the previous commit.
Todd C. Miller [Thu, 6 Aug 2009 00:04:14 +0000 (00:04 +0000)]
First cut at session logging for sudo. Still need to write get_pty()
for Unix 98 and old-style BSD ptys. Also needs documentation and
general cleanup.
Todd C. Miller [Wed, 5 Aug 2009 23:59:21 +0000 (23:59 +0000)]
Fix a bug introduced with def_closefrom. The value of def_closefrom
already includes the +1.
Todd C. Miller [Wed, 29 Jul 2009 22:16:44 +0000 (22:16 +0000)]
Generate sudo distributions with pax in ustar mode. No longer need
to use a temp file or have the source dir name match the version.
Todd C. Miller [Sat, 18 Jul 2009 13:55:37 +0000 (13:55 +0000)]
Fix expansion of %h in #include names. Fixes bugzilla 363
Todd C. Miller [Sun, 12 Jul 2009 21:17:13 +0000 (21:17 +0000)]
If no arg assume def_data.in
Todd C. Miller [Sun, 12 Jul 2009 01:27:03 +0000 (01:27 +0000)]
Update for 1.7.2
Todd C. Miller [Sun, 12 Jul 2009 01:12:29 +0000 (01:12 +0000)]
sync
Todd C. Miller [Tue, 30 Jun 2009 12:41:09 +0000 (12:41 +0000)]
Add missing single quotes around a colon in Runas_Spec definition.
From Elias Benali.
Todd C. Miller [Mon, 29 Jun 2009 13:36:42 +0000 (13:36 +0000)]
regen
Todd C. Miller [Mon, 29 Jun 2009 13:36:20 +0000 (13:36 +0000)]
In rbrepair, re-color the root or the first non-block node we find to
be black. Re-coloring the root is probably not needed but won't hurt.
Todd C. Miller [Mon, 29 Jun 2009 13:35:21 +0000 (13:35 +0000)]
regen
Todd C. Miller [Fri, 26 Jun 2009 20:40:17 +0000 (20:40 +0000)]
When repairing the tree, don't touch the root node.
Todd C. Miller [Thu, 25 Jun 2009 12:44:33 +0000 (12:44 +0000)]
Protect call to setegid in runas_setup with #ifdef HAVE_SETEUID.
Reported by Josef Schmid.
Todd C. Miller [Tue, 23 Jun 2009 18:29:02 +0000 (18:29 +0000)]
Document that we accept env_pam-style environment files
Todd C. Miller [Tue, 23 Jun 2009 18:24:42 +0000 (18:24 +0000)]
Adapt to accept pam_env-style /etc/environment which allows shell-style
lines such as: export EDITOR="/usr/bin/vi"
Todd C. Miller [Tue, 23 Jun 2009 16:22:48 +0000 (16:22 +0000)]
Make it clear that env_delete only works when !env_reset.
From Loïc Minier
Todd C. Miller [Mon, 15 Jun 2009 21:19:47 +0000 (21:19 +0000)]
Add non-unix group bits, adapted from Quest
Todd C. Miller [Mon, 15 Jun 2009 21:18:53 +0000 (21:18 +0000)]
build the .cat page in the current working dir, not the src dir
Todd C. Miller [Mon, 15 Jun 2009 13:10:01 +0000 (13:10 +0000)]
Return EINVAL in setenv() if var is NULL or the empty string to match
glibc behavior.
Todd C. Miller [Sat, 13 Jun 2009 20:52:50 +0000 (20:52 +0000)]
Use AS_HELP_STRING for AC_ARG_WITH and AC_ARG_ENABLE
Todd C. Miller [Thu, 11 Jun 2009 20:29:12 +0000 (20:29 +0000)]
regen
Todd C. Miller [Tue, 9 Jun 2009 14:08:55 +0000 (14:08 +0000)]
Document --with-libvas and --with-libvas-rpath
Todd C. Miller [Fri, 29 May 2009 13:43:12 +0000 (13:43 +0000)]
For netscape-derived LDAP SDKs the cert and key paths may be a
directory or a file. However, version 5.0 of the SDK only seems
to support using a directory. If ldapssl_clientauth_init fails and
the cert or key paths look like they could be files, strip off the
last path element and try again.
Todd C. Miller [Fri, 29 May 2009 13:40:52 +0000 (13:40 +0000)]
Add non-Unix group .o to COMMON_OBJS and substitute in path to flex.
Todd C. Miller [Wed, 27 May 2009 00:49:07 +0000 (00:49 +0000)]
Update non-Unix group support from Quest, as reworked by me.
Todd C. Miller [Wed, 27 May 2009 00:47:17 +0000 (00:47 +0000)]
regen
Todd C. Miller [Wed, 27 May 2009 00:46:51 +0000 (00:46 +0000)]
Add support for escaped hex chars in names, e.g. \x20 for space.
Todd C. Miller [Mon, 25 May 2009 12:02:42 +0000 (12:02 +0000)]
Update copyright years.
Todd C. Miller [Sun, 24 May 2009 12:33:00 +0000 (12:33 +0000)]
Minor fixes for Minix-3
Todd C. Miller [Fri, 22 May 2009 10:37:29 +0000 (10:37 +0000)]
Handle getgroups() returning 0. Also add missing check for HAVE_GETGROUPS.
Todd C. Miller [Tue, 19 May 2009 21:24:05 +0000 (21:24 +0000)]
Replace version.h with PACKAGE_VERSION set via AC_INIT in configure.
Todd C. Miller [Mon, 18 May 2009 10:33:33 +0000 (10:33 +0000)]
Remove group setting code in setusercontext case, we will do it ourselves
later on in runas_setup. Set the gid after initgroups/setgroups is called,
since on Mac OS X it seems to change the egid.
Todd C. Miller [Sun, 17 May 2009 22:19:38 +0000 (22:19 +0000)]
Initial bits of non-unix group support using Quest Authentication Services
Todd C. Miller [Sun, 17 May 2009 20:52:15 +0000 (20:52 +0000)]
Accept %:foo as a non-Unix group
Todd C. Miller [Sun, 17 May 2009 20:22:24 +0000 (20:22 +0000)]
Allow user/group to be double quoted in the case of non-Unix groups
which contain spaces.
Todd C. Miller [Mon, 11 May 2009 16:47:10 +0000 (16:47 +0000)]
Don't allow the user to specify the default runas user if their
sudoers entry only allows them to run as a group.
Todd C. Miller [Sun, 10 May 2009 11:59:53 +0000 (11:59 +0000)]
Must call audit_success before we change uids.
Todd C. Miller [Sun, 10 May 2009 11:52:13 +0000 (11:52 +0000)]
Add option for set_perm to not exit on failure and use this in
the logging routines.
Todd C. Miller [Sun, 10 May 2009 11:33:45 +0000 (11:33 +0000)]
In -l mode, if the user is only allowed to run as a group, display
the user's name, not root's before the allowed group.
Todd C. Miller [Sun, 10 May 2009 01:00:23 +0000 (01:00 +0000)]
Fix -g mode, broken by rev 1.503 which had the side effect of setting
the runas user to root unilaterally.
Todd C. Miller [Fri, 8 May 2009 20:19:20 +0000 (20:19 +0000)]
When unlocking a file with fcntl, use F_SETLK, not F_SETLKW.
Todd C. Miller [Fri, 8 May 2009 17:07:10 +0000 (17:07 +0000)]
Only cache by the method we fetched for pwd and grp lookups. Previously
we cached both by namd and id but this can cause problems for entries
that share the same id. Also add more info in the error message in case
the insert fails (which should now be impossible).
Todd C. Miller [Thu, 30 Apr 2009 19:04:08 +0000 (19:04 +0000)]
Add a clarification from Nick Sieger
Todd C. Miller [Sat, 25 Apr 2009 16:49:22 +0000 (16:49 +0000)]
Inline the setting of the environment string.
Todd C. Miller [Fri, 24 Apr 2009 18:53:15 +0000 (18:53 +0000)]
setenv(3) in Linux treats a NUL value as the empty string
setenv(3) in BSD doesn't return an error if the name has '=' in it, it
just treats the '=' as end of string.
Todd C. Miller [Wed, 22 Apr 2009 20:32:08 +0000 (20:32 +0000)]
Not all systems have d_namlen
Todd C. Miller [Mon, 20 Apr 2009 17:53:02 +0000 (17:53 +0000)]
Fix up some pod2html issues.
Todd C. Miller [Sun, 19 Apr 2009 18:09:24 +0000 (18:09 +0000)]
Check for NULL ifa_addr and ifa_netmask.
Adapted from a diff from Quest Software.
Todd C. Miller [Sun, 19 Apr 2009 13:01:20 +0000 (13:01 +0000)]
Ignore files ending in '~' in sudo.d (emacs backup files)
Todd C. Miller [Sun, 19 Apr 2009 12:56:42 +0000 (12:56 +0000)]
Ignore files ending in '~' in sudo.d (emacs backup files)
Todd C. Miller [Sat, 18 Apr 2009 23:37:33 +0000 (23:37 +0000)]
For #includedir, ignore any file containing a dot
Todd C. Miller [Sat, 18 Apr 2009 23:25:38 +0000 (23:25 +0000)]
Bump version
Todd C. Miller [Sat, 18 Apr 2009 23:25:08 +0000 (23:25 +0000)]
Implement #includedir directive. Files in an includedir are not edited
by visudo unless they contain a syntax error.
Todd C. Miller [Sat, 18 Apr 2009 16:06:05 +0000 (16:06 +0000)]
sync
Todd C. Miller [Sat, 18 Apr 2009 14:27:42 +0000 (14:27 +0000)]
Forgot umask_override
Todd C. Miller [Sat, 18 Apr 2009 13:25:08 +0000 (13:25 +0000)]
sync
Todd C. Miller [Thu, 16 Apr 2009 12:22:04 +0000 (12:22 +0000)]
Rewind stream if we fdopen sudoers since it may not be at the beginning.
Set the keepopen flag on already-open files too so the lexer doesn't
close them out from under us.
Todd C. Miller [Thu, 16 Apr 2009 12:18:10 +0000 (12:18 +0000)]
Print the proper file name when there is a parse error in an include
file.
Todd C. Miller [Sat, 11 Apr 2009 11:45:25 +0000 (11:45 +0000)]
Sync
Todd C. Miller [Fri, 10 Apr 2009 20:59:42 +0000 (20:59 +0000)]
Fix a warning when --without-ldap is specified.
Todd C. Miller [Sun, 5 Apr 2009 16:25:04 +0000 (16:25 +0000)]
Store aliases that we remove during check_aliases in a freelist and
free them at the end so we don't leak memory.
Todd C. Miller [Sat, 28 Mar 2009 13:30:15 +0000 (13:30 +0000)]
Check aliases in -c mode too.
Todd C. Miller [Sat, 28 Mar 2009 13:09:51 +0000 (13:09 +0000)]
Make alias_remove return the alias struct instead of freeing it directly.
Fixes a use after free in alias_remove_recursive, the only consumer.
Todd C. Miller [Sat, 28 Mar 2009 13:07:17 +0000 (13:07 +0000)]
Rename find_alias -> alias_find for consistency.
Todd C. Miller [Fri, 27 Mar 2009 23:29:06 +0000 (23:29 +0000)]
When checking for unused aliases, recurse if the alias points to
another alias.
Todd C. Miller [Mon, 16 Mar 2009 16:11:28 +0000 (16:11 +0000)]
Back out rev 1.105 for now. Real ldapux_client.conf support will be
done later after some refactoring.
Todd C. Miller [Sat, 14 Mar 2009 16:02:11 +0000 (16:02 +0000)]
Treat ldap_hostport the same as "host" for ldapux.
Todd C. Miller [Sat, 14 Mar 2009 01:04:58 +0000 (01:04 +0000)]
Only check for ldap_sasl_interactive_bind_s if we can find sasl.h.
Fixes compilation with ldapux.
Todd C. Miller [Thu, 12 Mar 2009 00:03:04 +0000 (00:03 +0000)]
fix char subscript
Todd C. Miller [Wed, 11 Mar 2009 23:19:56 +0000 (23:19 +0000)]
remove errant carriage returns
Todd C. Miller [Wed, 11 Mar 2009 23:01:10 +0000 (23:01 +0000)]
fix K&R compilation
Todd C. Miller [Wed, 11 Mar 2009 16:12:20 +0000 (16:12 +0000)]
regen
Todd C. Miller [Tue, 10 Mar 2009 21:34:08 +0000 (21:34 +0000)]
Add missing HAVE_BSM_AUDIT
Todd C. Miller [Tue, 10 Mar 2009 21:21:45 +0000 (21:21 +0000)]
Add 1.7.1 features