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
c7fd99aa54
BSD-style copyright. Move parser-specific defines and structs into parse.h + other cosmetic changes
1999-07-22 12:51:18 +00:00
Todd C. Miller
26be17a3d6
Add contribution info in the main comment
1999-07-12 10:25:14 +00:00
Todd C. Miller
63209c1348
only save an entry if user_matches && host_matches, even if the stack is empty (fix for previous commit)
1999-07-08 10:46:28 +00:00
Todd C. Miller
fb54a0311a
1) Always save an entry on the stack if it is empty. This fixes the
...
-l and -v flags that were broken by earlier parser changes.
2) In a Runas list, don't negate FALSE -> TRUE since that would make !foo
match any time the user specified a runas user (via -u) other than foo.
1999-07-08 10:35:28 +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
850a52aa6f
o Replace _PASSWD_LEN braindeath with our own SUDO_MAX_PASS.
...
It turns out the old DES crypt does the right thing with passwords
longert than 8 characters.
o Fix common typo (necesary -> necessary)
o Update TODO list
1999-05-14 16:30:14 +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
59b0cff8cf
Stash the "safe" path (ie: the one listed in sudoers) to the command instead
...
of stashing the struct stat. Should be safer.
1999-04-10 04:10:01 +00:00
Todd C. Miller
622b7a1d97
You can now specifiy a host list instead of just a host or alias.
...
Ie: user = host1,host2,ALIAS,!host3 my_command
now works.
1999-04-07 23:18:52 +00:00
Todd C. Miller
91e31132dd
Move the push from the beginning of cmndspec to the end. This means we
...
no longer have to do a push at the end of privilege, just reset some values.
1999-04-07 06:50:47 +00:00
Todd C. Miller
f50a342b4e
It is now possible to use the '!' operator in a runas list as
...
well as in a Cmnd_Alias, Host_Alias and User_Alias.
1999-04-06 05:40:51 +00:00
Todd C. Miller
499e869237
Add VALIDATE_NOT_OK_NOPASS for when user is not allowed to run a command
...
but the NOPASSWD flag was set.
Make runasspec, runaslist, runasuser, and nopasswd typeless in parse.yacc
Add support for '!' in the runas list
Fix double printing of '%' and '+' for groups and netgroups respectively
Add *_matched macros (no need for local stack variable). Should only be
used directly after a pop (since top must be >= 2).
1999-04-06 05:00:29 +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
4f6f75ae35
Make runas and NOPASSWD tags persistent across entris in a command list.
...
Add a PASSWD tag to reverse NOPASSWD. When you override a runas or *PASSWD
tag the value given becomes the new default for the rest of the command list.
1999-04-05 20:28:16 +00:00
Todd C. Miller
49c5a12d8c
Fix another parser bug. For a sudoers entry like this:
...
millert ALL=/bin/ls,(daemon) !/bin/ls
sudo would not allow millert to run ls as root.
1999-03-30 17:17:54 +00:00
Todd C. Miller
baae4d4dd9
Save entries that match a ! command on the matching stack too
1999-03-30 06:03:38 +00:00
Todd C. Miller
75fb22990f
Fix off by one error introduced in *alloc changes
1999-03-29 04:31:16 +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
e4b42c5eac
Still not right, this fixes it for real
1999-03-29 00:23:49 +00:00
Todd C. Miller
b789f9e932
Fix for previous commit
1999-03-29 00:08:02 +00:00
Todd C. Miller
217710df36
Fix a parser bug that was exposed when mixing different runas specs
...
and ! commands. For example:
millert ALL=(daemon) /usr/bin/whoami,!/bin/ls
would allow millert to run whoami as root as well as daemon when it should
just allow daemon. The problem was that comma-separated commands in
a list shared the same entry on the matching stack. Now they get
their own entry iff there is a full match. It may be better to just make
the runas spec persistent across all commands in a list like the user
and host entries of the matching stack. However, since that is a
fairly major change it should gets its own minor rev increase.
1999-03-29 00:05:15 +00:00
Todd C. Miller
f9b80fcad4
add cast for strdup in places it does not have it
1999-02-11 06:41:32 +00:00
Todd C. Miller
52916f16ac
add explicate copyright
1999-02-03 04:32:19 +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
a31b342609
never say "error on line -1"
1998-11-28 00:37:51 +00:00
Todd C. Miller
d5fb938c19
make increases of cm_list_size and ga_list_size be similar to
...
increases of stacksize (ie: >= not > in initial compare).
1998-11-20 19:26:16 +00:00
Todd C. Miller
cbd9d6f32d
when we get a syntax error, report it for the previous line since
...
that's generally where the error occurred.
1998-11-20 19:22:45 +00:00
Todd C. Miller
62dba8f4d1
more -Wall
1998-11-18 04:16:13 +00:00
Todd C. Miller
c253188f55
-Wall
1998-11-18 03:51:10 +00:00
Todd C. Miller
c3f28be054
kill perror("malloc") since we already have a good error messages
1998-11-04 01:40:35 +00:00
Todd C. Miller
5bfb481ca7
no more options.h
1998-10-15 05:41:26 +00:00
Todd C. Miller
0ef9f25d7e
updated version
1998-09-17 16:27:15 +00:00
Todd C. Miller
3dd98aef66
fix version string
1998-09-15 02:25:48 +00:00
Todd C. Miller
e68f156aca
add RUNAS_DEFAULT
1998-09-08 00:42:02 +00:00
Todd C. Miller
3b1be424aa
updated version
1998-04-06 03:17:56 +00:00
Todd C. Miller
e37e1e56b6
updated version
1998-03-31 05:05:49 +00:00
Todd C. Miller
c866646cdf
updated version
1998-02-18 21:39:31 +00:00
Todd C. Miller
14292f47cc
fix off by one error in push macro
1998-02-18 21:23:57 +00:00
Todd C. Miller
cd226d56c3
include alloca.h if using bison and not gcc and it exists.
...
fixes an alloca problem on hpux 10.x
1998-02-17 06:11:28 +00:00
Todd C. Miller
2fc787d5f6
updated version
1998-02-17 02:43:17 +00:00
Todd C. Miller
bc7803cd08
updated version
1998-02-06 20:49:24 +00:00
Todd C. Miller
ca5babc430
updated version
1998-01-21 06:29:42 +00:00
Todd C. Miller
bb6a33e080
updated version
1998-01-21 05:50:58 +00:00
Todd C. Miller
dd18f0def6
-Wall
1998-01-13 07:00:02 +00:00
Todd C. Miller
166789a1dd
++version
1998-01-13 04:48:42 +00:00
Todd C. Miller
23b2719a37
command_alias -> generic_alias
1996-11-14 20:09:12 +00:00