Todd C. Miller
b09a643ff0
Quiet a compiler warning.
2010-06-14 11:18:50 -04:00
Todd C. Miller
848b636f24
Quiet a compiler warning.
2010-06-14 10:56:01 -04:00
Todd C. Miller
3430618c78
Make all functions in ldap.c static
2010-06-14 10:37:42 -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
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
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
e146aaaa29
Fix visiblepw sudoers option; the plugin API portion still needs documenting
2010-06-10 15:02:32 -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
eec336115a
Move askpass path specification from sudoers to sudo.conf.
2010-06-09 17:40:44 -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
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
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
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
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
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
8fa9464d0c
Update copyright year and fix whitespace
2010-06-04 09:09:39 -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
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
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
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
Todd C. Miller
2ee7524101
Add casts to quiet compiler warnings.
2010-06-01 09:54:03 -04:00
Todd C. Miller
be3b7d615a
Fix typo in ternary operator usage.
2010-06-01 09:44:54 -04:00
Todd C. Miller
2dd29bf64d
Break sudoers transcript feature up into log_input and log_output.
2010-05-30 10:31:38 -04:00
Todd C. Miller
1a217bcc22
Use setprogname() as needed.
2010-05-30 06:35:21 -04:00
Todd C. Miller
0e2d33b5fc
Adapt sudoreplay to iolog changes.
2010-05-30 06:29:41 -04:00
Todd C. Miller
e51fd3ab72
Log all input and output into separate files and store a number on
...
each timing file line to indicate which file the data is in.
2010-05-29 19:44:33 -04:00
Todd C. Miller
b6f02f38c0
Make sudoers_io functions static to iolog.c
2010-05-29 10:43:34 -04:00
Todd C. Miller
1ffb761789
Fix EAGAIN handling when writing to stdout.
2010-05-28 13:24:07 -04:00
Todd C. Miller
e952c8c7ff
Eliminate unused variables
2010-05-28 13:21:56 -04:00
Todd C. Miller
d2d68aa24d
Re-enable cleanup functions in sudoers plugin and sudo driver
...
for error()/errorx().
2010-05-28 12:15:14 -04:00
Todd C. Miller
34e1a06767
Use sudo_printf to display verbose version information.
2010-05-28 12:01:06 -04:00
Todd C. Miller
303d856065
Minor Makefile cleanup: fix a typo, change the removal order in
...
the clean targets, and remove a superfluous include path for
the sudoers plugin.
2010-05-28 10:41:58 -04:00
Todd C. Miller
c31ed2cd22
Handle duplicate variables in the environment. For unsetenv(),
...
keep looking even after remove the first instance. For sudo_putenv(),
check for and remove dupes after we replace an existing value.
2010-05-28 09:42:50 -04:00
Todd C. Miller
12aedc6757
Use explicit path to source file instead of $< for files that live
...
in devdir and top_srcdir.
2010-05-27 18:11:51 -04:00
Todd C. Miller
a8bb0ea0aa
Add explicit rules to compile gram.c and toke.c for HP-UX
...
Pevent ending LIBSUDOERS_OBJS with a backslash
2010-05-27 18:00:08 -04:00