Commit Graph

3867 Commits

Author SHA1 Message Date
Todd C. Miller
2dc559bf3e s/HAVE_AUTHENTICATE/HAVE_AIXAUTH/g 2005-01-21 15:29:55 +00:00
Todd C. Miller
609a615f8a Better checking for conflicting authentication methods
Display the authentication methods used at the end of configure
Rename --with-authenticate -> --with-aixauth
Use --with-aixauth, --with-bsdauth, --with-pam, --with-logincap by
default on systems that support them unless disabled.
Add OSMAJOR variable that replaces old OSREV; now OSREV has full version number
2005-01-21 15:29:05 +00:00
Todd C. Miller
840d51a160 s/-O/-C/ 2005-01-18 00:41:31 +00:00
Todd C. Miller
2e8e963460 Replace:
test -n "$FOO" || FOO="bar"

With:
    : ${FOO='bar'}
2005-01-14 18:35:06 +00:00
Todd C. Miller
7ca844890d Use function pointers to only call private passwd/group routines when
using a nonstandard passwd/group file.
2005-01-09 23:58:21 +00:00
Todd C. Miller
e7f2e2a190 sync 2005-01-06 15:34:20 +00:00
Todd C. Miller
b8c4e2770d Can't use strtok() since it doesn't handle empty fields so add
getpwent()/getgrent() functions and call those.
2005-01-06 03:16:11 +00:00
Todd C. Miller
2fd0f3d4ce Fix dummied out toke.c and gram.c dependencies. 2005-01-05 22:29:06 +00:00
Todd C. Miller
ba001795e8 Rename PARSESRCS -> GENERATED since it is only used in the clean target
Add devdir variable and use it to specify the path to parser sources
2005-01-05 22:18:42 +00:00
Todd C. Miller
031a3ef556 regen 2005-01-05 22:17:52 +00:00
Todd C. Miller
1fb59a25ca Add a devdir variables that defaults to $(srcdir) and is set to . if
--devel was specified.  Allows for proper dependecies building the parser.
2005-01-05 22:17:33 +00:00
Todd C. Miller
5e475c85b3 Add support for custom passwd/group files. 2005-01-05 19:50:49 +00:00
Todd C. Miller
66773d1b6a Build private copy of pwutil.o for testsudoers with MYPW defined so
it uses our own passwd/group routines.
2005-01-05 19:47:20 +00:00
Todd C. Miller
0ab0ad2441 Remove sudo_*{pw,gr}* stubs and add sudo_setspent/sudo_endspent stubs instead.
We can now just use the caching sudo_*{pw,gr}* functions in pwutil.c
Add comment about wanting to call sudo_endpwent/sudo_endgrent in cleanup()
2005-01-05 19:46:39 +00:00
Todd C. Miller
13cc087799 Remove caching; we will just use what is in pwutil.c
Use global buffers for passwd/group structs
Rename functions from sudo_* to my_*
2005-01-05 19:44:58 +00:00
Todd C. Miller
dfccf19338 g/c pwcache_init/pwcache_destroy 2005-01-05 19:43:36 +00:00
Todd C. Miller
54db5e40b1 Undo last commit and add sudo_setspent and sudo_endspent instead. 2005-01-05 19:42:06 +00:00
Todd C. Miller
308b6fa118 Move all but the shadow stuff from getspwuid.c to pwutil.c and pwcache_get
and pwcache_put as they are no longer needed.  Also add preprocessor
magic to use private versions of the passwd and group routines if MYPW
is defined (for use by testsudoers).
2005-01-05 19:41:31 +00:00
Todd C. Miller
516ff29770 zero out struct passwd/group before filling it in so if there are
fields we don't handle they end up as 0.
2005-01-05 03:40:01 +00:00
Todd C. Miller
a5d9296d25 Adapt to pwutil.c 2005-01-05 01:10:16 +00:00
Todd C. Miller
3c58acdc02 Add tsgetgrpw.c and pwutil.c
Rename the *OBJ variables for better readability.
2005-01-05 01:09:03 +00:00
Todd C. Miller
31fd279da8 Passwd and group lookup routines for testsudoers that support alternate
passwd and group files.
2005-01-05 01:08:30 +00:00
Todd C. Miller
282c0bf361 Split off pw/gr cache and dup code into its own file.
This allows visudo and testsudoers to use the pw/gr cache too.
2005-01-05 01:07:33 +00:00
Todd C. Miller
ed4df3a948 Print Defaults info in "sudo -l" output and wrap lines based on the
terminal width.
2005-01-02 00:31:08 +00:00
Todd C. Miller
a58012cfff Only check group vector in usergr_matches() if we are matching the
invoking or list user.  Always check the group members, even if
there was a group vector.
2005-01-01 17:41:21 +00:00
Todd C. Miller
39ddb7716f No longer bundle fnmatch.3 2004-12-17 22:24:16 +00:00
Todd C. Miller
e05905dd16 checkpoint 2004-12-17 18:12:20 +00:00
Todd C. Miller
bb76440b4f sort usage 2004-12-16 19:20:25 +00:00
Todd C. Miller
0b1ef8ff53 Sort command line options 2004-12-16 19:20:12 +00:00
Todd C. Miller
051a2110a4 Add closefrom sudoers option to start closing at a point other than 3.
Add closefrom_override sudoers option and -C sudo flag to allow the
user to specify a different closefrom starting point.
2004-12-16 18:33:49 +00:00
Todd C. Miller
74c19b024a Add _PATH_DEVNULL for those without it. 2004-12-16 18:25:54 +00:00
Todd C. Miller
2c9dc5a69b no more UCB strcasecmp 2004-12-16 03:55:46 +00:00
Todd C. Miller
b9a727023a replace BSD licensed one with version derived from pdksh 2004-12-16 03:54:48 +00:00
Todd C. Miller
f93cd1e97a Fix last commit. 2004-12-10 02:07:27 +00:00
Todd C. Miller
07d74adfba Make sure stdin, stdout and stderr are open and dup them to /dev/null
if not.
2004-12-10 00:26:22 +00:00
Todd C. Miller
1936aeb299 add sudo_ldap_close 2004-12-03 18:57:48 +00:00
Todd C. Miller
7d488657f0 Use TIME_WITH_SYS_TIME 2004-12-03 18:52:28 +00:00
Todd C. Miller
9884923a9c Add TIME_WITH_SYS_TIME_H 2004-12-03 18:48:07 +00:00
Todd C. Miller
48dae86b8f Add missing braces to avoid DYLD_FORCE_FLAT_NAMESPACE being set
unconditionally on darwin.  From Toby Peterson.
2004-12-02 16:18:29 +00:00
Todd C. Miller
77a7ab659a Check rbinsert() return value. In the case of faked up entries there
is usually a negative response cached that we need to overwrite.

In pwfree() don't try to zero out a NULL pw_passwd pointer.
2004-12-02 15:40:00 +00:00
Todd C. Miller
d88e6523a3 Use the double fork trick to avoid the monitor process being waited
for by the main program run through sudo.
2004-12-02 14:53:20 +00:00
Todd C. Miller
68e54d2c8b Call initgroups() in -U mode so group matches work normally. 2004-11-29 17:52:02 +00:00
Todd C. Miller
51fbe264f1 Don't print a trailing comma for the last entry in enum def_tupple 2004-11-29 17:34:09 +00:00
Todd C. Miller
9c88441420 Mention values when lecture, listpw and verifypw are used in boolean context. 2004-11-28 21:08:09 +00:00
Todd C. Miller
f5c359ee06 verifypw when used in a boolean TRUE context should be "all", not "any". 2004-11-28 21:05:38 +00:00
Todd C. Miller
57ab7279b1 Allow tuples that can be used as booleans to be used as boolean TRUE.
In this case the 2nd possible value of the tuple is used for TRUE.
2004-11-26 19:21:08 +00:00
Todd C. Miller
8ed367de8f Correct the test for 2-parameter timespecsub 2004-11-25 17:23:27 +00:00
Todd C. Miller
d72a4e9c24 Add strub struct definitions for passwd, timeval and timespec 2004-11-25 17:20:57 +00:00
Todd C. Miller
33db4b2edb Add check for 2-argument form of timespecsub (FreeBSD and BSD/OS) and
fix a typo in the gettimeofday check.
2004-11-25 17:09:31 +00:00
Todd C. Miller
94f606fbf6 Deal with user_stat being NULL as it is for visudo and testsudoers. 2004-11-24 21:44:54 +00:00