]>
granicus.if.org Git - sudo/log
Todd C. Miller [Wed, 3 Dec 2008 20:57:13 +0000 (20:57 +0000)]
hostnames may also contain wildcards
Todd C. Miller [Wed, 3 Dec 2008 20:40:47 +0000 (20:40 +0000)]
remove stamp-* files and linux core files in clean target
Todd C. Miller [Tue, 2 Dec 2008 17:30:39 +0000 (17:30 +0000)]
Use HAVE_SIA_SES_INIT instead of HAVE_SIA for Digital UNIX
Todd C. Miller [Wed, 26 Nov 2008 20:10:23 +0000 (20:10 +0000)]
correctly enable SIA on Digital UNIX
Todd C. Miller [Wed, 26 Nov 2008 01:06:15 +0000 (01:06 +0000)]
checkpoint
Todd C. Miller [Wed, 26 Nov 2008 01:05:53 +0000 (01:05 +0000)]
sync
Todd C. Miller [Tue, 25 Nov 2008 17:01:34 +0000 (17:01 +0000)]
Even if neither stdin nor stdout are ttys we may still have /dev/tty
available to us.
Todd C. Miller [Mon, 24 Nov 2008 15:09:56 +0000 (15:09 +0000)]
regen
Todd C. Miller [Mon, 24 Nov 2008 15:08:16 +0000 (15:08 +0000)]
fix typos; Markus Lude
Todd C. Miller [Mon, 24 Nov 2008 12:08:55 +0000 (12:08 +0000)]
sync
Todd C. Miller [Mon, 24 Nov 2008 00:42:20 +0000 (00:42 +0000)]
regen
Todd C. Miller [Mon, 24 Nov 2008 00:41:36 +0000 (00:41 +0000)]
Fix matching of a line that only consists of a comment char
Todd C. Miller [Sat, 22 Nov 2008 18:17:44 +0000 (18:17 +0000)]
MacOS pam will retry conversation function if it fails so just treat
^C as an empty password.
Todd C. Miller [Sat, 22 Nov 2008 15:12:26 +0000 (15:12 +0000)]
When checking for alias use, also check defaults bindings.
Todd C. Miller [Sat, 22 Nov 2008 15:01:25 +0000 (15:01 +0000)]
unused var
Todd C. Miller [Sat, 22 Nov 2008 14:42:42 +0000 (14:42 +0000)]
Replace my rbdelete with Emin's version (which actually works ;-)
Todd C. Miller [Wed, 19 Nov 2008 17:01:20 +0000 (17:01 +0000)]
malloc debugging
Todd C. Miller [Wed, 19 Nov 2008 12:37:05 +0000 (12:37 +0000)]
malloc options in devel mode for visudo too
Todd C. Miller [Tue, 18 Nov 2008 15:57:09 +0000 (15:57 +0000)]
fix compilation on non-C99; from Theo
Todd C. Miller [Tue, 18 Nov 2008 15:50:53 +0000 (15:50 +0000)]
fix check_aliases
Todd C. Miller [Tue, 18 Nov 2008 13:29:58 +0000 (13:29 +0000)]
when destroying an alias, free the correct data pointer
Todd C. Miller [Tue, 18 Nov 2008 12:54:51 +0000 (12:54 +0000)]
add proto for aixauth_cleanup; from Dale King
Todd C. Miller [Sat, 15 Nov 2008 18:34:26 +0000 (18:34 +0000)]
regen
Todd C. Miller [Sat, 15 Nov 2008 18:34:01 +0000 (18:34 +0000)]
standardize on the term 'option' for command line options (not flag)
Todd C. Miller [Fri, 14 Nov 2008 11:18:08 +0000 (11:18 +0000)]
Add note on configuring HP-UX pam
Todd C. Miller [Tue, 11 Nov 2008 18:28:08 +0000 (18:28 +0000)]
Move tty checks into check_user() so we only do them if we actually
need a password.
Todd C. Miller [Tue, 11 Nov 2008 17:34:27 +0000 (17:34 +0000)]
Don't error out if no tty or askpass unless we actually need to authenticate.
Todd C. Miller [Mon, 10 Nov 2008 20:20:10 +0000 (20:20 +0000)]
regen
Todd C. Miller [Mon, 10 Nov 2008 13:07:38 +0000 (13:07 +0000)]
s/overriden/overridden/; from Tobias Stoeckmann
Todd C. Miller [Sun, 9 Nov 2008 20:19:19 +0000 (20:19 +0000)]
check sudoers owner and mode in strict mode
Todd C. Miller [Sun, 9 Nov 2008 14:15:36 +0000 (14:15 +0000)]
regen
Todd C. Miller [Sun, 9 Nov 2008 14:14:14 +0000 (14:14 +0000)]
Update copyright years.
Todd C. Miller [Sun, 9 Nov 2008 14:13:13 +0000 (14:13 +0000)]
Update copyright years.
Todd C. Miller [Sun, 9 Nov 2008 13:48:33 +0000 (13:48 +0000)]
add my copyright
Todd C. Miller [Sat, 8 Nov 2008 15:40:33 +0000 (15:40 +0000)]
The loop in fill_cmnd() was going one byte too far past the end, resulting
in a NUL being written immediately after the buffer end.
Todd C. Miller [Sat, 8 Nov 2008 15:31:47 +0000 (15:31 +0000)]
add sections on tgetpass changes
Todd C. Miller [Sat, 8 Nov 2008 15:30:42 +0000 (15:30 +0000)]
Treat EOF w/o newline as an error.
Todd C. Miller [Fri, 7 Nov 2008 22:42:11 +0000 (22:42 +0000)]
Fix "sudo -v" when NOPASSWD is set.
Todd C. Miller [Fri, 7 Nov 2008 17:45:52 +0000 (17:45 +0000)]
No longer treat an empty password at the prompt as special. To
quit out of sudo you now need to hit ^C at the password prompt.
Todd C. Miller [Fri, 7 Nov 2008 02:07:11 +0000 (02:07 +0000)]
regen
Todd C. Miller [Fri, 7 Nov 2008 02:06:48 +0000 (02:06 +0000)]
Sudo will now refuse to run if no tty is present unless the new
visiblepw sudoers flag is set.
Todd C. Miller [Thu, 6 Nov 2008 00:42:37 +0000 (00:42 +0000)]
just use RLIM_INFINITY for RLIM_SAVED_MAX if RLIM_SAVED_MAX not defined
Todd C. Miller [Thu, 6 Nov 2008 00:40:01 +0000 (00:40 +0000)]
fix fallback value for RLIM_SAVED_MAX
Todd C. Miller [Thu, 6 Nov 2008 00:14:45 +0000 (00:14 +0000)]
Move clearing of AUTHSTATE into aixauth_cleanup.
Todd C. Miller [Thu, 6 Nov 2008 00:08:24 +0000 (00:08 +0000)]
Unset AUTHSTATE after calling authenticate() as it may not be correct for
the user we are running the command as.
Todd C. Miller [Thu, 6 Nov 2008 00:05:24 +0000 (00:05 +0000)]
Add isblank() function for systems without it. Needed for POSIX
character class matching in fnmatch.c and glob.c.
Todd C. Miller [Wed, 5 Nov 2008 16:02:44 +0000 (16:02 +0000)]
expound on sudo and cd
Todd C. Miller [Tue, 4 Nov 2008 20:52:50 +0000 (20:52 +0000)]
regen
Todd C. Miller [Tue, 4 Nov 2008 20:46:21 +0000 (20:46 +0000)]
regen
Todd C. Miller [Tue, 4 Nov 2008 20:45:45 +0000 (20:45 +0000)]
mention defauts parse order
Todd C. Miller [Mon, 3 Nov 2008 18:19:14 +0000 (18:19 +0000)]
Add isblank() function for systems without it. Needed for POSIX
character class matching in fnmatch.c and glob.c.
Todd C. Miller [Mon, 3 Nov 2008 17:54:30 +0000 (17:54 +0000)]
add emul/charclass.h to HDRS
Todd C. Miller [Sun, 2 Nov 2008 19:08:42 +0000 (19:08 +0000)]
checkpoint
Todd C. Miller [Sun, 2 Nov 2008 19:06:37 +0000 (19:06 +0000)]
Move update_defaults into defaults.c and call it properly from
visudo and testsudoers.
Todd C. Miller [Sun, 2 Nov 2008 14:51:16 +0000 (14:51 +0000)]
use zero_bytes() instead of memset() for consistency
Todd C. Miller [Sun, 2 Nov 2008 14:45:31 +0000 (14:45 +0000)]
Zero out sigaction_t before use in case it has non-standard entries.
Todd C. Miller [Sun, 2 Nov 2008 14:35:37 +0000 (14:35 +0000)]
quiet gcc
Todd C. Miller [Sun, 2 Nov 2008 14:28:03 +0000 (14:28 +0000)]
Short circuit glob() checks if basename(pattern) != basename(command).
Refactor code that checks for a command in a directory and use it in the
glob case if the resolved pattern ends in a '/'.
Todd C. Miller [Sat, 1 Nov 2008 13:20:01 +0000 (13:20 +0000)]
Defer setting runas defaults until after runaspw/gr is setup.
Todd C. Miller [Wed, 29 Oct 2008 17:26:42 +0000 (17:26 +0000)]
Use MAXHOSTNAMELEN+1 when allocating host/domain name since some
systems do not include space for the NUL in the size. Also manually
NUL-terminate buffer from gethostname() since POSIX is wishy-washy on this.
Todd C. Miller [Sun, 26 Oct 2008 21:13:03 +0000 (21:13 +0000)]
When setting the umask, use the union of the user's umask and the
default value set in sudoers so that we never lower the user's umask
when running a command.
Todd C. Miller [Sun, 26 Oct 2008 20:43:59 +0000 (20:43 +0000)]
Don't try to read from a zero-length sudoers file. Remove the bogus
Solaris work-around for EAGAIN. Since we now use fgetc() it should
not be a problem.
Todd C. Miller [Sat, 25 Oct 2008 13:22:41 +0000 (13:22 +0000)]
In update_defaults() check the return value of user*_matches against
ALLOW so we don't inadvertantly match on UNSPEC.
Todd C. Miller [Fri, 24 Oct 2008 13:52:19 +0000 (13:52 +0000)]
regen man pages; no more hyphenation
Todd C. Miller [Fri, 24 Oct 2008 13:49:10 +0000 (13:49 +0000)]
Don't error out on a zero-length sudoers file. With the advent of
#include the user could create a situation where sudo is unusable.
Todd C. Miller [Thu, 23 Oct 2008 16:06:23 +0000 (16:06 +0000)]
Newer heimdal has 2-argument krb5_get_init_creds_opt_free() like MIT krb5.
Really old heimdal has no krb5_get_init_creds_opt_alloc() at all. Add
configure tests to handle all the cases.
Todd C. Miller [Wed, 8 Oct 2008 21:28:48 +0000 (21:28 +0000)]
resort ENVIRONMENT
Todd C. Miller [Wed, 8 Oct 2008 21:09:07 +0000 (21:09 +0000)]
document sudoers_locale
Todd C. Miller [Wed, 8 Oct 2008 20:56:17 +0000 (20:56 +0000)]
add SUDO_EDITOR variable that sudoedit uses in preference to VISUAL or EDITOR
Todd C. Miller [Wed, 8 Oct 2008 18:27:35 +0000 (18:27 +0000)]
In fill_cmnd(), collapse any escaped sudo-specific characters.
Allows character classes to be used in pathnames.
Todd C. Miller [Fri, 3 Oct 2008 20:02:00 +0000 (20:02 +0000)]
fix typo in non-C89 function declaration
Todd C. Miller [Fri, 3 Oct 2008 19:56:40 +0000 (19:56 +0000)]
Mention POSIX characters classes now that out fnmatch() and glob()
support them.
Todd C. Miller [Fri, 3 Oct 2008 19:55:57 +0000 (19:55 +0000)]
Replace [A-z] (which won't match in UTF8) with [A-Za-z] which is
locale agnostic.
Todd C. Miller [Fri, 3 Oct 2008 14:02:31 +0000 (14:02 +0000)]
use __signed char if we are going to assign a negative value since on Power, char is unsigned by default
Todd C. Miller [Fri, 3 Oct 2008 13:59:39 +0000 (13:59 +0000)]
Add tests for __signed char and signed char.
Todd C. Miller [Fri, 3 Oct 2008 13:19:31 +0000 (13:19 +0000)]
Fix AIX limit setting. getuserattr() returns values in disk blocks rather
than bytes. The default hard stack size in newer AIX is RLIM_SAVED_MAX.
From Dale King.
Todd C. Miller [Fri, 26 Sep 2008 21:13:29 +0000 (21:13 +0000)]
Add character class support to included glob(3) and fnmatch(3).
Todd C. Miller [Tue, 16 Sep 2008 12:28:35 +0000 (12:28 +0000)]
Remove UCB advertising clause and some compatibility defines.
Todd C. Miller [Sun, 14 Sep 2008 20:07:49 +0000 (20:07 +0000)]
Check EDITOR/VISUAL to make sure sudoedit is not re-invoking itself or sudo.
This allows one to set EDITOR to sudoedit without getting into an infinite
loop of sudoedit running itself until the path gets too big.
Todd C. Miller [Sun, 14 Sep 2008 00:45:24 +0000 (00:45 +0000)]
Add sudoers_locale Defaults option to override the default sudoers
locale of "C".
Todd C. Miller [Sat, 13 Sep 2008 18:09:28 +0000 (18:09 +0000)]
Set locale to system default except for during sudoers parse.
Todd C. Miller [Fri, 12 Sep 2008 13:34:27 +0000 (13:34 +0000)]
Redo change in 1.34 to use pointer arithmetic.
Todd C. Miller [Thu, 11 Sep 2008 11:06:37 +0000 (11:06 +0000)]
Fix a dereference (read) of a freed pointer. Reported by Patrick Williams.
Todd C. Miller [Sat, 23 Aug 2008 23:09:13 +0000 (23:09 +0000)]
Set locale to "C" to avoid interpretation issues with character ranges
in sudoers. May want to make the locale a sudoers option in the future.
Todd C. Miller [Wed, 20 Aug 2008 11:45:15 +0000 (11:45 +0000)]
we no longer use setproctitle
Todd C. Miller [Wed, 20 Aug 2008 11:41:22 +0000 (11:41 +0000)]
remove #if 1
Todd C. Miller [Wed, 20 Aug 2008 11:40:15 +0000 (11:40 +0000)]
Use my replacement mkstemp() from the mktemp package.
Todd C. Miller [Sat, 12 Jul 2008 12:53:05 +0000 (12:53 +0000)]
regen with yacc skeleton bug fixed
Todd C. Miller [Sat, 12 Jul 2008 12:48:21 +0000 (12:48 +0000)]
Remove duplicate "as root". From Martin Toft.
Todd C. Miller [Wed, 2 Jul 2008 10:27:57 +0000 (10:27 +0000)]
Flesh out the fake passwd entry used for running commands as a uid not
listed in the passwd database. Fixes an issue with some PAM modules.
Todd C. Miller [Tue, 1 Jul 2008 11:57:55 +0000 (11:57 +0000)]
Error out in -i mode if the user has no shell. This can happen when
running commands as a uid with no password entry.
Todd C. Miller [Thu, 26 Jun 2008 11:49:16 +0000 (11:49 +0000)]
Better fix for line continuation inside double quotes. Now accepts
whitespace between the backslash and the newline like the main lexer.
Todd C. Miller [Wed, 25 Jun 2008 18:31:19 +0000 (18:31 +0000)]
Fix line continuation in strings. It was only being honored if preceded by
whitespace.
Todd C. Miller [Sun, 22 Jun 2008 20:19:42 +0000 (20:19 +0000)]
Replace the double fork with a fork + daemonize.
Todd C. Miller [Sat, 21 Jun 2008 18:59:36 +0000 (18:59 +0000)]
The -i flag should imply env_reset. This got broken in sudo 1.6.9.
Todd C. Miller [Sat, 21 Jun 2008 00:34:47 +0000 (00:34 +0000)]
Change how the mailer is waited for. Instead of having a SIGCHLD
handler, use the double fork trick to orphan the child that opens
the pipe to sendmail. Fixes a problem running su on some Linux distros.
Todd C. Miller [Fri, 20 Jun 2008 21:16:09 +0000 (21:16 +0000)]
Fix configure test for dirfd() on Linux where DIR is opaque.
Todd C. Miller [Tue, 17 Jun 2008 21:42:41 +0000 (21:42 +0000)]
Get rid of the QNX TCSAFLUSH -> TCSADRAIN hack. If QNX still has this
problem we'll need to revisit this again.
Todd C. Miller [Wed, 11 Jun 2008 01:13:39 +0000 (01:13 +0000)]
Ignore SIGPIPE instead of blocking it when piping to the mailer. If we
only block the signal it may be delivered later when we unblock.
Also, there is no need to block SIGCHLD since we no longer do the
double fork. The normal SIGCHLD handler is sufficient.
Todd C. Miller [Sun, 8 Jun 2008 21:37:25 +0000 (21:37 +0000)]
Add description for NO_PAM_SESSION, from a redhat patch.