Todd C. Miller
8ef458b594
POSIX states that struct timespec be declared in time.h so check
...
there regardless of the value of TIME_WITH_SYS_TIME.
2007-10-20 02:28:40 +00:00
Todd C. Miller
45a382bba1
Instead of defining a macro to call the appropriate method for
...
turning on/off echo, just define tc[gs]etattr() and the related
defines that use the correct terminal ioctls if needed.
Also go back to using TCSAFLUSH instead of TCSADRAIN on all but QNX.
2007-10-17 15:37:30 +00:00
Todd C. Miller
f28aa7f8cc
g/c @ALLOCA@
2007-10-09 00:18:07 +00:00
Todd C. Miller
c3f2818416
regen
2007-10-09 00:07:25 +00:00
Todd C. Miller
5a04b3ff9d
Add --disable-pam-session configure option to disable calling
...
pam_{open,close}_session. May work around bugs in some PAM
implementations.
2007-10-09 00:04:48 +00:00
Todd C. Miller
f951605429
quiet gcc warnings
2007-10-08 16:00:59 +00:00
Todd C. Miller
c84ad26835
Avoid printing the prompt if we are already backgrounded.
...
E.g. if the user runs "sudo foo &" from the shell. In this
case, the call to tcsetattr() will cause SIGTTOU to be delivered.
2007-10-08 12:41:08 +00:00
Todd C. Miller
209e35027f
Reorder things such that the definition of env_reset come right
...
before the env variable lists.
2007-09-15 20:07:50 +00:00
Todd C. Miller
0b6ebf4d80
Shrink type and seqno in struct alias from int to u_short
2007-09-15 11:50:28 +00:00
Todd C. Miller
76e5eb434b
Add a sequence number in the aliases for loop detection. If we find
...
an alias with the seqno already set to the current (global) value we
know we've visited it before so ignore it.
2007-09-15 11:24:54 +00:00
Todd C. Miller
4f5e88532f
PAM wants the full tty path so add user_ttypath which holds the
...
full path to the tty or is NULL if no tty was present.
2007-09-13 23:05:34 +00:00
Todd C. Miller
bb07eea18f
Set PAM_RHOST to work around a bug in Solaris 7 and lower that
...
results in a segv.
2007-09-13 22:42:15 +00:00
Todd C. Miller
57ee080a08
regen
2007-09-11 19:43:07 +00:00
Todd C. Miller
a0f80d6581
rename lh_ -> tq_
2007-09-11 19:42:48 +00:00
Todd C. Miller
91526aaf74
remove some useless casts
2007-09-10 21:33:31 +00:00
Todd C. Miller
fde060e846
pull in inttypes.h for SIZE_MAX; we avoid stdint.h since inttypes.h predates the final C99 spec and the standard specifies that it shall include stdint.h anyway
2007-09-10 21:32:53 +00:00
Todd C. Miller
2c59eea84a
Since we ship with a pre-generated parser there is no need to
...
ship a bogus alloca implementation.
2007-09-06 16:39:11 +00:00
Todd C. Miller
6cbee775b7
regen
2007-09-06 16:22:23 +00:00
Todd C. Miller
5803487885
remove initial setting of CHECKSIA, we require that it be unset if not used
2007-09-06 16:19:20 +00:00
Todd C. Miller
dda1fb26a3
add list.c to SRCS
2007-09-06 15:55:24 +00:00
Todd C. Miller
638d039ae9
regen
2007-09-06 11:18:13 +00:00
Todd C. Miller
2c6287b719
only do SIA checks on Digital Unix
2007-09-06 11:17:43 +00:00
Todd C. Miller
a06ae77c5a
regen
2007-09-05 22:50:55 +00:00
Todd C. Miller
6e05465b97
sync
2007-09-05 22:48:23 +00:00
Todd C. Miller
c572e31ff5
Remove call to krb5_cc_register() as it is not needed for modern kerb5.
2007-09-05 22:39:55 +00:00
Todd C. Miller
32e97c5dc1
regen
2007-09-05 22:16:46 +00:00
Todd C. Miller
72255c0ad1
New method for setting the default authentication type and
...
avoiding conflicts in auth types.
2007-09-05 22:16:22 +00:00
Todd C. Miller
21f0ea4d68
Each entry in a cmndlist now has an associated runaslist
...
so no need to keep track of the most recent non-NULL one.
2007-09-05 18:45:26 +00:00
Todd C. Miller
19ff128f31
back out partial ldaps support mistakenly committed
2007-09-04 22:51:35 +00:00
Todd C. Miller
84a22a2d52
Add support for unix groups and netgroups in sudoRunas
2007-09-04 14:57:14 +00:00
Todd C. Miller
32403a2d83
Fix sudoedit of a non-existent file. From Tilo Stritzky.
2007-09-03 20:28:15 +00:00
Todd C. Miller
2bff032c9f
regen
2007-09-02 21:05:58 +00:00
Todd C. Miller
290eff4f5b
update --passprompt escape info
2007-09-02 21:05:32 +00:00
Todd C. Miller
5ac0dc57b4
remove now-bogus comment and update copyright date
2007-09-02 21:03:21 +00:00
Todd C. Miller
237922518b
Fix up use of with_passwd
2007-09-02 20:35:52 +00:00
Todd C. Miller
16871871d3
Update to autoconf-2.61 andf libtool-1.5.24
2007-09-02 20:25:53 +00:00
Todd C. Miller
0459e07d4f
"cmp -s" not just cmp
...
Add @datarootdir@ to quiet autoconf-2.61
2007-09-02 20:17:23 +00:00
Todd C. Miller
d8e1c80903
regen
2007-09-01 21:39:24 +00:00
Todd C. Miller
b11b56deb7
move tags and runaslist propagation to be earlier
2007-09-01 21:39:18 +00:00
Todd C. Miller
dee39f572f
If -f flag given use the permissions of the original file as a template
2007-09-01 13:34:41 +00:00
Todd C. Miller
cbe6be8f8f
prevent a double free() when re-initing the parser
2007-09-01 12:45:11 +00:00
Todd C. Miller
a7bfc59097
regen
2007-08-31 23:30:35 +00:00
Todd C. Miller
19fa259480
Remove support for compilers that don't support void *
2007-08-31 23:30:07 +00:00
Todd C. Miller
6b3157d803
regen
2007-08-31 23:14:37 +00:00
Todd C. Miller
d72778832c
Move list manipulation macros to list.h and create C versions of
...
the more complex ones in list.c. The names have been down-cased
so they appear more like normal functions.
2007-08-31 23:13:26 +00:00
Todd C. Miller
07ebde4098
Fix cmp command when regenerating parser.
...
Make gram.o the first dependency for all programs so gram.h will
be generated before anything that needs it.
2007-08-31 21:21:01 +00:00
Todd C. Miller
d56d0b1155
Convert NEW_DEFAULT anf NEW_MEMBER into static functions.
2007-08-31 17:56:30 +00:00
Todd C. Miller
10e5d4e708
Use LH_FOREACH_REV when checking permission and short-circuit on
...
the first non-UNSPEC hit we get for the command. This means that
instead of cycling through the all the parsed sudoers entries we
start at the end and work backwards and quit after the first positive
or negative match.
2007-08-31 01:21:26 +00:00
Todd C. Miller
270ba11dbf
regen
2007-08-31 01:13:05 +00:00
Todd C. Miller
d1dbe2ecee
Change list head macros to take a pointer, not a struct.
2007-08-31 01:12:50 +00:00