Todd C. Miller
93d48cfc60
Updates from Alain Roy to provide better examples for importing the
...
schema and to fix problems caused by Windows validating attributes
which have not yet been added before committing the changes.
2010-06-14 10:20:41 -04:00
Todd C. Miller
ec77318e32
Leave rules to build .man.in and .cat files uncommented but only make
...
them part of the "all" rule in devel mode.
Generate .cat files directly from .man.in instead of .man using default
values in configure.in
2010-06-11 18:34:24 -04:00
Todd C. Miller
608a3e7a27
Bump sudo version to 1.8.0b1
2010-06-11 10:55:30 -04:00
Todd C. Miller
a28a4764e6
Print configure args with verbose version information.
2010-06-11 10:53:44 -04:00
Todd C. Miller
3516d7f0e3
Remove tfd from struct sudoersfile; it is not used.
...
Add prev pointer to struct sudoersfile.
Declare list of sudoersfile using TQ_DECLARE.
Use tq_append to append sudoers entries to the tail queue.
2010-06-11 09:53:44 -04:00
Todd C. Miller
6d0b74cf13
Describe tty timestamp improvements
2010-06-10 18:04:08 -04:00
Todd C. Miller
27a94faf73
A comment character may not be part of a command line argument
...
unless it is quoted with a backslash. Fixes parsing of:
testuser ALL=NOPASSWD: /usr/bin/wl #comment foo bar
closes bz #441
2010-06-10 17:52:51 -04:00
Todd C. Miller
f67ac02af5
Make this read a little bit better when passwd_timeout is 0.
2010-06-10 17:38:56 -04:00
Todd C. Miller
10d83e2cb4
Attempt to handle a default password prompt timeout of zero more gracefully.
2010-06-10 17:16:27 -04:00
Todd C. Miller
32d4697a89
Do not override value of keepopen global, instead restore it to the
...
value we pushed onto the stack when popping.
2010-06-10 16:36:41 -04:00
Todd C. Miller
17a8bd807e
Add dependency for utility programs on libreplace and libcommon
2010-06-10 16:10:17 -04:00
Todd C. Miller
047fc3876d
Remove sigaction emulation
...
Use SA_INTERRUPT in sa_flags
2010-06-10 15:18:23 -04:00
Todd C. Miller
e54cfc9bd4
We don't use getgrouplist() at the moment so there's no need to
...
provide a compat version.
2010-06-10 15:12:37 -04:00
Todd C. Miller
7795284879
sync with reality
2010-06-10 15:12:07 -04:00
Todd C. Miller
e146aaaa29
Fix visiblepw sudoers option; the plugin API portion still needs documenting
2010-06-10 15:02:32 -04:00
Todd C. Miller
879d01796c
Print sudo version as well.
2010-06-10 14:25:25 -04:00
Todd C. Miller
1fbb1819e7
Use sudo_printf for I/O log version
...
Clarify policy plugin version string
2010-06-10 14:24:06 -04:00
Todd C. Miller
c6371aa481
Silence some compiler warnings
2010-06-10 12:27:18 -04:00
Todd C. Miller
b91b65722b
Store askpass path in a global instead of uses setenv() which many
...
systems lack.
2010-06-10 12:03:40 -04:00
Todd C. Miller
eec336115a
Move askpass path specification from sudoers to sudo.conf.
2010-06-09 17:40:44 -04:00
Todd C. Miller
34613c8465
Use a flag bit in struct command_details for selinux instead of a separate
...
field.
2010-06-09 16:25:44 -04:00
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