]>
granicus.if.org Git - sudo/log
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.
Todd C. Miller [Tue, 29 Jul 2014 16:52:43 +0000 (10:52 -0600)]
Only include functions in util.exp that are actually in the library.
Fixes a problem on Solaris where undefined functions that are listed
as exported in the map file result in a link error.
Also make sure we use our glob.c if the system is missing glob().
Todd C. Miller [Tue, 29 Jul 2014 15:30:25 +0000 (09:30 -0600)]
Make sure shadow libs don't end up in LIBS, only SUDOERS_LIBS (and
SUDO_LIBS if set_auth_parameters() or initprivs() are present.
Todd C. Miller [Tue, 29 Jul 2014 15:25:07 +0000 (09:25 -0600)]
No need to AC_SUBST HAVE_BSM_AUDIT and HAVE_SOLARIS_AUDIT
Todd C. Miller [Tue, 29 Jul 2014 02:25:46 +0000 (20:25 -0600)]
Attempt to handle systems with SA_SIGINFO but that lack SI_USER.
Todd C. Miller [Mon, 28 Jul 2014 22:36:43 +0000 (16:36 -0600)]
Replace use of HAVE_GETCWD with PREFER_PORTABLE_GETCWD.
It is safe to assume getcwd() exists, we just need to handle broken ones.
Todd C. Miller [Mon, 28 Jul 2014 22:11:39 +0000 (16:11 -0600)]
Add check for inet_ntoa() since it may live in libnsl.
Make getcwd() replacement private to the SunOS 4 section.
Todd C. Miller [Mon, 28 Jul 2014 21:21:44 +0000 (15:21 -0600)]
Avoid mixing declarations and code for non-C99 compilers.
Todd C. Miller [Mon, 28 Jul 2014 21:01:48 +0000 (15:01 -0600)]
For C89, use "const char __func__[]" instead of "const char *__func__".
Todd C. Miller [Mon, 28 Jul 2014 12:22:52 +0000 (06:22 -0600)]
Fix compilation on systems w/o netgroups.
Todd C. Miller [Sat, 26 Jul 2014 12:07:34 +0000 (06:07 -0600)]
Back out old workaround for sudoedit hang when debugging was enabled.
Todd C. Miller [Sat, 26 Jul 2014 12:06:18 +0000 (06:06 -0600)]
Don't memcpy() the preserved_fds TAILQ as the pointers into the
head will be wrong. All we need to do is save the old command
details and restore them after calling run_command(). Fixes a hang
with sudoedit when debugging is enabled.
Todd C. Miller [Fri, 25 Jul 2014 23:07:23 +0000 (17:07 -0600)]
The default policy close function should only print an error message
if the error_code is non-zero.
Todd C. Miller [Fri, 25 Jul 2014 23:00:10 +0000 (17:00 -0600)]
If there the preserved fds list is empty, add a new element with
TAILQ_INSERT_HEAD instead of TAILQ_INSERT_TAIL to avoid an infinite
loop on AIX, Solaris and possibly others when debug mode is active.
Todd C. Miller [Fri, 25 Jul 2014 20:08:59 +0000 (14:08 -0600)]
Remove support for getting program name via /proc as pr_fname is
usually filled in after symbolic links have been processed, even
on Solaris.
Todd C. Miller [Fri, 25 Jul 2014 20:08:50 +0000 (14:08 -0600)]
Use shlib_enable instead of soext when determining whether to install
the library.
Todd C. Miller [Fri, 25 Jul 2014 20:07:39 +0000 (14:07 -0600)]
Avoid potential division by zero
Todd C. Miller [Fri, 25 Jul 2014 20:07:09 +0000 (14:07 -0600)]
Don't link progname test with libsudo_util, just link in progname.lo
directly since that is all we need. Avoid a linker issue on darwin.
Todd C. Miller [Fri, 25 Jul 2014 15:42:41 +0000 (09:42 -0600)]
Remove pstat_getproc() path as pst_ucomm on HP-UX will return the
target of a symbolic link and not the name of the link itself.
Avoid using pr_fname on AIX for the same reason.
Bug 654
Todd C. Miller [Fri, 25 Jul 2014 15:37:58 +0000 (09:37 -0600)]
Add test for getprogname() and symbolic links; bug 654
Todd C. Miller [Thu, 24 Jul 2014 20:39:50 +0000 (14:39 -0600)]
Document tracing
Todd C. Miller [Wed, 23 Jul 2014 23:06:33 +0000 (17:06 -0600)]
sudo_term_{erase,kill} are regular symbols not functions.
Todd C. Miller [Tue, 22 Jul 2014 20:53:15 +0000 (14:53 -0600)]
Fix NULL deref if base64_decode returns -1.
Todd C. Miller [Tue, 22 Jul 2014 20:25:16 +0000 (14:25 -0600)]
Rename missing.h -> sudo_compat.h
Todd C. Miller [Tue, 22 Jul 2014 17:37:39 +0000 (11:37 -0600)]
Merge secure_path.h -> sudo_util.h
Todd C. Miller [Tue, 22 Jul 2014 17:26:17 +0000 (11:26 -0600)]
Version the functions in libsudo_util
Todd C. Miller [Mon, 21 Jul 2014 20:49:43 +0000 (14:49 -0600)]
Rename gettext.h -> sudo_gettext.h
Todd C. Miller [Mon, 21 Jul 2014 20:40:18 +0000 (14:40 -0600)]
Rename fatal.h -> sudo_fatal.h