Todd C. Miller
6f2cfc2bca
regen
2004-01-22 01:03:16 +00:00
Todd C. Miller
8e421c95b8
update copyright year
2004-01-05 17:15:32 +00:00
Todd C. Miller
7536a781f0
Add support for preloading a shared object containing a dummy execve()
...
function that just sets error and returns -1. This adds a
"noexec_file" option to load the filename as well as a "noexec" flag
to enable it unconditionally. There is also a NOEXEC tag that can
be attached to specific commands and an EXEC tag to disable it.
2004-01-05 02:48:09 +00:00
Todd C. Miller
37a1bfccd4
regen
2003-03-15 01:11:51 +00:00
Todd C. Miller
8656452cae
regen
2003-03-13 20:27:38 +00:00
Todd C. Miller
1725de8772
regen
2003-03-13 20:17:41 +00:00
Todd C. Miller
26d9f4856f
regen
2003-01-17 23:10:05 +00:00
Todd C. Miller
08ee411a6b
regen
2002-03-16 00:45:48 +00:00
Todd C. Miller
8b7187483b
regen
2002-01-15 18:16:46 +00:00
Todd C. Miller
8aa5f6850e
regen
2001-12-30 22:12:17 +00:00
Todd C. Miller
722cebb5c4
regen
2001-12-14 19:59:57 +00:00
Todd C. Miller
b0095c2f92
regen
2001-12-14 06:43:06 +00:00
Todd C. Miller
d684d37a95
regen parser
2001-12-12 20:11:47 +00:00
Todd C. Miller
f0a75258b9
Regenerate with a fix to flex.skl that preserves errno from clobbering
...
by isatty().
2001-01-07 18:55:32 +00:00
Todd C. Miller
d64ad77515
Allow special characters (including '#') to be embedded in pathnames
...
if quoted by a '\\'. The quoted chars will be dealt with by fnmatch().
Unfortunately, 'sudo -l' still prints the '\\'.
2000-08-31 17:08:35 +00:00
Todd C. Miller
9aeabf1b03
Fully qualified hosts w/ wildcards were not matching the FQHOST token type.
...
There's really no need for a separate token for fully-qualified vs.
unqualified anymore so FQHOST is now history and hostname_matches
now decides which hostname (short or long) to check based on whether
or not the pattern contains a '.'.
2000-03-23 04:38:20 +00:00
Todd C. Miller
2eb9882339
o Whenever we get a bare newline we change to the INITIAL state.
...
o Enter GOTRUNAS when we see Runas_Alias
This allows #uid to work in a RunasAlias.
1999-12-06 00:05:53 +00:00
Todd C. Miller
818bbacb5d
Don't need YY_FLUSH_BUFFER after all
...
Move yyrestart() into visudo.c since it might not get called in yywrap
if we get a parse error (and we only reread the file on error anyway).
1999-11-09 20:06:53 +00:00
Todd C. Miller
95eb54d99c
Call YY_FLUSH_BUFFER macro in yywrap() to clean up any buffers that
...
might still exist.
Call yyrestart() instead of using the deprecated YY_NEW_FILE macro.
1999-11-09 19:32:41 +00:00
Todd C. Miller
f03cac3b87
flex doesn't need %N table size declarations
1999-11-09 17:13:46 +00:00
Todd C. Miller
315335247e
last {WORD} rule should only apply in the INITIAL state
1999-10-10 19:01:30 +00:00
Todd C. Miller
f963da3164
o Add support for escaped characters in the WORD macro
...
o Modify fill() to squash escape chars
1999-10-10 18:38:40 +00:00
Todd C. Miller
13bf42675d
Add support for "Defaults" line in sudoers to make configuration variables
...
changable at runtime (and on a global, per-host and per-user basis).
Both the names and the internal representation are still subject to change.
It was necessary to make sudo_user.runas but a char ** instead of a
char * since this value can be changed by a Defaults line. There is a
similar (but more complicated) issue with sudo_user.prompt but it
is handled differently at the moment.
Add a "-L" flag to list the name of options with their descriptions. This
may only be temporary.
Move some prototypes to parse.h
Be much less restrictive on what is allowed for a username.
1999-09-08 08:06:28 +00:00
Todd C. Miller
3a8c0ca966
include strings.h everywhere we include string.h
1999-08-28 09:24:15 +00:00
Todd C. Miller
86c1328f6c
fix definition of OCTECT
1999-08-28 08:22:27 +00:00
Todd C. Miller
ca1b945b36
make an OCTET really be limited to 0-255
1999-08-26 09:05:57 +00:00
Todd C. Miller
7b0368f2f4
regen
1999-08-24 16:40:23 +00:00
Todd C. Miller
3a8b0be635
o --with-otp deprecated, use --without-passwd instead
...
o real dependencies in the Makefile
o --with-devel option to enable yacc, lex, and -Wall
o style -- "foo -> bar" becomes "foo->bar"
o ALL goes back to being a token, not a string but don't leak memory
o rename hsotspec -> host in parse.yacc
1999-08-14 15:34:55 +00:00
Todd C. Miller
f14dd25b01
Break 'WORD' regexp def into HOSTNAME and USERNAME. These days a
...
username can contain just about anything so be very permissive.
Also drop the unused \. punctuation.
1999-08-12 14:29:12 +00:00
Todd C. Miller
0d5a675f5b
regen
1999-08-04 15:31:47 +00:00
Todd C. Miller
0d732401f4
add 4th term to license similar to term 5 in the apache license
1999-07-31 16:19:50 +00:00
Todd C. Miller
7126759483
regen
1999-07-22 13:12:27 +00:00
Todd C. Miller
80287c981c
Move interface-related defines to interfaces.h so we don't have to include
...
<netinet/in.h> everywhere.
1999-05-17 01:36:30 +00:00
Todd C. Miller
06e586ee7b
Function names should be flush with the start of the line so they can be found trivially in an editor and with grep
1999-04-10 04:49:03 +00:00
Todd C. Miller
eecc5ce1c9
free(3) is already void, no need to cast it
1999-04-10 04:40:57 +00:00
Todd C. Miller
e6deacb6c4
Crank version to 1.6 and combine copyright statements
1999-04-05 20:57:25 +00:00
Todd C. Miller
094a29a66b
regen
1999-04-05 20:29:54 +00:00
Todd C. Miller
79c46d1c81
++version
1999-03-29 04:05:15 +00:00
Todd C. Miller
382ef75493
Use emalloc/erealloc/estrdup
1999-03-29 02:59:34 +00:00
Todd C. Miller
736359ccea
Fix a bug wrt quoting characters in command args. Stop processing an arg when you hit a backslash so the quoted-character detection can catch it.
1999-03-07 23:34:31 +00:00
Todd C. Miller
826fe213f2
add sudo tags
1999-01-17 23:16:20 +00:00
Todd C. Miller
d3aaf52283
crank version and regen files
1999-01-17 22:40:55 +00:00
Todd C. Miller
eb22ac2ec2
regen
1999-01-17 21:42:12 +00:00