]>
granicus.if.org Git - sudo/log
Todd C. Miller [Wed, 1 Oct 2014 20:32:30 +0000 (14:32 -0600)]
Instead of building libutil statically for --disable-shared-libutil,
just treat it as a convenience library. Do the same with sudoers
for --enable-static-sudoers. Fixes link errors on Solaris among
others when --disable-shared-libutil is used.
Todd C. Miller [Wed, 1 Oct 2014 19:24:57 +0000 (13:24 -0600)]
Remove LT_LDMAP and LT_LDOPT and just use LT_LDEXPORTS for the
compiler-specific option to restrict symbol exporting.
Todd C. Miller [Wed, 1 Oct 2014 15:30:17 +0000 (09:30 -0600)]
Include sys/types.h to get gid_t, etc used in sudo_compat.h.
Fixes a build issue on Solaris.
Todd C. Miller [Mon, 29 Sep 2014 21:33:39 +0000 (15:33 -0600)]
Fix cust & pasto in error message when there is a mismatch between
the sudo and libc ttys. From Diego Elio Petteno'. Bug #643
Todd C. Miller [Sun, 28 Sep 2014 01:52:45 +0000 (19:52 -0600)]
Add BASH_FUNC_* to environment blacklist for newer-style bash functions.
Todd C. Miller [Sat, 27 Sep 2014 16:39:07 +0000 (10:39 -0600)]
Pull additional password prompts out of mkpkg instead of hard-coding
them.
Todd C. Miller [Sat, 27 Sep 2014 16:31:06 +0000 (10:31 -0600)]
Add post-1.8.11 changes
Todd C. Miller [Sat, 27 Sep 2014 16:24:19 +0000 (10:24 -0600)]
Add a space after "Password:" in default password prompt so it is
easier to read when pwfeedback is enabled.
Todd C. Miller [Sat, 27 Sep 2014 16:17:21 +0000 (10:17 -0600)]
Simplify how we count the password tries
Todd C. Miller [Sat, 27 Sep 2014 16:16:31 +0000 (10:16 -0600)]
Block SIGINT and SIGQUIT while verifying passwords so that
authentication modules that use sleep() are not interrupted.
If the user interrupted authentication, exit the loop.
Todd C. Miller [Sat, 27 Sep 2014 16:16:26 +0000 (10:16 -0600)]
Remove Convex support; it is not modern enough to run sudo 1.8.
Todd C. Miller [Sat, 27 Sep 2014 16:13:28 +0000 (10:13 -0600)]
Only check for -lshadow if we haven't already found getspnam() in
libc. Rather than treat this specially, just add -lshadow as another
place to search in addition to -lgen.
Todd C. Miller [Sat, 27 Sep 2014 02:55:19 +0000 (20:55 -0600)]
If all authentication methods fail init/setup, fail with an error.
Todd C. Miller [Sat, 27 Sep 2014 02:39:40 +0000 (20:39 -0600)]
Move pass_warn() so that it is defined before it is called().
Todd C. Miller [Wed, 24 Sep 2014 20:02:04 +0000 (14:02 -0600)]
Remove duplicate Requires: line in generated rpm spec file.
Todd C. Miller [Wed, 24 Sep 2014 15:18:54 +0000 (09:18 -0600)]
In pp_files_expand() set _target to be empty. Fixes a problem with
Solaris sh where simply using typeset doesn't causes the variable
to be treated as local so we can inadvertantly inherit a value from
a previous call.
Todd C. Miller [Tue, 23 Sep 2014 17:00:32 +0000 (11:00 -0600)]
Fix version for release.
Todd C. Miller [Sat, 20 Sep 2014 16:16:46 +0000 (10:16 -0600)]
Only redefine _PATH_BSHELL on AIX if we included paths.h.
Todd C. Miller [Sat, 20 Sep 2014 15:35:51 +0000 (09:35 -0600)]
Bug 661
Todd C. Miller [Sat, 20 Sep 2014 15:21:51 +0000 (09:21 -0600)]
On AIX, _PATH_BSHELL is /usr/bin/bsh but we want to use /usr/bin/sh
(which is usually ksh). This makes sudo's behavior when executing
a shell without the #! magic number match execvp() on AIX.
Todd C. Miller [Sat, 20 Sep 2014 15:09:01 +0000 (09:09 -0600)]
Whitespace changes.
Todd C. Miller [Sat, 20 Sep 2014 15:03:26 +0000 (09:03 -0600)]
Prefer /usr/bin/sh to /bin/sh to match modern systems.
Todd C. Miller [Sat, 20 Sep 2014 12:46:27 +0000 (06:46 -0600)]
Don't use SSP_CFLAGS or PIE_CFLAGS when building mksiglist/mksigname
as they are built with the host compiler which may be different
when cross-compiling. From Gustavo Zacarias. Bug 662.
Todd C. Miller [Wed, 17 Sep 2014 16:12:12 +0000 (10:12 -0600)]
Sync with translationproject.org
Todd C. Miller [Tue, 16 Sep 2014 20:15:30 +0000 (14:15 -0600)]
Make sure we can't insert an nss entry in the list that has already
been used before.
Todd C. Miller [Tue, 16 Sep 2014 20:01:02 +0000 (14:01 -0600)]
Use correct gettext macro with sudo_warnx()
Todd C. Miller [Tue, 16 Sep 2014 19:38:38 +0000 (13:38 -0600)]
Make nsswitch.conf bug fix description more accurrate. It affects
the "files" nsswitch source too.
Todd C. Miller [Tue, 16 Sep 2014 18:54:13 +0000 (12:54 -0600)]
Mention nsswitch.conf duplicate entry fix.
Todd C. Miller [Mon, 15 Sep 2014 21:11:30 +0000 (15:11 -0600)]
Make sudoers file nsswitch functions static to parse.c since they
are self-contained.
Todd C. Miller [Mon, 15 Sep 2014 13:40:33 +0000 (07:40 -0600)]
Fix infinite loop when mulitple sudoers entries are present in
nsswitch.conf. From Daniel Kopecek.
Todd C. Miller [Wed, 10 Sep 2014 12:01:29 +0000 (06:01 -0600)]
Fix for bug #660
Todd C. Miller [Wed, 10 Sep 2014 11:57:31 +0000 (05:57 -0600)]
Fix compilation on systems without openpty(), _getpty() or grantpt().
From Vasilyy Balyasnyy
Todd C. Miller [Mon, 8 Sep 2014 22:37:33 +0000 (16:37 -0600)]
Remove remaining use of SUDO_CONV_DEBUG_MSG.
Todd C. Miller [Mon, 8 Sep 2014 22:34:47 +0000 (16:34 -0600)]
SUDO_CONV_DEBUG_MSG is no longer supported.
Todd C. Miller [Mon, 8 Sep 2014 22:33:58 +0000 (16:33 -0600)]
regen
Todd C. Miller [Mon, 8 Sep 2014 22:24:32 +0000 (16:24 -0600)]
There is no longer a reason for the plugin to init the debug subsystem
itself. It will always be initialized by the front-end if needed.
Todd C. Miller [Mon, 8 Sep 2014 20:43:01 +0000 (14:43 -0600)]
Add function arg names to prototypes where missing.
Todd C. Miller [Mon, 8 Sep 2014 20:30:17 +0000 (14:30 -0600)]
Remove obsolete definition of SIZE_T which is now handled by
sudo_compat.h and rename the format arg to fmt in sudo_evasprintf_v1()
for consistency with sudo_easprintf_v1().
Todd C. Miller [Mon, 8 Sep 2014 15:37:39 +0000 (09:37 -0600)]
If we were invoked with any name ending in "edit", treat as sudoedit.
Todd C. Miller [Thu, 4 Sep 2014 16:15:32 +0000 (10:15 -0600)]
regen
Todd C. Miller [Thu, 4 Sep 2014 16:13:26 +0000 (10:13 -0600)]
Check return value of sigaction(), even though it should never fail.
Todd C. Miller [Wed, 3 Sep 2014 16:32:02 +0000 (10:32 -0600)]
regen
Todd C. Miller [Wed, 3 Sep 2014 16:31:47 +0000 (10:31 -0600)]
Add hexchar unit test
Todd C. Miller [Wed, 3 Sep 2014 16:29:46 +0000 (10:29 -0600)]
Avoid division by zero if there was no test data.
Todd C. Miller [Tue, 2 Sep 2014 21:00:23 +0000 (15:00 -0600)]
Remove confusing comment.
Todd C. Miller [Tue, 2 Sep 2014 20:36:05 +0000 (14:36 -0600)]
Use a stack buffer for the debug message when possible, most are small.
Todd C. Miller [Mon, 1 Sep 2014 18:47:22 +0000 (12:47 -0600)]
Sync with translationproject.org
Todd C. Miller [Mon, 1 Sep 2014 02:32:18 +0000 (20:32 -0600)]
Convert a debug printf to a user-visible warning.
Todd C. Miller [Mon, 1 Sep 2014 00:46:26 +0000 (18:46 -0600)]
Move sudo_printf extern to sudo_util.h
Todd C. Miller [Mon, 1 Sep 2014 00:33:30 +0000 (18:33 -0600)]
Some versions of the HP C Compiler don't export functions that take
function pointers as arguments unless a typedef is used.
Todd C. Miller [Sun, 31 Aug 2014 21:21:48 +0000 (15:21 -0600)]
Work around a bug in the HP C compiler.
Todd C. Miller [Sun, 31 Aug 2014 20:20:44 +0000 (14:20 -0600)]
Don't need sudo_fatal.h
Todd C. Miller [Sat, 30 Aug 2014 22:28:08 +0000 (16:28 -0600)]
Sync with translationproject.org
Todd C. Miller [Sat, 30 Aug 2014 22:24:53 +0000 (16:24 -0600)]
Remove signal_event from evbase before calling sudo_ev_loopexit()
when the command has exited or been killed. It is possible that
we could receive another signal on the pipe if they are delivered
out of order.
Todd C. Miller [Fri, 29 Aug 2014 17:20:17 +0000 (11:20 -0600)]
Treat EOF on signal pipe (which should never happen) as ECONNRESET.
Todd C. Miller [Fri, 29 Aug 2014 15:47:08 +0000 (09:47 -0600)]
Don't allow sudo_ev_loopcont() to override sudo_ev_loopexit()
Todd C. Miller [Fri, 29 Aug 2014 15:44:08 +0000 (09:44 -0600)]
Add some internal convenience functions.
Todd C. Miller [Tue, 26 Aug 2014 21:47:48 +0000 (15:47 -0600)]
Fix osrelease sed expression. It wasn't matching distros with a
single digit version such as sles9.
Todd C. Miller [Tue, 26 Aug 2014 19:55:48 +0000 (13:55 -0600)]
Sync with translationproject.org
Todd C. Miller [Tue, 26 Aug 2014 19:54:29 +0000 (13:54 -0600)]
Return -1 from logging functions if we get a write error.
Todd C. Miller [Tue, 26 Aug 2014 19:41:32 +0000 (13:41 -0600)]
Mention I/O plugin changes.
Todd C. Miller [Tue, 26 Aug 2014 18:07:57 +0000 (12:07 -0600)]
Change behavior when plugin I/O logging function returns 0 or -1.
For -1 (error) return, we now kill the command and disable
the I/O logging function that returned the error.
For a 0 (reject) return, we no longer display the rejected
output to the user's terminal. The plugin API revision is now 1.6.
Todd C. Miller [Tue, 26 Aug 2014 18:05:09 +0000 (12:05 -0600)]
regen to fix version.
Todd C. Miller [Tue, 26 Aug 2014 18:04:25 +0000 (12:04 -0600)]
Add trivial dirty word check to the sample output logging function.
Todd C. Miller [Mon, 25 Aug 2014 19:05:38 +0000 (13:05 -0600)]
Update for 1.8.11b2
Todd C. Miller [Mon, 25 Aug 2014 17:30:03 +0000 (11:30 -0600)]
Fix restoration of effective uid/gid in command_details.
This masked the effects an unset (really zero) egid.
Bug 656
Todd C. Miller [Mon, 25 Aug 2014 17:27:30 +0000 (11:27 -0600)]
Set runas egid to the same value as runas gid if egid not specified
by the plugin. Only affects new files created by sudoedit. Bug #656
Todd C. Miller [Mon, 25 Aug 2014 16:42:59 +0000 (10:42 -0600)]
Don't leak temp fd in sudo_edit_copy_tfiles().
Fix fd leak in error path in sudo_edit_copy_tfiles().
Todd C. Miller [Fri, 22 Aug 2014 21:23:42 +0000 (15:23 -0600)]
fix typo
Todd C. Miller [Fri, 22 Aug 2014 17:06:05 +0000 (11:06 -0600)]
We write an unsigned char, not an int, to the signal pipe.
Todd C. Miller [Thu, 21 Aug 2014 21:42:35 +0000 (15:42 -0600)]
Sprinkle some debugging around uid/gid setting in sudoedit.
Todd C. Miller [Thu, 21 Aug 2014 21:28:36 +0000 (15:28 -0600)]
Make sudoedit work with SELinux RBAC.
Adapted from RedHat patches (Daniel Kopecek) but made to behave a
bit more like the non-SELinux bits.
Todd C. Miller [Thu, 21 Aug 2014 21:28:35 +0000 (15:28 -0600)]
Refactor code that copies temp files into separate functions.
Todd C. Miller [Thu, 21 Aug 2014 15:23:34 +0000 (09:23 -0600)]
Fix typo, .em should be .Em
Todd C. Miller [Mon, 18 Aug 2014 22:46:55 +0000 (16:46 -0600)]
Add missing call to initprogname().
Todd C. Miller [Mon, 18 Aug 2014 22:35:58 +0000 (16:35 -0600)]
Don't recurse infinitely until we blow the stack when the debug
file can't be opened in the front-end. The conversation-type debug
mode will be removed in the future.
Todd C. Miller [Fri, 15 Aug 2014 22:46:24 +0000 (16:46 -0600)]
Only use the first two digits of the version number.
Fixes a problem on RHEL 7 which has version numbers like 7.0.1406
Todd C. Miller [Fri, 15 Aug 2014 21:56:25 +0000 (15:56 -0600)]
Fix return value when kernel has no audit support.
Todd C. Miller [Fri, 15 Aug 2014 20:37:07 +0000 (14:37 -0600)]
remove unused label
Todd C. Miller [Thu, 14 Aug 2014 22:36:23 +0000 (16:36 -0600)]
Update to automake 1.14 (no code changes).
Todd C. Miller [Mon, 11 Aug 2014 17:23:16 +0000 (11:23 -0600)]
Document the interaction between sudoers environment handling and
the pam_env module.
Todd C. Miller [Mon, 11 Aug 2014 16:37:08 +0000 (10:37 -0600)]
Don't allow pam_env to overwrite existing variables when env_reset
is disabled unless the variables match the black list and would
normally be removed. It may just be better to never overwrite when
env_reset is disabled.
Todd C. Miller [Sun, 10 Aug 2014 02:46:21 +0000 (20:46 -0600)]
Update year range to include 2014
Todd C. Miller [Fri, 8 Aug 2014 20:53:14 +0000 (14:53 -0600)]
Remove regress .err files in distclean target.
Todd C. Miller [Fri, 8 Aug 2014 20:49:06 +0000 (14:49 -0600)]
Remove generated files for linker as part of distclean.
Todd C. Miller [Fri, 8 Aug 2014 20:44:22 +0000 (14:44 -0600)]
Ignore .out and .err files in lib/util regress
Todd C. Miller [Fri, 8 Aug 2014 20:33:22 +0000 (14:33 -0600)]
Add additional 1.8.11 changes and fix typos.
Todd C. Miller [Fri, 8 Aug 2014 17:19:20 +0000 (11:19 -0600)]
Avoid building/running the check_symbols test program unless we are
building a shared sudoers plugin.
Todd C. Miller [Fri, 8 Aug 2014 17:07:09 +0000 (11:07 -0600)]
Remove two instances of -no-fast-install that were missed before.
Todd C. Miller [Fri, 8 Aug 2014 17:03:24 +0000 (11:03 -0600)]
Add --disable-shared-libutil configure option. It may only be used
in conjunction with the --enable-static-sudoers option.
Todd C. Miller [Thu, 7 Aug 2014 15:55:12 +0000 (09:55 -0600)]
Remove noop man.sed files
Use full path instead of $@.in when calling config.status with --file=-
Todd C. Miller [Thu, 7 Aug 2014 15:38:03 +0000 (09:38 -0600)]
Fix "sudo -C" when we have internal fds to preserve from closefrom().
Todd C. Miller [Wed, 6 Aug 2014 22:45:57 +0000 (16:45 -0600)]
Add explicit support for matching the full environment string
(name=value). Bash functions may now be preserved for full matches,
but not for name-only matches.
Todd C. Miller [Tue, 5 Aug 2014 22:07:31 +0000 (16:07 -0600)]
Ignore lib/util/util.exp
Todd C. Miller [Wed, 30 Jul 2014 21:47:15 +0000 (15:47 -0600)]
Fix exporting of asprintf/vasprintf symbols.
Todd C. Miller [Wed, 30 Jul 2014 21:08:05 +0000 (15:08 -0600)]
Don't export getaddrinfo symbols if we found the function in a library.
Todd C. Miller [Wed, 30 Jul 2014 15:46:48 +0000 (09:46 -0600)]
It is now sudo_efree() not efree().
Don't try to free a pointer to garbage on error.
Todd C. Miller [Wed, 30 Jul 2014 15:37:47 +0000 (09:37 -0600)]
Regen .pot files
Todd C. Miller [Wed, 30 Jul 2014 01:33:55 +0000 (19:33 -0600)]
Plug memory leak, even though we are headed for exit.
Todd C. Miller [Tue, 29 Jul 2014 19:06:18 +0000 (13:06 -0600)]
If getaddrinfo() is missing libsudoutil may need to pull in networking
libraries.