Todd C. Miller
32b897ac67
Restore warning when sudoers is unable to update the time stamp file.
2014-02-01 06:11:29 -07:00
Todd C. Miller
aeb5ceead8
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.
2014-02-01 05:57:34 -07:00
Todd C. Miller
fb29e91ef0
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.
2014-02-01 05:47:16 -07:00
Todd C. Miller
a2dc10ece7
Regen Makefiles.
2014-01-31 15:46:25 -07:00
Todd C. Miller
d0f343ba2e
Move ctim_get and mtim_get to sudo_util.h
2014-01-31 15:43:34 -07:00
Todd C. Miller
32b4713d6d
sprinkle some debug printfs and add function header comments
2014-01-31 15:28:41 -07:00
Todd C. Miller
d7257a63e7
Properly handle the case where /var/run/sudo/ts doesn't exist.
2014-01-31 15:02:31 -07:00
Todd C. Miller
b15b03560a
fix typo
2014-01-31 10:12:21 -07:00
Todd C. Miller
f04f6eeb4a
Mention "sudo -K" change.
2014-01-31 10:05:57 -07:00
Todd C. Miller
51cab56795
Upgrade info for 1.8.10
2014-01-31 10:05:49 -07:00
Todd C. Miller
596fc68aca
Warn on ftruncate failure().
2014-01-30 16:24:48 -07:00
Todd C. Miller
63e7aa9942
Fix checking of lecture status.
2014-01-30 16:15:03 -07:00
Todd C. Miller
f4e037a0da
Do not override timedir on Debian.
2014-01-30 16:07:28 -07:00
Todd C. Miller
b813c4de48
Use sudo_timeval macros and remove compat macros from missing.h
2014-01-30 15:51:59 -07:00
Todd C. Miller
659b1f0e34
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.
2014-01-30 15:50:40 -07:00
Todd C. Miller
db3b776277
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.
2014-01-29 15:19:45 -07:00
Todd C. Miller
5a636f2ea1
Zero out errstr when there is no error; fixes bug #632
2014-01-30 13:06:29 -07:00
Todd C. Miller
aaecd326e4
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.
2014-01-26 13:23:09 -07:00
Todd C. Miller
7e008eb677
Fix typo, ULONG_MAX vs. ULLONG_MAX
2014-01-24 16:08:28 -07:00
Todd C. Miller
f6542e90f0
Fix typo in the AIX case.
2014-01-24 09:43:10 -07:00
Todd C. Miller
7e88cc27bf
Size pointer for sudo_parseln() should be size_t not ssize_t.
...
This was already correct for the nsswitch.conf case.
2014-01-24 09:39:11 -07:00
Todd C. Miller
1a42e5f63d
It is now possible to disable network interface probing in sudo.conf
...
by changing the value of the probe_interfaces setting.
2014-01-23 14:52:54 -07:00
Todd C. Miller
4c9650f78f
If inet_addr() returns INADDR_NONE, return false instead of iterating
...
through the interfaces looking for a match that will never happen.
2014-01-22 20:48:49 -07:00
Todd C. Miller
cf6bca1390
Add explicit dependency on sudoers.la to sudo target when sudoers
...
is compiled statically into the sudo binary.
2014-01-22 14:47:27 -07:00
Todd C. Miller
ae6fb933f0
Do not assume localtime(), gmtime() and ctime() always return non-NULL.
2014-01-21 16:32:00 -07:00
Todd C. Miller
5a6db565c1
Update copyright years
2014-01-15 06:19:34 -07:00
Todd C. Miller
5f88e95bc9
Eliminate dead store found by clang checker.
2014-01-15 06:13:23 -07:00
Todd C. Miller
2de0115cb8
Update for sudo 1.8.9p4
2014-01-15 06:01:54 -07:00
Todd C. Miller
8ca711ee15
When relocating fds, update the debug fd if it is set so we are
...
guaranteed to get debugging output.
2014-01-15 06:00:59 -07:00
Todd C. Miller
640a5ddb48
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.
2014-01-14 20:34:20 -07:00
Todd C. Miller
77b126acc4
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.
2014-01-14 20:20:26 -07:00
Todd C. Miller
26cff8bcb5
When restoring fds traverse list from high -> low, not low -> high
...
to avoid implicitly closing an fd we want to relocate.
2014-01-14 14:22:04 -07:00
Todd C. Miller
d7277fc96e
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
2014-01-14 10:54:56 -07:00
Todd C. Miller
6a76d1a1c2
sync with translationproject.org
2014-01-14 09:26:14 -07:00
Todd C. Miller
d99b4f0909
Fix strtonum() usage when parsing /proc/self/stat on Linux.
...
Bug #630
2014-01-13 11:11:26 -07:00
Todd C. Miller
50c7e759d9
Update for sudo 1.8.9p3
2014-01-13 11:09:00 -07:00
Todd C. Miller
bec5786e5e
Remove dead store; found by cppcheck
2014-01-13 09:52:41 -07:00
Todd C. Miller
73f6e56c57
Quiet a cppcheck warning about a negative subscript.
2014-01-08 17:03:06 -07:00
Todd C. Miller
bb9775879b
Make noexec parameter to sudo_execve() bool.
2014-01-08 17:02:22 -07:00
Todd C. Miller
aa93ef78a7
Quiet a few innocuous cppcheck warnings.
2014-01-08 17:01:03 -07:00
Todd C. Miller
57113a536f
Handle in_res being NULL for sudo_debug_printf() in sudo_sss_filter_result().
2014-01-08 16:48:27 -07:00
Todd C. Miller
12fc51060e
When writing length to timing file, use %u not %d as it is unsigned.
2014-01-08 16:45:06 -07:00
Todd C. Miller
4b5ad37b47
Close export_fp in the error path too, but do not close stdout.
2014-01-08 16:29:18 -07:00
Todd C. Miller
7ace435d44
Move right brace outside #ifdef HAVE_DISPCRYPT; found by cppcheck.
2014-01-08 16:23:06 -07:00
Todd C. Miller
cadba501e4
Make this compile again
2014-01-13 09:52:41 -07:00
Todd C. Miller
f7421f769c
Add suppression line to quiet a bogus (inconclusive) cppcheck warning.
2014-01-13 09:52:41 -07:00
Todd C. Miller
b75bb6991f
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.
2014-01-13 09:52:41 -07:00
Todd C. Miller
78355e618f
Add cppcheck target to run cppcheck on all source files.
2014-01-13 09:50:39 -07:00
Todd C. Miller
bf7a513890
Update for sudo 1.8.9p2
2014-01-09 15:25:51 -07:00
Todd C. Miller
a2a029ecfe
Update to libtool-2.4.2.418
2014-01-09 15:23:15 -07:00