Todd C. Miller
ffca544b6c
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:22 +00:00
Todd C. Miller
5ce1fa96f2
Add support for wildcards in the hostname.
2000-03-23 04:09:53 +00:00
Todd C. Miller
db2c555453
kill register
2000-03-22 15:53:09 +00:00
Todd C. Miller
9e0bae9fc6
update copyright year on changed files
2000-01-17 23:46:26 +00:00
Todd C. Miller
0b59a0974d
netgr_matches needs to check shost as well as host since they may be different.
2000-01-11 18:20:41 +00:00
Todd C. Miller
957fa7941d
o Kill HAVE_FNMATCH_H
...
o Only define HAVE_FNMATCH if <fnmatch.h> exists.
1999-12-09 03:54:57 +00:00
Todd C. Miller
a183816d27
add set_fqdn() stub
1999-12-05 02:18:17 +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
a067249e1c
Move inclusion of emul/fnmatch.h to be after sudo.h for __P
1999-08-28 10:00:22 +00:00
Todd C. Miller
8723291d89
CIDR-style netmask support
1999-08-24 16:42:28 +00:00
Todd C. Miller
2386dc1b45
o Add a "pedentic" flag to the parser. This makes sudo warn in cases
...
where an alias may be used before it is defined. Only turned on for visudo
and testsudoers.
o Add --disable-authentication option that makes sudo not require
authentication by default. The PASSWD tag can be used to require
authentication for an entry. We no longer overload --without-passwd.
1999-08-12 14:37:27 +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
4dc01cc916
o BSD-style copyright
...
o Use "struct sudo_user" instead of old globals.
o some cometic cleanup
1999-07-22 12:57:47 +00:00
Todd C. Miller
feb78be26e
interfaces and num_interfaces are now auto, not extern
1999-07-08 09:45:16 +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
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
3a8971f654
Quiet -Wall
1999-04-07 06:59:59 +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
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
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
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
d0c535cee3
kill perror("malloc") since we already have a good error messages
...
pw_ent -> pw for brevity
1998-11-04 01:41:09 +00:00
Todd C. Miller
0ef9f25d7e
updated version
1998-09-17 16:27:15 +00:00
Todd C. Miller
e68f156aca
add RUNAS_DEFAULT
1998-09-08 00:42:02 +00:00
Todd C. Miller
2b2b9eb8ef
include stdlib.h for malloc proto
1998-06-24 16:22:26 +00:00
Todd C. Miller
12477fd6e6
updated version
1998-04-06 03:35:50 +00:00
Todd C. Miller
c27d678ff7
MAX* + 1 -> MAX*
1998-04-06 03:15:39 +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
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
efbcdfe829
updated version
1998-01-21 06:56:41 +00:00
Todd C. Miller
bb6a33e080
updated version
1998-01-21 05:50:58 +00:00
Todd C. Miller
166789a1dd
++version
1998-01-13 04:48:42 +00:00
Todd C. Miller
5e723efe75
++version
1996-11-14 02:37:56 +00:00
Todd C. Miller
413f869078
developement -> development
1996-10-11 02:11:43 +00:00
Todd C. Miller
b0248f15df
++version
1996-10-07 05:07:09 +00:00
Todd C. Miller
6a230806a8
courtesan
1996-09-08 00:21:42 +00:00
Todd C. Miller
d189849b44
++version
1996-08-30 00:37:04 +00:00
Todd C. Miller
35825133a7
++version
1996-08-17 23:25:40 +00:00
Todd C. Miller
7eea86a4cc
now works with new sudo
1996-08-17 23:17:23 +00:00
Todd C. Miller
09c9f7ed92
don't call fnmatch() with FNM_PATHNAME flag unless it can only
...
be a pathname.
need to check against sudoers_args even if user_args is nil
1996-07-24 01:18:55 +00:00
Todd C. Miller
27386f12f2
now takes command line args and uses cmnd_args
1996-07-23 05:18:10 +00:00