]>
granicus.if.org Git - sudo/log
Todd C. Miller [Mon, 13 Jan 2014 16:52:41 +0000 (09:52 -0700)]
Remove dead store; found by cppcheck
Todd C. Miller [Thu, 9 Jan 2014 00:03:06 +0000 (17:03 -0700)]
Quiet a cppcheck warning about a negative subscript.
Todd C. Miller [Thu, 9 Jan 2014 00:02:22 +0000 (17:02 -0700)]
Make noexec parameter to sudo_execve() bool.
Todd C. Miller [Thu, 9 Jan 2014 00:01:03 +0000 (17:01 -0700)]
Quiet a few innocuous cppcheck warnings.
Todd C. Miller [Wed, 8 Jan 2014 23:48:27 +0000 (16:48 -0700)]
Handle in_res being NULL for sudo_debug_printf() in sudo_sss_filter_result().
Todd C. Miller [Wed, 8 Jan 2014 23:45:06 +0000 (16:45 -0700)]
When writing length to timing file, use %u not %d as it is unsigned.
Todd C. Miller [Wed, 8 Jan 2014 23:29:18 +0000 (16:29 -0700)]
Close export_fp in the error path too, but do not close stdout.
Todd C. Miller [Wed, 8 Jan 2014 23:23:06 +0000 (16:23 -0700)]
Move right brace outside #ifdef HAVE_DISPCRYPT; found by cppcheck.
Todd C. Miller [Mon, 13 Jan 2014 16:52:41 +0000 (09:52 -0700)]
Make this compile again
Todd C. Miller [Mon, 13 Jan 2014 16:52:41 +0000 (09:52 -0700)]
Add suppression line to quiet a bogus (inconclusive) cppcheck warning.
Todd C. Miller [Mon, 13 Jan 2014 16:52:41 +0000 (09:52 -0700)]
Do not leak old istack if realloc fails; found by cppcheck.
Also modify yyless() to avoid a harmless cppcheck warning every
time it is used.
Todd C. Miller [Mon, 13 Jan 2014 16:50:39 +0000 (09:50 -0700)]
Add cppcheck target to run cppcheck on all source files.
Todd C. Miller [Thu, 9 Jan 2014 22:25:51 +0000 (15:25 -0700)]
Update for sudo 1.8.9p2
Todd C. Miller [Thu, 9 Jan 2014 22:23:15 +0000 (15:23 -0700)]
Update to libtool-2.4.2.418
Todd C. Miller [Thu, 9 Jan 2014 22:23:13 +0000 (15:23 -0700)]
Update from http://git.savannah.gnu.org/gitweb/?p=config.git
Todd C. Miller [Wed, 8 Jan 2014 21:34:15 +0000 (14:34 -0700)]
Sudo 1.8.9 also fixes bug #617
Todd C. Miller [Tue, 7 Jan 2014 18:06:24 +0000 (11:06 -0700)]
The fix for the hang was already in the 1.8.9 tarballs.
Todd C. Miller [Tue, 7 Jan 2014 17:44:35 +0000 (10:44 -0700)]
Update for sudo 1.8.9p1
Todd C. Miller [Tue, 7 Jan 2014 17:43:31 +0000 (10:43 -0700)]
Update copyright year.
Todd C. Miller [Tue, 7 Jan 2014 17:35:56 +0000 (10:35 -0700)]
Go back to making the bit fields in struct cmndtag explicitly signed.
This fixes a problem on gcc 4.8 (at least) which appears to be
treating the value as unsigned by default.
Todd C. Miller [Tue, 7 Jan 2014 16:30:28 +0000 (09:30 -0700)]
Use debug_return_int() instead of bare return for debugging support.
Todd C. Miller [Mon, 6 Jan 2014 18:20:38 +0000 (11:20 -0700)]
Fix infinite loop that could be triggered by sudo_ev_loopbreak()
and sudo_ev_loopcontinue().
Todd C. Miller [Mon, 6 Jan 2014 17:15:05 +0000 (10:15 -0700)]
Update for 1.8.9 final.
Todd C. Miller [Sat, 4 Jan 2014 19:42:34 +0000 (12:42 -0700)]
Handle a sequence file with no trailing newline.
Todd C. Miller [Sat, 4 Jan 2014 01:28:07 +0000 (18:28 -0700)]
Truncate io log and timing files on open when recycling them.
Only an issue when the sequence number wraps around.
Todd C. Miller [Sat, 4 Jan 2014 01:11:27 +0000 (18:11 -0700)]
Repair reading of the iolog sequence number that got broken when
adding stricter strtoul() checks.
Todd C. Miller [Fri, 3 Jan 2014 23:41:25 +0000 (16:41 -0700)]
If invoked as sudoedit we can't just exec the command directly since
the temporary files need to be updated before sudo exits.
Todd C. Miller [Fri, 3 Jan 2014 21:34:14 +0000 (14:34 -0700)]
Fix restoration of the close-on-exec flag when moving a relocated
fd back into its original position.
Todd C. Miller [Thu, 2 Jan 2014 17:40:03 +0000 (10:40 -0700)]
Add "see below" to reference "Secure editing" section in "Preventing
shell escapes".
Todd C. Miller [Wed, 1 Jan 2014 14:07:37 +0000 (07:07 -0700)]
Add initial "Secure editing" section.
Todd C. Miller [Wed, 1 Jan 2014 14:07:21 +0000 (07:07 -0700)]
Update copyright year.
Todd C. Miller [Tue, 31 Dec 2013 23:23:44 +0000 (16:23 -0700)]
sync with translationproject.org
Todd C. Miller [Tue, 31 Dec 2013 22:58:52 +0000 (15:58 -0700)]
Make user_cwd and user_tty dynamically allocated even for the
"unknown" case.
Todd C. Miller [Mon, 30 Dec 2013 15:49:34 +0000 (08:49 -0700)]
Use -fstack-protector-strong in preference to -fstack-protector-all
or -fstack-protector.
Todd C. Miller [Mon, 30 Dec 2013 15:26:58 +0000 (08:26 -0700)]
Dell acquired Quest
Todd C. Miller [Sun, 29 Dec 2013 16:12:23 +0000 (09:12 -0700)]
sync with translationproject.org
Todd C. Miller [Sun, 29 Dec 2013 01:40:15 +0000 (18:40 -0700)]
sync with translationproject.org
Todd C. Miller [Sat, 28 Dec 2013 21:28:52 +0000 (14:28 -0700)]
regen
Todd C. Miller [Sat, 28 Dec 2013 21:23:30 +0000 (14:23 -0700)]
Update for recent changes.
Todd C. Miller [Sat, 28 Dec 2013 14:59:45 +0000 (07:59 -0700)]
Fix typo; we want setlocale(LC_ALL, "") since we are setting the
locale for the first time.
Todd C. Miller [Fri, 27 Dec 2013 13:50:06 +0000 (06:50 -0700)]
Use sudoers_initlocale() in main() startup, not sudoers_setlocal()
as the latter assumes we are already in the user's locale which may
not be the case. For sudoreplay, we can just use setlocale()
directly as there is no sudoers locale.
Todd C. Miller [Tue, 24 Dec 2013 22:01:00 +0000 (15:01 -0700)]
Redo preserve_fds support to remap high fds so we can get the most
out of closefrom(). The fds are then restored after closefrom().
Todd C. Miller [Tue, 24 Dec 2013 21:50:28 +0000 (14:50 -0700)]
Fix install-plugin when sudoers is compiled statically.
Todd C. Miller [Fri, 20 Dec 2013 18:14:32 +0000 (11:14 -0700)]
Add support for preventing fds from getting clobbered by closefrom().
Todd C. Miller [Thu, 19 Dec 2013 23:44:05 +0000 (16:44 -0700)]
regen
Todd C. Miller [Wed, 18 Dec 2013 22:01:04 +0000 (15:01 -0700)]
Need to include limits.h here too.
Todd C. Miller [Tue, 17 Dec 2013 23:08:18 +0000 (16:08 -0700)]
No need to use __signed.
Todd C. Miller [Tue, 17 Dec 2013 23:02:32 +0000 (16:02 -0700)]
Need limits.h here too.
Todd C. Miller [Tue, 17 Dec 2013 21:32:24 +0000 (14:32 -0700)]
Still need limits.h here.
Todd C. Miller [Tue, 17 Dec 2013 17:48:20 +0000 (10:48 -0700)]
regen
Todd C. Miller [Tue, 17 Dec 2013 14:38:20 +0000 (07:38 -0700)]
Go back to using /proc/self/fd instead of /proc/$$/fd as only AIX
lacks /proc/self and it has F_CLOSEM.
Todd C. Miller [Tue, 17 Dec 2013 00:00:17 +0000 (17:00 -0700)]
Use a switch to map digest type to name instead of an array of
strings.
Todd C. Miller [Mon, 16 Dec 2013 23:24:02 +0000 (16:24 -0700)]
Use /dev/fd in closefrom() on FreeBSD < 8.0 and Mac OS X.
Todd C. Miller [Mon, 16 Dec 2013 21:53:27 +0000 (14:53 -0700)]
Remove _MAX and _MIN compat; we rely on missing.h for that.
We already require the compiler handle long long so there's
no need to use HAVE_LONG_LONG_INT everywhere.
Todd C. Miller [Mon, 16 Dec 2013 21:52:31 +0000 (14:52 -0700)]
Remove _MAX and _MIN defines that any system from the last 20 years
should have. Add ULLONG_MAX in case it is missing.
Todd C. Miller [Mon, 16 Dec 2013 21:32:42 +0000 (14:32 -0700)]
Change visudo -x to take a file name argument, which may be '-' to
write the exported sudoers file to stdout.
Todd C. Miller [Mon, 16 Dec 2013 21:18:42 +0000 (14:18 -0700)]
Move symbol extern defs into sudoers.h
Todd C. Miller [Mon, 16 Dec 2013 21:14:36 +0000 (14:14 -0700)]
Add missing sudo_util.h
Todd C. Miller [Sat, 14 Dec 2013 15:30:37 +0000 (08:30 -0700)]
Warn if the time stamp in the I/O log file does not fit in time_t.
Warn if the info line is not well-formed instead of silently ignoring
it.
Todd C. Miller [Fri, 13 Dec 2013 14:46:05 +0000 (07:46 -0700)]
Rename libcommon libsudo_util
Todd C. Miller [Fri, 13 Dec 2013 01:29:07 +0000 (18:29 -0700)]
Move prototypes for functions provided by libcommon that don't have
their own header files into sudo_util.h.
Todd C. Miller [Wed, 11 Dec 2013 21:43:04 +0000 (14:43 -0700)]
Now that we have proper number parsing functions we should store
T_UINT defaults values as unsigned int, not int.
Todd C. Miller [Wed, 11 Dec 2013 21:31:50 +0000 (14:31 -0700)]
Don't use int where we really mean enum def_tuple. When this code
was written it was assumed that we may have multiple tuple types.
However, that hasn't happened and probably never will.
Todd C. Miller [Wed, 11 Dec 2013 20:55:12 +0000 (13:55 -0700)]
Regen after string parsing changes.
Todd C. Miller [Wed, 11 Dec 2013 20:43:10 +0000 (13:43 -0700)]
The OpenBSD strtonum() uses very short error strings that can't
be translated usefully. Convert them to longer strings on error.
Also use the longer strings for atomode() and atoid().
Todd C. Miller [Tue, 10 Dec 2013 23:56:54 +0000 (16:56 -0700)]
Add atomode() function for parsing a file mode.
Todd C. Miller [Tue, 10 Dec 2013 23:23:21 +0000 (16:23 -0700)]
Use strtonum() instead of atoi(), strtol() or strtoul() where possible.
Todd C. Miller [Tue, 10 Dec 2013 21:38:52 +0000 (14:38 -0700)]
Add strtonum.c to compat for simpler number parsing.
Todd C. Miller [Mon, 9 Dec 2013 21:06:46 +0000 (14:06 -0700)]
Fix a warning on Solaris, we need to use debug_return_const_ptr.
Todd C. Miller [Mon, 9 Dec 2013 21:00:55 +0000 (14:00 -0700)]
check_symbols needs to link with SUDO_LIBS in order to get -lpthread
on HP-UX for libldap (which uses threads). It would be better to
have a separate variable for the pthread library but this is no
worse than it used to be.
Todd C. Miller [Sun, 8 Dec 2013 18:20:32 +0000 (11:20 -0700)]
add missing comma
Todd C. Miller [Sun, 8 Dec 2013 18:06:27 +0000 (11:06 -0700)]
Make -c option description more accurate.
Todd C. Miller [Sat, 7 Dec 2013 16:17:54 +0000 (09:17 -0700)]
When checking whether a user may change the login class, just check
pw_uid of the runas user, which was passed in to set_loginclass().
Todd C. Miller [Fri, 6 Dec 2013 21:10:03 +0000 (14:10 -0700)]
Use atoid() when parsing user/group IDs and print them as unsigned int.
Todd C. Miller [Thu, 5 Dec 2013 23:19:50 +0000 (16:19 -0700)]
Correctly parse 64-bit times in I/O log files.
Todd C. Miller [Thu, 5 Dec 2013 22:51:56 +0000 (15:51 -0700)]
Use atoid() not atoi() when parsing uids/gids.
Todd C. Miller [Thu, 5 Dec 2013 21:34:56 +0000 (14:34 -0700)]
Better match debugging.
Sprinkle const in match functions.
Todd C. Miller [Wed, 4 Dec 2013 23:05:05 +0000 (16:05 -0700)]
Document that plugins can be compiled statically into the sudo binary.
Todd C. Miller [Tue, 3 Dec 2013 22:47:45 +0000 (15:47 -0700)]
sudo_sss_filter_user_netgroup(): fix comment typos, break out of loop
early if we match ALL or netgroup.
Todd C. Miller [Tue, 3 Dec 2013 22:39:12 +0000 (15:39 -0700)]
When filtering netgroups, use the passwd struct stashed in the handle,
not user_name since we may be listing another users privileges.
Todd C. Miller [Tue, 3 Dec 2013 22:18:42 +0000 (15:18 -0700)]
RHEL 6 and above builds sudo with SSSD support
Todd C. Miller [Tue, 3 Dec 2013 22:15:12 +0000 (15:15 -0700)]
Avoid passing NULL domainname to sudo_debug_printf().
Todd C. Miller [Tue, 3 Dec 2013 21:42:33 +0000 (14:42 -0700)]
Document sssd debug subsystem.
Todd C. Miller [Tue, 3 Dec 2013 21:40:58 +0000 (14:40 -0700)]
Document "event" debug subsystem.
Todd C. Miller [Tue, 3 Dec 2013 21:33:26 +0000 (14:33 -0700)]
Use atoid() instead of atoi() when parsing uids/gids so we get
proper range checking.
Todd C. Miller [Tue, 3 Dec 2013 21:19:37 +0000 (14:19 -0700)]
Add user netgroup filtering for SSSD. Previously, rules for a
netgroup were applied to all even when they did not belong to the
specified netgroup. RedHat Bugzilla 880150.
Todd C. Miller [Tue, 3 Dec 2013 21:10:11 +0000 (14:10 -0700)]
Fix several issues found by the clang static analyzer; Daniel Kopecek
Todd C. Miller [Mon, 2 Dec 2013 23:00:15 +0000 (16:00 -0700)]
Mention how to dump sudoers info from LDAP.
Todd C. Miller [Mon, 2 Dec 2013 18:14:25 +0000 (11:14 -0700)]
On Solaris, disabling the proc_exec privilege appears to interfere
with DAC file permissions. Adding DAC override permissions to the
inheritable set works around this for commands run as root without
giving extra permissions to other users. Bug #626
Todd C. Miller [Mon, 2 Dec 2013 02:12:21 +0000 (19:12 -0700)]
Instead of setprogname(), add initprogname() which gets the program
name for getprogname() using /proc or pstat() if possible.
Todd C. Miller [Sun, 1 Dec 2013 01:43:57 +0000 (18:43 -0700)]
Ignore EOVERFLOW from pstat_getproc(). The HP-UX kernel appears
to return this in certain situations but it appears to be harmless
at least insofar as retrieving the tty goes.
Todd C. Miller [Sat, 30 Nov 2013 22:19:19 +0000 (15:19 -0700)]
Sync with translationproject.org
Todd C. Miller [Thu, 28 Nov 2013 13:08:08 +0000 (06:08 -0700)]
Add missing newline in help message after export option.
Todd C. Miller [Tue, 26 Nov 2013 14:15:55 +0000 (07:15 -0700)]
Do not add LIBDL to SUDO_LIBS or SUDOERS_LIBS in configure, do it
in Makefile.in so we can make it last. Fixes a linking problem on
Ubuntu precise.
Todd C. Miller [Mon, 25 Nov 2013 16:54:04 +0000 (09:54 -0700)]
Do not rely on NULL being defined for getaddrinfo() test.
Fixes the check on HP-UX 11.23.
Todd C. Miller [Sun, 24 Nov 2013 23:37:32 +0000 (16:37 -0700)]
Regen for sudo 1.8.9b1
Todd C. Miller [Sun, 24 Nov 2013 23:31:40 +0000 (16:31 -0700)]
Sync with translationproject.org
Todd C. Miller [Fri, 22 Nov 2013 23:35:15 +0000 (16:35 -0700)]
Add wrapper functions for dlopen() et al so that we can support
statically compiling in the sudoers plugin but still allow other
plugins to be loaded. The new --enable-static-sudoers configure
option will cause the sudoers plugin to be compiled statically into
the sudo binary. This does not prevent other plugins from being
loaded as per sudo.conf.
Todd C. Miller [Thu, 21 Nov 2013 16:45:55 +0000 (09:45 -0700)]
Handle non-unix groups correctly. Get rid of runasuser and runasgroup
types and use username and usergroup instead. The fact that the user
or group is inside a Runas_List doesn't affect its underlying type.
Todd C. Miller [Wed, 20 Nov 2013 21:35:35 +0000 (14:35 -0700)]
Simplify Defaults list option object. The name and value strings
are superfluous.