Commit Graph

7201 Commits

Author SHA1 Message Date
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
Todd C. Miller
11b1fe60da Update from http://git.savannah.gnu.org/gitweb/?p=config.git 2014-01-09 15:23:13 -07:00
Todd C. Miller
d94a357096 Sudo 1.8.9 also fixes bug #617 2014-01-08 14:34:15 -07:00
Todd C. Miller
2c2ab9c321 The fix for the hang was already in the 1.8.9 tarballs. 2014-01-07 11:06:24 -07:00
Todd C. Miller
a3d88b9db7 Update for sudo 1.8.9p1 2014-01-07 10:44:35 -07:00
Todd C. Miller
27598bc0ab Update copyright year. 2014-01-07 10:43:31 -07:00
Todd C. Miller
f57beb1afa 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.
2014-01-07 10:35:56 -07:00
Todd C. Miller
1bd6943624 Use debug_return_int() instead of bare return for debugging support. 2014-01-07 09:30:28 -07:00
Todd C. Miller
5a6d211d67 Fix infinite loop that could be triggered by sudo_ev_loopbreak()
and sudo_ev_loopcontinue().
2014-01-06 11:20:38 -07:00
Todd C. Miller
d3fd43fd2b Update for 1.8.9 final. 2014-01-06 10:15:05 -07:00
Todd C. Miller
0e1d726aac Handle a sequence file with no trailing newline. 2014-01-04 12:42:34 -07:00
Todd C. Miller
391bc02e25 Truncate io log and timing files on open when recycling them.
Only an issue when the sequence number wraps around.
2014-01-03 18:28:07 -07:00
Todd C. Miller
6fe419423a Repair reading of the iolog sequence number that got broken when
adding stricter strtoul() checks.
2014-01-03 18:11:27 -07:00
Todd C. Miller
d013b23ce3 If invoked as sudoedit we can't just exec the command directly since
the temporary files need to be updated before sudo exits.
2014-01-03 16:41:25 -07:00
Todd C. Miller
38bf95a767 Fix restoration of the close-on-exec flag when moving a relocated
fd back into its original position.
2014-01-03 14:34:14 -07:00
Todd C. Miller
ed029f9a69 Add "see below" to reference "Secure editing" section in "Preventing
shell escapes".
2014-01-02 10:40:03 -07:00
Todd C. Miller
9bbf4c7285 Add initial "Secure editing" section. 2014-01-01 07:07:37 -07:00
Todd C. Miller
76fb023903 Update copyright year. 2014-01-01 07:07:21 -07:00
Todd C. Miller
929d8a38ea sync with translationproject.org 2013-12-31 16:23:44 -07:00
Todd C. Miller
1943396d75 Make user_cwd and user_tty dynamically allocated even for the
"unknown" case.
2013-12-31 15:58:52 -07:00
Todd C. Miller
483e6972f6 Use -fstack-protector-strong in preference to -fstack-protector-all
or -fstack-protector.
2013-12-30 08:49:34 -07:00
Todd C. Miller
cd77926e1b Dell acquired Quest 2013-12-30 08:26:58 -07:00
Todd C. Miller
42dbe7f4bd sync with translationproject.org 2013-12-29 09:12:23 -07:00
Todd C. Miller
72cd57dea3 sync with translationproject.org 2013-12-28 18:40:15 -07:00
Todd C. Miller
11babdaabc regen 2013-12-28 14:28:52 -07:00
Todd C. Miller
bb87b3abf9 Update for recent changes. 2013-12-28 14:23:30 -07:00
Todd C. Miller
a6e1766dd6 Fix typo; we want setlocale(LC_ALL, "") since we are setting the
locale for the first time.
2013-12-28 07:59:45 -07:00
Todd C. Miller
91db1efe91 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.
2013-12-27 06:50:06 -07:00
Todd C. Miller
4d80e7cea4 Redo preserve_fds support to remap high fds so we can get the most
out of closefrom().  The fds are then restored after closefrom().
2013-12-24 15:01:00 -07:00
Todd C. Miller
76544011ed Fix install-plugin when sudoers is compiled statically. 2013-12-24 14:50:28 -07:00
Todd C. Miller
1adeda54ef Add support for preventing fds from getting clobbered by closefrom(). 2013-12-20 11:14:32 -07:00
Todd C. Miller
388ad69f09 regen 2013-12-19 16:44:05 -07:00
Todd C. Miller
291f88d2bc Need to include limits.h here too. 2013-12-18 15:01:04 -07:00
Todd C. Miller
eb44a5ba5c No need to use __signed. 2013-12-17 16:08:18 -07:00