Todd C. Miller
4c1ef12648
Implement background mode. If I/O logging we use pipes instead of a pty.
2010-06-09 16:19:45 -04:00
Todd C. Miller
c5a6ca998a
Move compat definition of NSIG to compat.h
2010-06-09 13:57:07 -04:00
Todd C. Miller
9d09966aad
Mention plugins in the sudo manual and add some missing path
...
substitution in the sudo_plugin manual.
2010-06-09 12:26:37 -04:00
Todd C. Miller
474392821e
Set _PATH_SUDO_CONF based on $(sysconfdir)
2010-06-09 12:24:37 -04:00
Todd C. Miller
e5283b2f96
Require POSIX termios to build sudo
2010-06-09 11:09:55 -04:00
Todd C. Miller
82a56e421f
Ignore SIGPIPE for "sudo -S"
2010-06-09 10:59:51 -04:00
Todd C. Miller
afb3f9dbf5
Fix uninitialized variable in TGP_ECHO case and print a newline if
...
the user interrupted password input.
2010-06-09 10:52:02 -04:00
Todd C. Miller
3e9ecaf1ec
Make TGP_ECHO override TGP_MASK and don't try to restore the terminal
...
if we didn't modify it.
2010-06-09 10:45:07 -04:00
Todd C. Miller
a4a6620b24
Add SUDO_CONV_PROMPT_MASK define which corresponds to the "pwfeedback"
...
sudoers option. Do not disable echo if TGP_ECHO is set.
2010-06-09 10:31:05 -04:00
Todd C. Miller
51f70f2040
Use POSIX tcgetpgrp() instead of BSD TIOCGPGRP ioctl
2010-06-09 09:54:58 -04:00
Todd C. Miller
edd34a2d7e
Add selinux_enabled flag into struct command_details and
...
set it in command_info_to_details().
Return an error from selinux_setup() instead of exiting.
Call selinux_setup() from exec_setup().
2010-06-08 17:59:18 -04:00
Todd C. Miller
ecfb70b056
Remove commented out copy of old sudo_execve() function.
2010-06-09 09:22:44 -04:00
Todd C. Miller
bcaf51ce62
Fix setting selinux type on command line.
2010-06-08 17:10:27 -04:00
Todd C. Miller
9b4203606d
In sudoers_io_close(), skip NULL io_fds[] elements.
2010-06-08 16:57:18 -04:00
Todd C. Miller
16da9fe800
No longer need NGROUPS_MAX define
2010-06-08 18:42:36 -04:00
Todd C. Miller
79f178923e
Replace timerfoo macros with timevalfoo since the timer macros are known
...
to be busted on some systems.
2010-06-08 18:38:23 -04:00
Todd C. Miller
0be6bab05c
Remove duplicate call to selinux_setup().
2010-06-08 16:16:08 -04:00
Todd C. Miller
426435c12c
If pam_open_session() fails, pass its status to pam_end.
2010-06-08 16:54:04 -04:00
Todd C. Miller
303da7b820
If a file in a #includedir has improper permissions or owner just
...
skip it. This prevents packages that incorrectly install a file
into /etc/sudoers.d from breaking sudo so easily. Syntax errors
in #includedir files still result in a parse error (for now).
2010-06-08 16:53:38 -04:00
Todd C. Miller
6f05b565c3
Add use_pty sudoers option to force use of a pty even when not logging I/O.
2010-06-08 11:25:33 -04:00
Todd C. Miller
39e072c713
Make env_init() void as it never fails.
2010-06-08 10:23:35 -04:00
Todd C. Miller
280afece30
No longer use _NSGetEnviron so don't need crt_externs.h
2010-06-08 09:55:36 -04:00
Todd C. Miller
26b5014238
Remove unused VNULL define
2010-06-08 09:44:19 -04:00
Todd C. Miller
3aad381186
Add #define for maximum session id
2010-06-07 18:53:58 -04:00
Todd C. Miller
6717c59d77
Split exec.c into exec.c and exec_pty.c
2010-06-07 18:06:22 -04:00
Todd C. Miller
d417d4e4e8
Sync with source file moves.
2010-06-07 11:20:31 -04:00
Todd C. Miller
d6e7face2b
Rename pty.c -> get_pty.c
2010-06-07 11:13:03 -04:00
Todd C. Miller
38138e7d13
Only use I/O input log file if def_log_input is set and output file
...
if def_log_output is set.
2010-06-06 11:54:46 -04:00
Todd C. Miller
5099b68b01
Update copyright year
2010-06-04 15:37:24 -04:00
Todd C. Miller
5aa2c7dcc6
uid -> ttyuid
2010-06-04 14:20:03 -04:00
Todd C. Miller
afa3589d52
For sudoedit, make a local copy of editor string si become part of
...
argv. If no editor environment variable, split def_editor on ':'
since it may be a colon-delimited path.
2010-06-04 12:17:19 -04:00
Todd C. Miller
e3ac18f510
Remove unneeded endpwent()/endgrent()
2010-06-04 12:11:02 -04:00
Todd C. Miller
4ecb005663
Use value of nroff from configure
2010-06-04 09:40:01 -04:00
Todd C. Miller
3fbd834783
Add missing const to I/O log action function
2010-06-04 09:10:05 -04:00
Todd C. Miller
8fa9464d0c
Update copyright year and fix whitespace
2010-06-04 09:09:39 -04:00
Todd C. Miller
b97d47424b
Fix typo
2010-06-04 09:09:19 -04:00
Todd C. Miller
fe57232226
Remove redundant tty signal blocking in log function.
2010-06-04 08:56:39 -04:00
Todd C. Miller
4a7fc9a824
Place static keyword where it belongs
2010-06-03 13:13:42 -04:00
Todd C. Miller
8ebd909982
Always use a printf format string for send_mail()
2010-06-03 09:48:39 -04:00
Todd C. Miller
40e591c309
Extend atobool() so we can use it in the LDAP code.
2010-06-03 08:50:02 -04:00
Todd C. Miller
59e2925374
Sudo now stashes tty ctime for tty_tickets on Solaris too.
2010-06-03 08:32:53 -04:00
Todd C. Miller
fd1765b562
Fix dummy version of get_boottime()
2010-06-03 07:40:15 -04:00
Todd C. Miller
7ce0dfc61b
Enable tty_is_devpts() support for Solaris with the "devices" filesystem.
2010-06-02 14:30:13 -04:00
Todd C. Miller
cd26d2891d
Unbreak the non-io logging case.
2010-06-02 14:23:38 -04:00
Todd C. Miller
2b8fc46e2c
Fix symbol name conflict with sudo_printf.
2010-06-02 11:10:04 -04:00
Todd C. Miller
41436a7869
Fix OpenPAM detection for newer versions.
2010-06-02 10:33:02 -04:00
Todd C. Miller
78e7c649f0
Sync with Quest sudo git repo
2010-06-02 10:32:31 -04:00
Todd C. Miller
572c885414
HP-UX ld uses +b instead or -R or -rpath
...
Fix typo in libvas check
Add missing template for ENV_DEBUG
Adapted from Quest sudo
2010-06-02 10:30:34 -04:00
Todd C. Miller
c24e6277fb
Fix typos; from Quest Sudo
2010-06-02 10:27:57 -04:00
Todd C. Miller
1afba5165e
Add back -I$(top_srcdir); we need it for including compat/foo.h
...
since we cannot rely on "foo.h" being found relative to the
source file when the cwd is different.
2010-06-01 12:35:19 -04:00