]>
granicus.if.org Git - sudo/log
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
Todd C. Miller [Mon, 21 Jul 2014 20:37:27 +0000 (14:37 -0600)]
Rename queue.h -> sudo_queue.h to avoid collisions with the system
version.
Todd C. Miller [Mon, 21 Jul 2014 15:13:47 +0000 (09:13 -0600)]
Conver sudo_debug_write() to a macro
Todd C. Miller [Thu, 17 Jul 2014 14:40:26 +0000 (08:40 -0600)]
Fix man page post-processing; it was deleting more than intended.
Todd C. Miller [Wed, 16 Jul 2014 22:37:16 +0000 (16:37 -0600)]
Remove double $(srcdir) when running sed scripts.
Todd C. Miller [Wed, 16 Jul 2014 21:44:21 +0000 (15:44 -0600)]
"an EXEC tag" not "a EXEC tag"
Todd C. Miller [Wed, 16 Jul 2014 21:38:52 +0000 (15:38 -0600)]
Document that I/O logging is not enabled by default.
Todd C. Miller [Wed, 16 Jul 2014 21:25:41 +0000 (15:25 -0600)]
Document that exec_background is off by default.
Todd C. Miller [Mon, 14 Jul 2014 15:56:38 +0000 (09:56 -0600)]
Error out if sesh is run as a login shell but the shell it needs
to run has no slash. This shouldn't happen in practice.
Todd C. Miller [Mon, 14 Jul 2014 15:46:17 +0000 (09:46 -0600)]
Move mksiglist.h and mksigname.h to lib/util where they belong.
Todd C. Miller [Mon, 14 Jul 2014 15:08:50 +0000 (09:08 -0600)]
Avoid passing -no-fast-install to libtool as this results in the
build dir being left in the library path of the installed executable.
Instead, we remove the "lt-" prefix from the program name in
initprogname() so that the regress test output is unaffected by
libtool's binary wrapper.
Todd C. Miller [Mon, 14 Jul 2014 12:32:21 +0000 (06:32 -0600)]
Fix syntax error with some shells.
Todd C. Miller [Mon, 14 Jul 2014 02:14:02 +0000 (20:14 -0600)]
Force libtool to use runtime linking on AIX so that it installs the
plugins as .so files and not .a files.
Todd C. Miller [Sun, 13 Jul 2014 21:23:32 +0000 (15:23 -0600)]
Be sure to NUL-terminate the decoded secret when converting from
base64.
Todd C. Miller [Sun, 13 Jul 2014 20:27:20 +0000 (14:27 -0600)]
Fix a pointer signednes warning calling base64_decode().
Todd C. Miller [Sun, 13 Jul 2014 13:09:00 +0000 (07:09 -0600)]
Use sudo_strtoid() now that it is located in the same library.
Todd C. Miller [Sun, 13 Jul 2014 13:08:12 +0000 (07:08 -0600)]
Skip leading space (ala strtol) so that we can pick up the sign
even if it is not the first character of the string.
Todd C. Miller [Sat, 12 Jul 2014 16:35:00 +0000 (10:35 -0600)]
For sudoedit, audit the actual editor being run, not just the
sudoedit command.
Todd C. Miller [Sat, 12 Jul 2014 16:04:19 +0000 (10:04 -0600)]
Audit failed user role changes. RedHat bz #665131
Todd C. Miller [Sat, 12 Jul 2014 15:16:36 +0000 (09:16 -0600)]
Avoid running check_symbols for static sudoers
Todd C. Miller [Sat, 12 Jul 2014 14:54:52 +0000 (08:54 -0600)]
Adapt to unused alias changes.
Todd C. Miller [Sat, 12 Jul 2014 13:30:18 +0000 (07:30 -0600)]
An unused alias is not really an error, even in strict mode.
RedHat bz #604297
Todd C. Miller [Sat, 12 Jul 2014 12:51:00 +0000 (06:51 -0600)]
When running a login shell via sesh, make new argv[0] -shell, not
/path/to-shell. RedHat bz #
1065418
Todd C. Miller [Fri, 11 Jul 2014 21:42:01 +0000 (15:42 -0600)]
The RHEL sudo package allows users in group wheel to run sudo.
Todd C. Miller [Fri, 11 Jul 2014 21:32:17 +0000 (15:32 -0600)]
Avoid packaging parent directories when they are system directories.
Currently we just skip this when prefix is /usr
Todd C. Miller [Fri, 11 Jul 2014 17:02:05 +0000 (11:02 -0600)]
Fix typo: sudo.d -> sudoers.d. From RedHat bz #726634
Todd C. Miller [Fri, 11 Jul 2014 16:58:20 +0000 (10:58 -0600)]
RHEL 6 and above use /etc/sudo-ldap.conf not /etc/ldap.conf
Todd C. Miller [Fri, 11 Jul 2014 16:27:23 +0000 (10:27 -0600)]
For rpm, do not specify a mode in %attr for symbolic links. Avoids
the warning "Explicit %attr() mode not applicaple to symlink"
Todd C. Miller [Thu, 10 Jul 2014 21:35:04 +0000 (15:35 -0600)]
efree -> sudo_efree for consistency
Todd C. Miller [Thu, 10 Jul 2014 21:31:54 +0000 (15:31 -0600)]
regen
Todd C. Miller [Thu, 10 Jul 2014 21:31:11 +0000 (15:31 -0600)]
Add support for base64 secrets in ldap.conf and ldap.secret.
Based on an idea from anthony AT rlost DOT com
Todd C. Miller [Wed, 9 Jul 2014 20:00:08 +0000 (14:00 -0600)]
Don't use the HP compiler in preference to gcc. Some versions have
trouble compiling lbuf.c.
Todd C. Miller [Wed, 9 Jul 2014 02:19:09 +0000 (20:19 -0600)]
Remove @SOEXT@ and @SHLIB_EXT@ now that we use libtool to install
shared objects. Instead, use the new @SHLIB_ENABLE@ that is set
to the value of $enable_dlopen. For sudo_noexec.so there is nothing
special to do since the install-noexec target is only called when
noexec is enabled by configure.
Todd C. Miller [Tue, 8 Jul 2014 16:03:47 +0000 (10:03 -0600)]
Make dynamic shared objects non-writable on HP-UX. Using writable
DSOs can substantially increase the load time.
Todd C. Miller [Tue, 8 Jul 2014 15:52:21 +0000 (09:52 -0600)]
Add sudo_warn_strerror() that wraps strerror() with calls to
setlocale() in sudoers so we always get the error string in the
user's locale. Also change _warning() to take the error number as
a parameter instead of examining errno.
Todd C. Miller [Thu, 3 Jul 2014 22:55:01 +0000 (16:55 -0600)]
Avoid a cppcheck warning when NSIG is not defined.
Todd C. Miller [Thu, 3 Jul 2014 21:06:46 +0000 (15:06 -0600)]
Fix typos in utimes/futimes macros.
Todd C. Miller [Wed, 2 Jul 2014 02:37:11 +0000 (20:37 -0600)]
regen
Todd C. Miller [Tue, 1 Jul 2014 23:16:12 +0000 (17:16 -0600)]
Fix sudo when --disable-shared configure option was specified.
Todd C. Miller [Mon, 30 Jun 2014 02:45:36 +0000 (20:45 -0600)]
Use libtool to install/uninstall the plugins and sudo_noexec.
Todd C. Miller [Tue, 1 Jul 2014 23:14:50 +0000 (17:14 -0600)]
Do not set an internal name for HP-UX modules, only archives. This
works around a problem with some versions of HP-UX ld where setting
an internal name that doesn't end in .sl causes link errors.
Todd C. Miller [Tue, 1 Jul 2014 23:14:17 +0000 (17:14 -0600)]
Never build build static versions of other plugins.
Todd C. Miller [Tue, 1 Jul 2014 20:26:47 +0000 (14:26 -0600)]
Don't build a static libsudo_util.a unless we are linking sudoers
statically.
Todd C. Miller [Sun, 29 Jun 2014 13:34:51 +0000 (07:34 -0600)]
Fix my typos in the HP-UX libtool patch
Todd C. Miller [Fri, 27 Jun 2014 22:07:20 +0000 (16:07 -0600)]
Mention Solaris audit.
Todd C. Miller [Fri, 27 Jun 2014 22:01:40 +0000 (16:01 -0600)]
Add Solaris audit support; from Gary Winiger at Oracle.
Todd C. Miller [Fri, 27 Jun 2014 21:01:17 +0000 (15:01 -0600)]
Sync MANIFEST with file name changes.
Todd C. Miller [Fri, 27 Jun 2014 20:56:27 +0000 (14:56 -0600)]
regen
Todd C. Miller [Fri, 27 Jun 2014 20:53:54 +0000 (14:53 -0600)]
atobool -> sudo_strtobool
atoid-> sudo_strtoid
atomode -> sudo_strtomode
Todd C. Miller [Fri, 27 Jun 2014 17:48:07 +0000 (11:48 -0600)]
Fix regexp damage when renaming erecalloc() -> sudo_erecalloc()
Todd C. Miller [Fri, 27 Jun 2014 17:47:16 +0000 (11:47 -0600)]
Handle systems like AIX that lack a way to set the modification
time on open fds.
Todd C. Miller [Fri, 27 Jun 2014 17:13:14 +0000 (11:13 -0600)]
update MANIFEST for alloc.h -> sudo_alloc.h change
Todd C. Miller [Fri, 27 Jun 2014 16:48:31 +0000 (10:48 -0600)]
Add sudo_ prefix to alloc.c functions and rename alloc.h -> sudo_alloc.h
Todd C. Miller [Fri, 27 Jun 2014 16:39:49 +0000 (10:39 -0600)]
Remove extra sudo_ prefix from vfatalxnodebug and vfatalx_nodebug.
Todd C. Miller [Fri, 27 Jun 2014 15:46:24 +0000 (09:46 -0600)]
Split fileops.c into parseln.c and locking.c
Todd C. Miller [Fri, 27 Jun 2014 15:30:52 +0000 (09:30 -0600)]
Rename warning/fatal -> sudo_warn/sudo_fatal to avoid namespace
pollution in libsudo_util.so.
Todd C. Miller [Thu, 26 Jun 2014 22:21:19 +0000 (16:21 -0600)]
Reduce name space pollution in libsudo_util.so
Todd C. Miller [Thu, 26 Jun 2014 22:01:24 +0000 (16:01 -0600)]
Use sudo_dso_load() from libsudo_util.so instead of dlopen() since
we no longer link sudo directly with libdl.so.
Todd C. Miller [Thu, 26 Jun 2014 21:51:15 +0000 (15:51 -0600)]
Don't pollute the namespace with lbuf struct and functions
Todd C. Miller [Thu, 26 Jun 2014 21:51:15 +0000 (15:51 -0600)]
Rename parse_gid_list -> sudo_parse_gids to avoid namespace pollution.
Todd C. Miller [Thu, 26 Jun 2014 21:51:15 +0000 (15:51 -0600)]
Rename fmt_string -> sudo_new_key_val to better describe its function.
Todd C. Miller [Thu, 26 Jun 2014 21:51:15 +0000 (15:51 -0600)]
Remove touch() from fileops.c and just call utimes/futimes directly.
Rename lock_file -> sudo_lock_file to avoid namespace pollution
Todd C. Miller [Thu, 26 Jun 2014 21:51:15 +0000 (15:51 -0600)]
Sudo 1.8.11
Todd C. Miller [Thu, 26 Jun 2014 21:51:15 +0000 (15:51 -0600)]
Remove use of setjmp/longjmp in the sudoers plugin. We no longer
call fatal() except in the malloc wrappers and due to libsudo_util
there is now a single copy of fatal/fatalx.
Todd C. Miller [Thu, 26 Jun 2014 21:51:15 +0000 (15:51 -0600)]
Add exported libsudo_util functions to util.exp and mark in headers
using __dso_public.
Todd C. Miller [Thu, 26 Jun 2014 21:51:08 +0000 (15:51 -0600)]
Prefix all libc replacements with sudo_ and #define the real name
to the sudo_ version. That way we don't pollute the libc namespace.
Todd C. Miller [Thu, 26 Jun 2014 21:51:02 +0000 (15:51 -0600)]
Top level directory reorg
Move src/po -> po
Combine common and compat -> lib/util
Move zlib -> lib/zlib
Todd C. Miller [Thu, 26 Jun 2014 21:50:56 +0000 (15:50 -0600)]
libtool patches for HP-UX to support DESTDIR
Todd C. Miller [Thu, 26 Jun 2014 21:50:52 +0000 (15:50 -0600)]
Update polypkg from trunk.
Todd C. Miller [Thu, 26 Jun 2014 21:50:26 +0000 (15:50 -0600)]
Fix sssd compiler warnings and fix the sha2 digest support.
Todd C. Miller [Tue, 17 Jun 2014 14:51:41 +0000 (08:51 -0600)]
Don't call gss_krb5_ccache_name() with a NULL pointer when restoring
the old credential cache file name. This can happen if there was
no old name returned by gss_krb5_ccache_name(). Fixes a crash on
kerberized LDAP on some platforms.
Todd C. Miller [Wed, 4 Jun 2014 17:43:39 +0000 (11:43 -0600)]
Add Greek PO file for sudoers from translationproject.org
Todd C. Miller [Wed, 28 May 2014 15:50:14 +0000 (09:50 -0600)]
Ignore signals sent by the command's process group, not just the
command itself. If we cannot determine the process group ID of the
sender (as it may no longer exist), just check the process ID.
Todd C. Miller [Tue, 27 May 2014 16:51:31 +0000 (10:51 -0600)]
In handler_user_only() only forward the signal if it was not generated
by the command. This should fix a problem with programs that catch
SIGTSTP, perform cleanup, and then re-send the signal to their
process group (of which sudo is the leader).
Todd C. Miller [Tue, 27 May 2014 16:16:49 +0000 (10:16 -0600)]
Handle EINTR from write(2) when writing to pipes and socket pairs.
Todd C. Miller [Sat, 24 May 2014 13:35:35 +0000 (07:35 -0600)]
Norwegian Bokmaal translation for sudoers from translationproject.com