]>
granicus.if.org Git - sudo/log
Todd C. Miller [Sun, 2 Feb 2014 13:39:05 +0000 (06:39 -0700)]
Avoid duplicate directories if vardir and rundir are the same.
Todd C. Miller [Sun, 2 Feb 2014 12:23:54 +0000 (05:23 -0700)]
regen
Todd C. Miller [Sun, 2 Feb 2014 12:17:47 +0000 (05:17 -0700)]
Elaborate on time stamp error message causes.
Todd C. Miller [Sat, 1 Feb 2014 13:30:40 +0000 (06:30 -0700)]
Remove the time stamp dir and its contents when uninstalling. We
currently leave the lecture status files installed until there is
a better way to detect upgrades.
Todd C. Miller [Sat, 1 Feb 2014 13:15:14 +0000 (06:15 -0700)]
Update time stamp error messages and regen.
Todd C. Miller [Sat, 1 Feb 2014 13:11:29 +0000 (06:11 -0700)]
Restore warning when sudoers is unable to update the time stamp file.
Todd C. Miller [Sat, 1 Feb 2014 12:57:34 +0000 (05:57 -0700)]
Replace --with-timedir and --with-lecture_dir with --with-rundir
and --with-vardir which are the parent directories of the time stamp
and lecture dirs. These directories need to be searchable by
non-root so that the timestampowner setting can function.
Todd C. Miller [Sat, 1 Feb 2014 12:47:16 +0000 (05:47 -0700)]
Fix use of timestampowner in the new time stamp world order. Parent
directories for timestampdir and lecture_dir are now created with
the execute bit set so that we can traverse them as non-root.
Todd C. Miller [Fri, 31 Jan 2014 22:46:25 +0000 (15:46 -0700)]
Regen Makefiles.
Todd C. Miller [Fri, 31 Jan 2014 22:43:34 +0000 (15:43 -0700)]
Move ctim_get and mtim_get to sudo_util.h
Todd C. Miller [Fri, 31 Jan 2014 22:28:41 +0000 (15:28 -0700)]
sprinkle some debug printfs and add function header comments
Todd C. Miller [Fri, 31 Jan 2014 22:02:31 +0000 (15:02 -0700)]
Properly handle the case where /var/run/sudo/ts doesn't exist.
Todd C. Miller [Fri, 31 Jan 2014 17:12:21 +0000 (10:12 -0700)]
fix typo
Todd C. Miller [Fri, 31 Jan 2014 17:05:57 +0000 (10:05 -0700)]
Mention "sudo -K" change.
Todd C. Miller [Fri, 31 Jan 2014 17:05:49 +0000 (10:05 -0700)]
Upgrade info for 1.8.10
Todd C. Miller [Thu, 30 Jan 2014 23:24:48 +0000 (16:24 -0700)]
Warn on ftruncate failure().
Todd C. Miller [Thu, 30 Jan 2014 23:15:03 +0000 (16:15 -0700)]
Fix checking of lecture status.
Todd C. Miller [Thu, 30 Jan 2014 23:07:28 +0000 (16:07 -0700)]
Do not override timedir on Debian.
Todd C. Miller [Thu, 30 Jan 2014 22:51:59 +0000 (15:51 -0700)]
Use sudo_timeval macros and remove compat macros from missing.h
Todd C. Miller [Thu, 30 Jan 2014 22:50:40 +0000 (15:50 -0700)]
Switch to new time stamp file format. Each user now has a single
file which may contain multiple records when per-tty time stamps
are in use (the default). The time stamps use a monotonic timer
where available and are once again stored in /var/run/sudo. The
lecture status is now stored separately from the time stamps in a
different directory.
Todd C. Miller [Wed, 29 Jan 2014 22:19:45 +0000 (15:19 -0700)]
When listing a user's privileges, always prompt the user for their
own password, regardless of the value of target_pw, root_pw or
runas_pw.
Todd C. Miller [Thu, 30 Jan 2014 20:06:29 +0000 (13:06 -0700)]
Zero out errstr when there is no error; fixes bug #632
Todd C. Miller [Sun, 26 Jan 2014 20:23:09 +0000 (13:23 -0700)]
Use inet_aton() instead of inet_addr() as it allows us to distinguish
between the address (or mask 255.255.255.255) and an error. In the
future we may consider switching to inet_pton() for IPv4 too.
Todd C. Miller [Fri, 24 Jan 2014 23:08:28 +0000 (16:08 -0700)]
Fix typo, ULONG_MAX vs. ULLONG_MAX
Todd C. Miller [Fri, 24 Jan 2014 16:43:10 +0000 (09:43 -0700)]
Fix typo in the AIX case.
Todd C. Miller [Fri, 24 Jan 2014 16:39:11 +0000 (09:39 -0700)]
Size pointer for sudo_parseln() should be size_t not ssize_t.
This was already correct for the nsswitch.conf case.
Todd C. Miller [Thu, 23 Jan 2014 21:52:54 +0000 (14:52 -0700)]
It is now possible to disable network interface probing in sudo.conf
by changing the value of the probe_interfaces setting.
Todd C. Miller [Thu, 23 Jan 2014 03:48:49 +0000 (20:48 -0700)]
If inet_addr() returns INADDR_NONE, return false instead of iterating
through the interfaces looking for a match that will never happen.
Todd C. Miller [Wed, 22 Jan 2014 21:47:27 +0000 (14:47 -0700)]
Add explicit dependency on sudoers.la to sudo target when sudoers
is compiled statically into the sudo binary.
Todd C. Miller [Tue, 21 Jan 2014 23:32:00 +0000 (16:32 -0700)]
Do not assume localtime(), gmtime() and ctime() always return non-NULL.
Todd C. Miller [Wed, 15 Jan 2014 13:19:34 +0000 (06:19 -0700)]
Update copyright years
Todd C. Miller [Wed, 15 Jan 2014 13:13:23 +0000 (06:13 -0700)]
Eliminate dead store found by clang checker.
Todd C. Miller [Wed, 15 Jan 2014 13:01:54 +0000 (06:01 -0700)]
Update for sudo 1.8.9p4
Todd C. Miller [Wed, 15 Jan 2014 13:00:59 +0000 (06:00 -0700)]
When relocating fds, update the debug fd if it is set so we are
guaranteed to get debugging output.
Todd C. Miller [Wed, 15 Jan 2014 03:34:20 +0000 (20:34 -0700)]
If the event loop exits due to an error and we are not logging I/O,
kill the command if still running. Fixes a bug where sudo could
exit while the command was still running.
Todd C. Miller [Wed, 15 Jan 2014 03:20:26 +0000 (20:20 -0700)]
When relocating preserved fds, start with the highest ones first
to avoid moving fds around more than we have to. Now uses a bitmap
to keep track of which fds are being preserved. Fixes a bug where
the debugging fd could be relocated to the same fd as the error
backchannel temporarily, resulting in debugging output being printed
to the backchannel if util@debug was enabled.
Todd C. Miller [Tue, 14 Jan 2014 21:22:04 +0000 (14:22 -0700)]
When restoring fds traverse list from high -> low, not low -> high
to avoid implicitly closing an fd we want to relocate.
Todd C. Miller [Tue, 14 Jan 2014 17:54:56 +0000 (10:54 -0700)]
If not logging I/O we may get EOF when the command is executed and
the other end of the backchannel is closed. Just remove the
backchannel event in this case or we will continue to receive
the event. Bug #631
Todd C. Miller [Tue, 14 Jan 2014 16:26:14 +0000 (09:26 -0700)]
sync with translationproject.org
Todd C. Miller [Mon, 13 Jan 2014 18:11:26 +0000 (11:11 -0700)]
Fix strtonum() usage when parsing /proc/self/stat on Linux.
Bug #630
Todd C. Miller [Mon, 13 Jan 2014 18:09:00 +0000 (11:09 -0700)]
Update for sudo 1.8.9p3
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.