]>
granicus.if.org Git - sudo/log
Todd C. Miller [Thu, 10 Jun 2010 21:29:47 +0000 (17:29 -0400)]
Use the --file argument to config.status instead of setting CONFIG_FILES
--HG--
branch : 1.7
Todd C. Miller [Thu, 10 Jun 2010 21:19:45 +0000 (17:19 -0400)]
Attempt to handle a default password prompt timeout of zero more gracefully.
--HG--
branch : 1.7
Todd C. Miller [Thu, 10 Jun 2010 20:37:52 +0000 (16:37 -0400)]
Do not override value of keepopen global, instead restore it to the
value we pushed onto the stack when popping.
--HG--
branch : 1.7
Todd C. Miller [Thu, 10 Jun 2010 19:19:38 +0000 (15:19 -0400)]
Use SA_INTERRUPT in sa_flags
--HG--
branch : 1.7
Todd C. Miller [Thu, 10 Jun 2010 16:28:05 +0000 (12:28 -0400)]
Silence some compiler warnings
--HG--
branch : 1.7
Todd C. Miller [Wed, 9 Jun 2010 20:20:04 +0000 (16:20 -0400)]
Implement background mode. If I/O logging we use pipes instead of a pty.
--HG--
branch : 1.7
Todd C. Miller [Wed, 9 Jun 2010 18:01:06 +0000 (14:01 -0400)]
Move compat definition of NSIG to compat.h
--HG--
branch : 1.7
Todd C. Miller [Wed, 9 Jun 2010 15:00:12 +0000 (11:00 -0400)]
Ignore SIGPIPE for "sudo -S"
--HG--
branch : 1.7
Todd C. Miller [Wed, 9 Jun 2010 14:52:53 +0000 (10:52 -0400)]
Properly handle TGP_ECHO again.
Print a newline if the user interrupted password input.
--HG--
branch : 1.7
Todd C. Miller [Wed, 9 Jun 2010 13:57:41 +0000 (09:57 -0400)]
Use POSIX tcgetpgrp() instead of BSD TIOCGPGRP ioctl
--HG--
branch : 1.7
Todd C. Miller [Tue, 8 Jun 2010 22:12:59 +0000 (18:12 -0400)]
Return an error from selinux_setup() instead of exiting.
Call selinux_setup() from exec_setup().
--HG--
branch : 1.7
Todd C. Miller [Tue, 8 Jun 2010 22:51:20 +0000 (18:51 -0400)]
Add definition of WCOREDUMP for systems without it. This is known
to work on AIX and SunOS 4, but may be incorrect on other systems
that lack WCOREDUMP.
--HG--
branch : 1.7
Todd C. Miller [Tue, 8 Jun 2010 22:50:10 +0000 (18:50 -0400)]
Replace timerfoo macros with timevalfoo since the timer macros are known
to be busted on some systems.
--HG--
branch : 1.7
Todd C. Miller [Tue, 8 Jun 2010 20:52:21 +0000 (16:52 -0400)]
If a file in a #includedir has improper permissions or owner just
skip it. This prevents packages that incorrectly install a file
into /etc/sudoers.d from breaking sudo so easily. Syntax errors
in #includedir files still result in a parse error (for now).
--HG--
branch : 1.7
Todd C. Miller [Tue, 8 Jun 2010 19:56:49 +0000 (15:56 -0400)]
Defer call to pam_close_session() until after the command finishes
if there is a monitor process.
--HG--
branch : 1.7
Todd C. Miller [Tue, 8 Jun 2010 15:20:11 +0000 (11:20 -0400)]
Add use_pty sudoers option to force use of a pty even when not
logging I/O.
--HG--
branch : 1.7
Todd C. Miller [Tue, 8 Jun 2010 14:26:15 +0000 (10:26 -0400)]
Instead of trying to keep the global environment in sync with our
private copy, provide our own getenv() that returns values from the
private environment and use env_get() to pass the environment in
to run_command().
--HG--
branch : 1.7
Todd C. Miller [Tue, 8 Jun 2010 14:11:18 +0000 (10:11 -0400)]
Fix typo
--HG--
branch : 1.7
Todd C. Miller [Mon, 7 Jun 2010 22:54:45 +0000 (18:54 -0400)]
Rename pty.c -> get_pty.c
--HG--
branch : 1.7
Todd C. Miller [Mon, 7 Jun 2010 22:53:28 +0000 (18:53 -0400)]
Add #define for maximum session id
--HG--
branch : 1.7
Todd C. Miller [Mon, 7 Jun 2010 21:28:05 +0000 (17:28 -0400)]
Split exec.c into exec.c and exec_pty.c
Pass a flag in to sudo_execve to indicate whether we need to
wait for the command to finish (fork + execve vs. execve).
--HG--
branch : 1.7
Todd C. Miller [Mon, 7 Jun 2010 15:25:03 +0000 (11:25 -0400)]
Rename pty.c -> get_pty.c
--HG--
branch : 1.7
Todd C. Miller [Mon, 7 Jun 2010 15:21:23 +0000 (11:21 -0400)]
Fix --without-iologdir
--HG--
branch : 1.7
Todd C. Miller [Sun, 6 Jun 2010 15:44:55 +0000 (11:44 -0400)]
Only use I/O input log file if def_log_input is set and output file
if def_log_output is set.
--HG--
branch : 1.7
Todd C. Miller [Sat, 5 Jun 2010 17:53:50 +0000 (13:53 -0400)]
Include sudo_usage.h after sudo.h now that it has function prototypes
to guarantee that __P is defined.
--HG--
branch : 1.7
Todd C. Miller [Fri, 4 Jun 2010 21:44:43 +0000 (17:44 -0400)]
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).
Use an array for signals received instead of a single variable so
we don't lose any when there are multiple different signals.
--HG--
branch : 1.7
Todd C. Miller [Fri, 4 Jun 2010 21:01:42 +0000 (17:01 -0400)]
Reorg function prototypes a bit
--HG--
branch : 1.7
Todd C. Miller [Fri, 4 Jun 2010 20:31:11 +0000 (16:31 -0400)]
Move argument parsing into parse_args.c
--HG--
branch : 1.7
Todd C. Miller [Fri, 4 Jun 2010 20:06:24 +0000 (16:06 -0400)]
Build our own sys_siglist for systems that lack it.
--HG--
branch : 1.7
Todd C. Miller [Fri, 4 Jun 2010 19:35:13 +0000 (15:35 -0400)]
K&R fixes
--HG--
branch : 1.7
Todd C. Miller [Fri, 4 Jun 2010 18:23:59 +0000 (14:23 -0400)]
Log sudoedit sessions as well; adapted from trunk
--HG--
branch : 1.7
Todd C. Miller [Fri, 4 Jun 2010 15:34:51 +0000 (11:34 -0400)]
regen
--HG--
branch : 1.7
Todd C. Miller [Fri, 4 Jun 2010 13:41:08 +0000 (09:41 -0400)]
Merge I/O logging changes from trunk. Disabling I/O log support
at compile time does not currently work.
Sudoedit is not yet hooked up to I/O logging.
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Jun 2010 16:00:54 +0000 (12:00 -0400)]
Add --enable-warnings configure option
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Jun 2010 15:57:40 +0000 (11:57 -0400)]
Fix K&R compilation issues on HP-UX.
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Jun 2010 15:31:22 +0000 (11:31 -0400)]
Pass in output function to lbuf_init() instead of writing to stdout.
A side effect is that the usage info can now go to stderr as it
should. Add support for embedded newlines in lbuf and use that
instead of multiple calls to lbuf_print.
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Jun 2010 14:26:42 +0000 (10:26 -0400)]
Use numeric registers to handle conditionals instead of trying
to do it all with text processing.
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Jun 2010 14:26:21 +0000 (10:26 -0400)]
Document per-command SELinux settings
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Jun 2010 14:25:44 +0000 (10:25 -0400)]
timestamp -> time stamp
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Jun 2010 14:06:49 +0000 (10:06 -0400)]
Set close on exec flag in private versions of setpwent() and setgrent().
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Jun 2010 13:55:58 +0000 (09:55 -0400)]
Make send_mail() take a printf-style argument list
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Jun 2010 13:34:49 +0000 (09:34 -0400)]
Update to autoconf 2.65 and libtool 2.2.6b
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Jun 2010 12:38:30 +0000 (08:38 -0400)]
Don't use TRUE/FALSE which may not be defined.
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Jun 2010 12:35:02 +0000 (08:35 -0400)]
Document new tty_ticket behavior
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Jun 2010 12:27:54 +0000 (08:27 -0400)]
Make find_path() a little more generic by not checking def_foo
variables inside it. Instead, pass in ignore_dot as a function
argument.
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Jun 2010 12:00:31 +0000 (08:00 -0400)]
Store info from stat(2)ing the tty in the tty ticket when tty tickets
are in use. If the tty lives on a devpts (Linux) or devices (Solaris)
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.
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Jun 2010 11:41:04 +0000 (07:41 -0400)]
get_boottime() now fills in a timeval struct
--HG--
branch : 1.7
Todd C. Miller [Wed, 2 Jun 2010 22:54:33 +0000 (18:54 -0400)]
Use timeval directly instead of converting to timespec when dealing
with file times and time of day.
--HG--
branch : 1.7
Todd C. Miller [Wed, 2 Jun 2010 14:25:59 +0000 (10:25 -0400)]
Fix OpenPAM detection for newer versions.
--HG--
branch : 1.7
Todd C. Miller [Wed, 2 Jun 2010 14:25:40 +0000 (10:25 -0400)]
Sync with Quest sudo git repo
--HG--
branch : 1.7
Todd C. Miller [Wed, 2 Jun 2010 14:25:20 +0000 (10:25 -0400)]
HP-UX ld uses +b instead or -R or -rpath
Fix typo in libvas check
libvas may need libdl for dlopen()
Add missing template for ENV_DEBUG
Adapted from Quest sudo
--HG--
branch : 1.7
Todd C. Miller [Wed, 2 Jun 2010 14:24:05 +0000 (10:24 -0400)]
Fix typos; from Quest Sudo
--HG--
branch : 1.7
Todd C. Miller [Wed, 2 Jun 2010 14:23:47 +0000 (10:23 -0400)]
Use value of SHELL from configure in Makefile
--HG--
branch : 1.7
Todd C. Miller [Fri, 28 May 2010 13:45:01 +0000 (09:45 -0400)]
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.
--HG--
branch : 1.7
Todd C. Miller [Thu, 29 Apr 2010 22:46:34 +0000 (18:46 -0400)]
Fix a crash when checking a sudoers file that has aliases that reference
themselves. Based on a diff from David Wood.
--HG--
branch : 1.7
Todd C. Miller [Thu, 15 Apr 2010 10:15:11 +0000 (06:15 -0400)]
Fix use after free in error message when a duplicate alias exists.
--HG--
branch : 1.7
Todd C. Miller [Wed, 14 Apr 2010 10:24:27 +0000 (06:24 -0400)]
Set errorfile to the sudoers path if we set parse_error manually.
This prevents a NULL dereference in printf() when checking a sudoers
file in strict mode when alias errors are present.
--HG--
branch : 1.7
Todd C. Miller [Mon, 12 Apr 2010 15:49:48 +0000 (11:49 -0400)]
Fix typo
--HG--
branch : 1.7
Todd C. Miller [Fri, 9 Apr 2010 10:10:07 +0000 (06:10 -0400)]
Qualify the command even if it is in the current working directory,
e.g. "./foo" instead of just returning "foo". This removes an ambiguity
between real commands and possible pseudo-commands in command matching.
--HG--
branch : 1.7
Todd C. Miller [Wed, 7 Apr 2010 13:34:41 +0000 (09:34 -0400)]
Add a note about the security implications of the fast_glob option.
--HG--
branch : 1.7
Todd C. Miller [Wed, 7 Apr 2010 10:39:35 +0000 (06:39 -0400)]
Remove duplicate includes
--HG--
branch : 1.7
Todd C. Miller [Mon, 22 Mar 2010 13:50:06 +0000 (09:50 -0400)]
Fix installation of sudoers.ldap in "make install" when --with-ldap
was specified without a directory. From Prof. Dr. Andreas Mueller
--HG--
branch : 1.7
Todd C. Miller [Tue, 9 Mar 2010 17:37:50 +0000 (12:37 -0500)]
When doing a glob match, short circuit if gl.gl_pathc is 0.
From Mark Kettenis.
--HG--
branch : 1.7
Todd C. Miller [Mon, 8 Mar 2010 19:27:30 +0000 (14:27 -0500)]
Use parent process group id instead of parent process id when checking
foreground status and suspending parent. Fixes an issue when running
commands under /usr/bin/time and others.
--HG--
branch : 1.7
Todd C. Miller [Mon, 8 Mar 2010 18:53:54 +0000 (13:53 -0500)]
In setenv(), if the var is empty, return 1 and set errno to EINVAL
instead of returning EINVAL directly.
--HG--
branch : 1.7
Todd C. Miller [Mon, 22 Feb 2010 22:32:24 +0000 (17:32 -0500)]
Check for pseudo-command by looking at the first character of the
command in sudoers instead of checking the user-supplied command
for a slash.
--HG--
branch : 1.7
Todd C. Miller [Tue, 9 Feb 2010 15:43:20 +0000 (10:43 -0500)]
Avoid a duplicate fclose() of the sudoers file.
--HG--
branch : 1.7
Todd C. Miller [Tue, 9 Feb 2010 13:28:03 +0000 (08:28 -0500)]
Fix size arg when realloc()ing include stack. From Daniel Kopecek
--HG--
branch : 1.7
Todd C. Miller [Sat, 6 Feb 2010 20:16:04 +0000 (15:16 -0500)]
Use setrlimit64(), if available, instead of setrlimit() when setting
AIX resource limits since rlim_t is 32bits.
--HG--
branch : 1.7
Todd C. Miller [Sat, 6 Feb 2010 17:43:26 +0000 (12:43 -0500)]
Fix use after free when sending error messages. From Timo Juhani Lindfors
--HG--
branch : 1.7
Todd C. Miller [Mon, 18 Jan 2010 12:12:06 +0000 (07:12 -0500)]
Generate the ChangeLog as part of "make dist" instead of having it
in the repo.
--HG--
branch : 1.7
Todd C. Miller [Mon, 18 Jan 2010 00:55:11 +0000 (19:55 -0500)]
Generate correct ChangeLog for 1.7 branch.
--HG--
branch : 1.7
Todd C. Miller [Mon, 18 Jan 2010 00:51:28 +0000 (19:51 -0500)]
Remove CVS $Sudo$ tags.
convert-repo [Mon, 18 Jan 2010 05:45:25 +0000 (05:45 +0000)]
update tags
Todd C. Miller [Sat, 26 Dec 2009 23:48:09 +0000 (23:48 +0000)]
make this match sudoers SYNOPSIS
Todd C. Miller [Sat, 26 Dec 2009 17:25:49 +0000 (17:25 +0000)]
Print a newline between Runas and Command-specific defaults in
sudo -l.
Todd C. Miller [Sat, 26 Dec 2009 01:50:25 +0000 (01:50 +0000)]
Use SET and CLR macros in term_raw
Todd C. Miller [Sat, 26 Dec 2009 01:49:25 +0000 (01:49 +0000)]
Set stdin to non-blocking mode early instead of in check_input.
Use term_raw instead of term_cbreak since the data we get has
already been expanded via OPOST.
Todd C. Miller [Wed, 23 Dec 2009 23:53:04 +0000 (23:53 +0000)]
Enable/disable all postprocessing instead of just nl->crnl processing
since things like tab expansion matter too. However, if stdout is
a tty leave postprocessing on in the pty since we run into problems
doing it only on the real stdout with .e.g nvi.
Todd C. Miller [Sat, 19 Dec 2009 23:04:58 +0000 (23:04 +0000)]
If tty_tickets is enabled and there is no tty, prompt for a password.
Do not lecture user for "sudo -k command" if user has a timestamp.
Todd C. Miller [Sat, 19 Dec 2009 21:57:33 +0000 (21:57 +0000)]
Document missing options: --with-efence and --with-bsm-audit
Todd C. Miller [Sat, 19 Dec 2009 21:44:06 +0000 (21:44 +0000)]
username -> user name
groupname -> group name
hostname -> host name
Todd C. Miller [Sat, 19 Dec 2009 21:33:25 +0000 (21:33 +0000)]
filename -> file name like the rest of the docs
Todd C. Miller [Thu, 17 Dec 2009 15:02:06 +0000 (15:02 +0000)]
Fix printing of entries with multiple host entries on a single line.
Todd C. Miller [Mon, 14 Dec 2009 23:53:05 +0000 (23:53 +0000)]
Mention that targetpw affects the timestamp file name.
Todd C. Miller [Mon, 14 Dec 2009 01:49:50 +0000 (01:49 +0000)]
Add compress_transcript option.
Todd C. Miller [Sun, 13 Dec 2009 22:26:32 +0000 (22:26 +0000)]
bump to 1.7.3b2
Todd C. Miller [Sun, 13 Dec 2009 22:24:34 +0000 (22:24 +0000)]
Better split of membership vs. traditional group check in user_in_group().
Allow user_ngroups to be < 0 if getgroups() fails.
Todd C. Miller [Sat, 12 Dec 2009 16:27:02 +0000 (16:27 +0000)]
Fix pasto and add default return value.
Todd C. Miller [Sat, 12 Dec 2009 16:12:26 +0000 (16:12 +0000)]
refactor group member checking into user_in_group()
Todd C. Miller [Sat, 12 Dec 2009 15:37:52 +0000 (15:37 +0000)]
Add support for mbr_check_membership() as present in darwin.
Todd C. Miller [Thu, 10 Dec 2009 19:37:56 +0000 (19:37 +0000)]
Rename label to be accurate
Todd C. Miller [Thu, 10 Dec 2009 16:59:27 +0000 (16:59 +0000)]
Treat timestamp files from before we booted as old. Idea from and
Apple patch.
Todd C. Miller [Wed, 9 Dec 2009 16:19:30 +0000 (16:19 +0000)]
Allow the -u flag to be used in conjunction with the -v flag as per
older versions of sudo.
Todd C. Miller [Wed, 9 Dec 2009 16:05:02 +0000 (16:05 +0000)]
fix typo in last commit
Todd C. Miller [Tue, 8 Dec 2009 22:19:49 +0000 (22:19 +0000)]
Convert fmt_first and fmt_confd into macros.
Todd C. Miller [Tue, 8 Dec 2009 21:58:16 +0000 (21:58 +0000)]
timeouts can be floats now
Todd C. Miller [Tue, 8 Dec 2009 21:49:53 +0000 (21:49 +0000)]
Add support for floating point timeout values (e.g. 2.5 minutes).
Todd C. Miller [Mon, 7 Dec 2009 00:11:43 +0000 (00:11 +0000)]
The -L flag will be removed in sudo 1.7.4
Todd C. Miller [Sun, 6 Dec 2009 17:10:36 +0000 (17:10 +0000)]
Fix a bug due to order of operators.