Commit Graph

4651 Commits

Author SHA1 Message Date
Todd C. Miller
bcd021da5e Rename plugin.pod -> sudo_plugin.pod and wire into Makefile 2010-02-21 21:24:20 -05:00
Todd C. Miller
80fae46be8 Need to include limits.h 2010-02-21 21:19:07 -05:00
Todd C. Miller
edd5184ac1 No more sudo_getpw* 2010-02-21 21:18:52 -05:00
Todd C. Miller
7200af0ce1 Add missing compat bits 2010-02-21 21:15:38 -05:00
Todd C. Miller
b3176134cb compat files should not include sudo.h
wire up compat in sample plugin
2010-02-21 16:41:19 -05:00
Todd C. Miller
fadb324f1a Fix up compat dependencies.
Fix distclean target in doc/Makefile.in
2010-02-21 16:12:01 -05:00
Todd C. Miller
51131cdb89 Fix typo 2010-02-21 15:32:59 -05:00
Todd C. Miller
781a054ab9 Log input and output to temp files for proof of concept. 2010-02-21 14:19:22 -05:00
Todd C. Miller
279cf1e958 Add doc Makefile.in and wire it up 2010-02-21 13:37:52 -05:00
Todd C. Miller
ad4a07a44e Handle SIGSTOP in addition to SIGTSTP. Fixes a problem with suspending
a shell with the "suspend" builtint.
2010-02-21 10:36:50 -05:00
Todd C. Miller
d73e870e6f In child, handle parent side of the pipe going away. 2010-02-21 10:30:43 -05:00
Todd C. Miller
32ea572f27 No longer need to check for explicit death of the child (process #2)
since if it dies we will get EPIPE from the socketpair.
Fix a sizeof() that was causing a spurious error.
Convert SCRIPT_DEBUG to sudo_debug.
2010-02-21 10:26:30 -05:00
Todd C. Miller
c2aaf8fbfb Make sudo_debug do a single vfprintf() which will result in a single
write call on most systems.  Avoids problems with interleaved debug
printf from different processes.  Also remove an extraneous error case
since recv() can't return a short read and add some more XXX.
2010-02-21 10:24:27 -05:00
Todd C. Miller
afcac08246 Fix uninitialized variable. 2010-02-20 15:13:11 -05:00
Todd C. Miller
121c547052 Fix sudo install target 2010-02-20 14:47:43 -05:00
Todd C. Miller
abb431b363 Wire up debug_level 2010-02-20 13:25:10 -05:00
Todd C. Miller
b4e0f503e1 Fix dependencies 2010-02-20 13:24:50 -05:00
Todd C. Miller
3327db2171 Fix setting of plugin dir 2010-02-20 13:20:57 -05:00
Todd C. Miller
6dccb419fd add clean targets 2010-02-20 09:53:05 -05:00
Todd C. Miller
4b88f1a7ef Add missing source for sudo front end 2010-02-20 09:47:46 -05:00
Todd C. Miller
3b354e36f3 Sample plugin demonstrating the sudo plugin API 2010-02-20 09:42:16 -05:00
Todd C. Miller
b6a4cf7233 Modular sudo front-end which loads policy and I/O plugins that do
most the actual work.  Currently relies on dynamic loading using
dlopen().  See doc/plugin.pod for the plugin API.
2010-02-20 09:41:49 -05:00
Todd C. Miller
90c06ad7f2 Sudo plugin API 2010-02-20 09:30:27 -05:00
Todd C. Miller
d6187f5ad3 Replace emul/include.h with compat/include.h to match new source
tree layout.
2010-02-20 09:22:30 -05:00
Todd C. Miller
dc525d2587 Include missing.h for memrchr() proto 2010-02-20 09:17:54 -05:00
Todd C. Miller
e90fa482f9 Rework source layout in preparation for modular sudo. 2010-02-20 09:14:01 -05:00
Todd C. Miller
28c24027ec Avoid a duplicate fclose() of the sudoers file. 2010-02-13 07:32:05 -05:00
Todd C. Miller
60adef2e34 Fix size arg when realloc()ing include stack. From Daniel Kopecek 2010-02-13 07:31:38 -05:00
Todd C. Miller
6b02fe5ea6 Use setrlimit64(), if available, instead of setrlimit() when setting
AIX resource limits since rlim_t is 32bits.
2010-02-13 07:30:56 -05:00
Todd C. Miller
7f59ba20b8 Fix use after free when sending error messages. From Timo Juhani Lindfors 2010-02-13 07:30:31 -05:00
Todd C. Miller
280a51cda0 Generate the ChangeLog as part of "make dist" instead of having it
in the repo.
2010-02-13 07:29:36 -05:00
Todd C. Miller
a40de29cbe Avoid a duplicate fclose() of the sudoers file.
--HG--
branch : 1.7
2010-02-09 10:43:20 -05:00
Todd C. Miller
01240ab71a Fix size arg when realloc()ing include stack. From Daniel Kopecek
--HG--
branch : 1.7
2010-02-09 08:28:03 -05:00
Todd C. Miller
fd37f5c59f Use setrlimit64(), if available, instead of setrlimit() when setting
AIX resource limits since rlim_t is 32bits.

--HG--
branch : 1.7
2010-02-06 15:16:04 -05:00
Todd C. Miller
d4d13c1ca1 Fix use after free when sending error messages. From Timo Juhani Lindfors
--HG--
branch : 1.7
2010-02-06 12:43:26 -05:00
Todd C. Miller
c0f149b533 Generate the ChangeLog as part of "make dist" instead of having it
in the repo.

--HG--
branch : 1.7
2010-01-18 07:12:06 -05:00
Todd C. Miller
924daf0228 Generate correct ChangeLog for 1.7 branch.
--HG--
branch : 1.7
2010-01-17 19:55:11 -05:00
Todd C. Miller
3bb69ffe81 Remove CVS $Sudo$ tags. 2010-01-17 19:51:28 -05:00
convert-repo
4a50fafc14 update tags 2010-01-18 05:45:25 +00:00
Todd C. Miller
fb0e208022 make this match sudoers SYNOPSIS 2009-12-26 23:48:09 +00:00
Todd C. Miller
8ca8f24001 Print a newline between Runas and Command-specific defaults in
sudo -l.
2009-12-26 17:25:49 +00:00
Todd C. Miller
d0b2086a62 Use SET and CLR macros in term_raw 2009-12-26 01:50:25 +00:00
Todd C. Miller
8fbdbde2f5 Set stdin to non-blocking mode early instead of in check_input.
Use term_raw instead of term_cbreak since the data we get has
already been expanded via OPOST.
2009-12-26 01:49:25 +00:00
Todd C. Miller
7a759cd2ac Enable/disable all postprocessing instead of just nl->crnl processing
since things like tab expansion matter too.  However, if stdout is
a tty leave postprocessing on in the pty since we run into problems
doing it only on the real stdout with .e.g nvi.
2009-12-23 23:53:04 +00:00
Todd C. Miller
ce63ab5069 If tty_tickets is enabled and there is no tty, prompt for a password.
Do not lecture user for "sudo -k command" if user has a timestamp.
2009-12-19 23:04:58 +00:00
Todd C. Miller
2df5bd857a Document missing options: --with-efence and --with-bsm-audit 2009-12-19 21:57:33 +00:00
Todd C. Miller
e007e2ad4d username -> user name
groupname -> group name
hostname -> host name
2009-12-19 21:44:06 +00:00
Todd C. Miller
00c89f0145 filename -> file name like the rest of the docs 2009-12-19 21:33:25 +00:00
Todd C. Miller
73dccdf93d Fix printing of entries with multiple host entries on a single line. 2009-12-17 15:02:06 +00:00
Todd C. Miller
2bc6801ca7 Mention that targetpw affects the timestamp file name. 2009-12-14 23:53:05 +00:00