Commit Graph

5709 Commits

Author SHA1 Message Date
Todd C. Miller
d661058389 Prefer getutxid over getutid 2011-02-09 15:11:52 -05:00
Todd C. Miller
63449de859 Include utmp.h / utmpx.h before missing.h as apparently including it
afterwards causes a compilation problem on GNU Hurd.
2011-02-09 15:09:57 -05:00
Todd C. Miller
4294650039 #include "foo.h", not <foo.h> for local includes. 2011-02-07 10:51:43 -05:00
Todd C. Miller
2d88a09883 remove bogus XXX 2011-02-07 10:51:14 -05:00
Todd C. Miller
2603e2ce8b Fix typo 2011-02-07 10:39:58 -05:00
Todd C. Miller
21d8f01fac return foo not return(foo) 2011-02-07 06:47:29 -05:00
Todd C. Miller
056cb8a5da Remove duplicate FD_SET of signal_pipe[0] 2011-02-06 16:55:21 -05:00
Todd C. Miller
c8bb848065 Use "missing.h" not <missing.h> in generated code. 2011-02-05 15:03:00 -05:00
Todd C. Miller
cd6abe1d3f fix --with-iologdir=no 2011-02-04 14:44:47 -05:00
Todd C. Miller
e78e91282f fix typo that broke --with-iologdir 2011-02-04 14:33:54 -05:00
Todd C. Miller
7f277d1558 Bump version to 1.8.0b4 2011-02-03 14:26:58 -05:00
Todd C. Miller
d341cad4e4 sync 2011-02-03 14:23:36 -05:00
Todd C. Miller
521ee9c539 Attempt to clarify how users and groups interact in Runas_Specs 2011-02-03 13:20:43 -05:00
Todd C. Miller
310867e4ed Add test for quoted group that contains escaped double quotes 2011-02-03 13:07:01 -05:00
Todd C. Miller
5fc2f8f454 Pass SIGUSR1/SIGUSR2 through to the child. 2011-02-03 10:25:42 -05:00
Todd C. Miller
2959d5dadd Use special values SIGCONT_FG and SIGCONT_BG instead of SIGUSR1 and
SIGUSR2 to indicate whether the child should be continued in the
foreground or background.
2011-02-03 09:59:41 -05:00
Todd C. Miller
34a087acf6 Use pid_t not int and check the return value of kill() 2011-02-03 09:20:34 -05:00
Todd C. Miller
82c85571c9 Remove obsolete comment 2011-02-02 14:24:48 -05:00
Todd C. Miller
29f9e23c84 In non-pty mode before continuing the child, make it the foreground
pgrp if possible.  Fixes resuming a shell.
2011-02-02 14:19:23 -05:00
Todd C. Miller
8a64a8c798 If we get a signal other than SIGCHLD in the monitor, pass it directly
to the child.
2011-02-02 13:27:24 -05:00
Todd C. Miller
c18468d1a5 Save signal state before changing handlers and restore before
we execute the command.
2011-02-02 12:44:35 -05:00
Todd C. Miller
af2ac7ccc6 Use a char array to map a number to a base36 digit. 2011-02-01 14:54:08 -05:00
Todd C. Miller
6fd9d853a8 Be clear about what versions of sudo support new LDAP attributes.
Fix up some formatting of attribute names.  Minor other tweaks.
2011-02-01 14:31:04 -05:00
Todd C. Miller
342e351d58 match quoted strings the same way whether in a Defaults line or as
a user/group/netgroup name.  Fixes escaped double quotes in quoted
user/group/netgroup names.
2011-01-31 15:13:51 -05:00
Todd C. Miller
4ce8e4b3f3 'make check' depends on visudo and testsudoers 2011-01-31 14:38:59 -05:00
Todd C. Miller
68e4921791 Add sudoOrder attribute to each entry
Parse LOG_{INPUT,OUTPUT} tags
2011-01-31 09:47:32 -05:00
Todd C. Miller
d9c72b224a Mention LDAP attribute compatibility status. 2011-01-30 15:43:24 -05:00
Todd C. Miller
3b112a17c1 Mention phpQLAdmin 2011-01-28 17:56:25 -05:00
Todd C. Miller
ed8e30cf6e Add --disable-env-reset configure option. 2011-01-28 16:52:25 -05:00
Todd C. Miller
180b31764e Document that sudoers_locale also affects logging and email. 2011-01-28 16:15:57 -05:00
Todd C. Miller
807a9ca94b Do logging and email sending in the locale specified by the
"sudoers_locale" setting ("C" by default).  Email send by sudo
includes MIME headers when the sudoers locale is not "C".
2011-01-28 16:11:47 -05:00
Todd C. Miller
39b9b97dbc Fix indentation 2011-01-27 10:03:59 -05:00
Todd C. Miller
fc38481663 Perform command escaping for "sudo -s" and "sudo -i" after validating
sudoers so the sudoers entries don't need to have all the backslashes.
2011-01-25 09:53:57 -05:00
Todd C. Miller
51515c6c01 Prepend "list " to the command logged when "sudo -l command" is
used to make it clear that the command was listed, not run.
2011-01-24 15:39:09 -05:00
Todd C. Miller
1f5c1dda14 cosmetic change 2011-01-24 15:35:44 -05:00
Todd C. Miller
ae2f7638f5 standardize on "return foo;" rather than "return(foo);" or "return (foo);" 2011-01-24 15:15:18 -05:00
Todd C. Miller
3316ac8ebc Do not reject sudoers file just because it is root-writable. 2011-01-24 14:25:51 -05:00
Todd C. Miller
48990e211e sync 2011-01-21 10:37:53 -05:00
Todd C. Miller
fbbd0603da For "sudo -U user -l" if user is not authorized on the host, say so. 2011-01-21 10:10:26 -05:00
Todd C. Miller
be034d5e7e In sudo_ldap_lookup(), always do the initial sudoers check as the
invoking user.  If we are listing another user's privs we will
do a separate lookup using list_pw later.
2011-01-21 08:10:26 -05:00
Todd C. Miller
dbb830c794 add parser fill tests 2011-01-20 17:00:07 -05:00
Todd C. Miller
4cc54e4b81 Don't test features not supported by the bundled glob() 2011-01-20 16:58:35 -05:00
Todd C. Miller
f7f8b6867e Update copyright year to 2011 2011-01-20 16:46:56 -05:00
Todd C. Miller
96767abfe4 When listing, use separate lbufs for the defaults and the privileges and
only print something if the number of privileges is non-zero.  Fixes
extraneous Defaults output for "sudo -U unauthorized_user -l".
2011-01-20 16:19:42 -05:00
Todd C. Miller
215500bb55 Stash pointer to user group vector in LDAP handle and only reuse
the query if it has not changed.  We always allocate a new buffer
when we reset the group vector so a simple pointer check is sufficient.
2011-01-20 16:16:08 -05:00
Todd C. Miller
165dcfa37f Check initgroups() return value. 2011-01-20 16:15:34 -05:00
Todd C. Miller
7cbd1ff728 Add tests for the fill functions in toke_util.c 2011-01-20 10:09:19 -05:00
Todd C. Miller
79dff677d4 fix copyright year 2011-01-19 17:38:38 -05:00
Todd C. Miller
6565899bab sync 2011-01-19 08:40:05 -05:00
Todd C. Miller
4f953d8391 Clear, don't set, OPOST in c_oflag as was intended in 506ad5ae9b4e. 2011-01-18 11:26:48 -05:00