Todd C. Miller
4df7037816
regen
2007-08-31 00:46:49 +00:00
Todd C. Miller
470a710c3c
Propagate the runasspec from one command to the next in a cmndspec.
2007-08-31 00:46:43 +00:00
Todd C. Miller
1d69c0d63f
Replace has_meta() with a macro that calls strpbrk().
2007-08-30 20:15:48 +00:00
Todd C. Miller
bb51d5210a
regen
2007-08-30 20:04:24 +00:00
Todd C. Miller
8cdea0b941
Use a list head struct when storing the semi-circular lists and
...
convert to tail queues in the process. This will allow us to
reverse foreach loops more easily and it makes it clearer which
functions expect a list as opposed to a single member.
Add macros for manipulating lists. Some of these should become functions.
When freeing up a list, just pop off the last item in the queue instead
of going from head to tail. This is simpler since we don't have to
stash a pointer to the next member, we always just use the last one
in the queue until the queue is empty.
Rename match functions that take a list to have list in the name.
Break cmnd_matches() into cmnd_matches() and cmndlist_matches.
2007-08-30 17:26:35 +00:00
Todd C. Miller
a05abf5c88
Fix pasto, append "!" not negated (which is an int) for sudo -l output.
2007-08-30 17:12:00 +00:00
Todd C. Miller
0e30ec1997
Remove the dependency of gram .h on gram.y, the .c dependency is enough.
...
Only move y.tab.h to gram.h if it is different; avoids needless rebuilding.
2007-08-30 16:45:28 +00:00
Todd C. Miller
aaacf16ee0
Defaults lines may be associated with lists of users, hosts, commands
...
and runas users, not just single entries.
2007-08-27 19:51:58 +00:00
Todd C. Miller
cd6d9d7e1e
Revert the "cmp" portion of the last diff, it doesn't make sense.
2007-08-26 21:42:31 +00:00
Todd C. Miller
e90c326744
Remove *.lo for clean:
...
When generating the parser, only move the generated files into place
if they differ from the existing ones.
2007-08-26 21:10:33 +00:00
Todd C. Miller
51904f668a
Replace IPV6 regexp with a much simpler (readable) one and add an
...
extra check when it matches to make sure we have a valid address.
2007-08-25 02:47:54 +00:00
Todd C. Miller
3fd33970c1
Fix thinko introduced when merging IPV6 support.
2007-08-25 02:36:09 +00:00
Todd C. Miller
f9dd821b5c
regen
2007-08-24 18:23:42 +00:00
Todd C. Miller
eb8b3d6b5d
add 2007
2007-08-24 18:23:24 +00:00
Todd C. Miller
836d04019d
mention #uid vs. comment pitfall
2007-08-24 18:19:19 +00:00
Todd C. Miller
5f11011f02
Merge in a patch from the libtool cvs that fixes a problem with the
...
latest autoconf. From Stepan Kasal.
2007-08-24 13:50:16 +00:00
Todd C. Miller
b63a4c9db0
Back out he XOR swap trick, it is slower than a temp variable on
...
modern CPUs.
2007-08-24 00:28:57 +00:00
Todd C. Miller
eb4b7b2e6b
regen
2007-08-24 00:14:42 +00:00
Todd C. Miller
6f732db02b
Convert the tail queue to a semi-circle queue and use the XOR swap
...
trick to swap the prev pointers during append.
2007-08-24 00:14:21 +00:00
Todd C. Miller
444e77946a
remove useless statement
2007-08-23 19:31:29 +00:00
Todd C. Miller
7cea15ef4b
Refactor #include parsing into a separate function and return
...
unparsed chars (such as newline or comment) back to the lexer.
2007-08-23 11:47:08 +00:00
Todd C. Miller
9cb10fc94d
mention better uid support
2007-08-22 22:56:56 +00:00
Todd C. Miller
94922dbae5
Users may now consist of a uid.
2007-08-22 22:55:46 +00:00
Todd C. Miller
d65c8e8275
regen
2007-08-22 22:39:20 +00:00
Todd C. Miller
340831499a
Use lbuf_append_quoted() for sudo -l output to quote characters that
...
would require quoting in sudoers.
2007-08-22 22:32:00 +00:00
Todd C. Miller
14d1b79a4a
Add lbuf_append_quoted() which takes a set of characters which
...
should be quoted with a backslash when displayed.
2007-08-22 22:31:07 +00:00
Todd C. Miller
0940a74e6f
Require that the first character after a comment not be a digit or
...
a dash. This allows us to remove the GOTRUNAS state and treat
uid/gids similar to other words. It also means that we can now
specify uids in User_Lists and a User_Spec may now contain a uid.
2007-08-22 22:28:20 +00:00
Todd C. Miller
add2fe0240
Replace RUNAS token with '(' and ')' tokens to make the runas
...
portion of the grammar more natural.
2007-08-22 22:23:59 +00:00
Todd C. Miller
057d10a1e3
The BUGS file is history
2007-08-22 10:37:53 +00:00
Todd C. Miller
58fd9b25b3
The BUGS file is history
2007-08-22 10:35:40 +00:00
Todd C. Miller
53961224a6
Allow comments after a RunasAlias as long as the character after
...
the pound sign isn't a digit or a dash.
2007-08-21 13:19:04 +00:00
Todd C. Miller
fd0ea842f9
Glob support was back-ported to 1.6.9
2007-08-21 00:43:19 +00:00
Todd C. Miller
68aac1b393
remove sudo_usage.h in distclean
2007-08-20 23:59:50 +00:00
Todd C. Miller
c6cf39cdfd
If a Defaults value contains a blank, double-quote the string.
2007-08-20 23:24:31 +00:00
Todd C. Miller
9cf8213c26
Properly deal with Defaults double-quoted strings that span multiple
...
lines using the line continuation char. Previously, the entire thing,
including the continuation char, newline, and spaces was stored as-is.
2007-08-20 23:19:44 +00:00
Todd C. Miller
fa6536920b
Be consistent when using single quotes and backticks.
2007-08-20 14:46:40 +00:00
Todd C. Miller
2315b317e2
Add new linebuf code to do appends of dynamically allocated strings
...
and word-wrapped output. Currently used for sudo's usage() and
sudo -l output. Sudo usage strings are now in sudo_usage.h which
is generated at configure time.
2007-08-19 20:48:09 +00:00
Todd C. Miller
d28030c9fd
Fix line wrapping in usage() and use the actual tty width instead of
...
assuming 80.
2007-08-18 12:22:16 +00:00
Todd C. Miller
ccd780f993
some more info
2007-08-17 22:32:01 +00:00
Todd C. Miller
0b43e9362d
Mentioned Chris Jepeway's parser and also the new one that is in sudo 1.7.
2007-08-17 21:28:03 +00:00
Todd C. Miller
28f814d12f
For the options list, add flag args where appropriate and increase the
...
indent level so there is room for them.
2007-08-16 13:38:24 +00:00
Todd C. Miller
994036cf0d
Fix some spacing in "sudo -l" and add a comment about some bogosity
...
in the line wrapping.
2007-08-15 17:49:52 +00:00
Todd C. Miller
5ab2e07677
regen
2007-08-15 15:21:14 +00:00
Todd C. Miller
317e600f41
Remove monitor support until there is a versino of systrace that
...
uses a lookaside buffer (or we have a better mechanism to use).
2007-08-15 15:20:01 +00:00
Todd C. Miller
72b36ddf50
use getaddrinfo() instead of gethostbyname() if it is available
2007-08-15 13:22:06 +00:00
Todd C. Miller
c939690786
Deal with OSes where sizeof(gid_t) < sizeof(int).
2007-08-14 19:27:27 +00:00
Todd C. Miller
dd3e80180f
repair non-getifaddrs() code after ipv6 integration
2007-08-14 15:19:13 +00:00
Todd C. Miller
580be13e74
If we can open sudoers but fail to read the first byte, close the
...
file stream before trying again.
2007-08-14 14:04:41 +00:00
Todd C. Miller
b1845dcf10
regen
2007-08-13 16:34:21 +00:00
Todd C. Miller
d65602ca6f
Add IPv6 support; adapted from patches by YOSHIFUJI Hideaki
2007-08-13 16:29:25 +00:00