Commit Graph

5353 Commits

Author SHA1 Message Date
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
Todd C. Miller
1eafb30a44 Fix a bug where we could treat EAGAIN as a permanent error.
Also set cstat if perform_io() returns an error.
2010-06-01 10:58:11 -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
9425527982 Add --enable-warnings and fix typo in SUDO_IO_LOGDIR 2010-05-30 11:16:31 -04:00
Todd C. Miller
4230d8562f Update docs to match sudoers I/O logging changes 2010-05-30 10:57:14 -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
73b630fa97 Completely remove the -L flag from the sudo front end. 2010-05-28 17:37:36 -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
Todd C. Miller
62f470a575 Link libcommon before libreplace since libcommon may use functions
only present in libreplace.
2010-05-27 17:48:17 -04:00
Todd C. Miller
c4feed1ccd Move code common to sudo and the sudoers plugin to a convenience library,
libcommon.  Removes the need to make links in the sudoers plugin dir
and reduces re-compilation of duplicate object files.
2010-05-27 17:29:09 -04:00
Todd C. Miller
b8b006a885 Move code common to sudo and the sudoers plugin to a convenience library,
libcommon.  Removes the need to make links in the sudoers plugin dir
and reduces re-compilation of duplicate object files.
2010-05-27 17:27:36 -04:00
Todd C. Miller
9773ba3f79 Rename script_execve to sudo_execve and rename script_foo in exec.c 2010-05-27 16:46:31 -04:00
Todd C. Miller
4248a11ef7 rename script.c exec.c and fix up the MANIFEST file 2010-05-27 16:32:41 -04:00
Todd C. Miller
f8f82ffa8e Rename script_setup() to pty_setup() and call from script_execve()
directly.
2010-05-27 16:29:48 -04:00
Todd C. Miller
349fedb022 bump version to 1.8.0a2 2010-05-27 15:09:05 -04:00
Todd C. Miller
0b6a687bf4 Document init_session 2010-05-27 15:07:43 -04:00
Todd C. Miller
b2ed46652b Clean up the sudoers auth API a bit and update the docs. 2010-05-27 14:53:11 -04:00
Todd C. Miller
7e6d1d1f7d Add init_session function to struct policy_plugin that gets called
before the uid/gid/etc changes.  A struct passwd pointer is passed in,which may be NULL if the user does not exist in the passwd database.The sudoers module uses init_session to open the pam session as needed.
2010-05-27 14:46:39 -04:00