Commit Graph

80 Commits

Author SHA1 Message Date
Todd C. Miller
576ea0ed17 Fix --with-badpri help line 2000-04-19 19:30:28 +00:00
Todd C. Miller
fc6fe43af5 Don't bother checking for the path to vi if user specified --with-editor 2000-04-02 15:44:06 +00:00
Todd C. Miller
e736ad4a55 OSF/1 puts file formats in section 4, not 5. 2000-03-24 20:14:05 +00:00
Todd C. Miller
1f343c7a0f If there is no inet_addr but there *is* an __inet_addr that's ok since
inet_addr is probably just a macro then.  The better thing to do would
be to look for the macro, but this is fine for now.
2000-03-24 01:23:05 +00:00
Todd C. Miller
6814458ab3 Don't use shlicc for BSD/OS 4.x 2000-03-24 00:50:30 +00:00
Todd C. Miller
b0bbcfc187 *.man lives in cwd, *.cat lives in $(srcdir), add a @mansrcdir@
configure variable so we can deal with this.
Also, only remove *.man for 'distclean' not 'clean'.
2000-03-24 00:40:55 +00:00
Todd C. Miller
4fc832c6c2 Pull in newer fnmatch(3) that supports FNM_CASEFOLD
Check for FNM_CASEFOLD in configure
2000-03-23 15:11:50 +00:00
Todd C. Miller
d168a21cee Add FreeBSD login.conf support (untested on BSD/OS) based on a patch from
Michael D. Marchionna.
configure now does substitution on the man pages, allowing us to
fix up the paths and set the section correctly.  Based on an idea
from Michael D. Marchionna.
2000-03-23 00:35:59 +00:00
Todd C. Miller
935a51e76a FreeBSD login class (login.conf) support. 2000-03-07 04:29:46 +00:00
Todd C. Miller
73946622ba crank versino to 1.6.3 2000-02-16 00:07:28 +00:00
Todd C. Miller
82b60ddc2f Fix thinko, some && should have been || in the last commit 2000-02-13 18:38:14 +00:00
Todd C. Miller
26b93e27fb Don't initialized Makefile variables to be NULL since the user may
want to import variables from their environment.
2000-02-13 18:28:04 +00:00
Todd C. Miller
36a249399c typo 2000-02-04 02:09:02 +00:00
Todd C. Miller
a4f529eaec Make pam work on HP-UX 11.0;jaearick@colby.edu 2000-01-27 20:01:37 +00:00
Todd C. Miller
d9790399b3 Fix sudoers locking in visudo. We now lock the sudoers file itself, not
the temp file (since locking the temp file can foul up editors).  The
previous locking scheme didn't work because the fd was closed too early.
2000-01-19 19:07:24 +00:00
Todd C. Miller
90371b1c03 Don't need test for ftruncate() any more. 2000-01-19 18:37:51 +00:00
Todd C. Miller
f63b8d3211 Add a test for the -Aa flag w/ HP-UX's cc. Fixes compilation with the
unbundled HP-UX cc.
2000-01-19 02:23:48 +00:00
Todd C. Miller
5d24e69ba4 Crank version to 1.6.2 2000-01-17 23:11:26 +00:00
Todd C. Miller
26f5aa6f24 For HP-UX cc, add -Aa to CPPFLAGS.
For HP-UX always add -D_HPUX_SOURCE to CPPFLAGS.
2000-01-14 17:39:00 +00:00
Todd C. Miller
ac67ced558 Add check for initgroups() since old SYSV lacks this. 1999-12-09 04:04:47 +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
c6136f9764 crank version to 1.6 1999-12-05 02:18:47 +00:00
Todd C. Miller
22bb6197d4 Wrap script execution w/ /bin/sh for the benefit of ctm 1999-11-25 00:43:44 +00:00
Todd C. Miller
701c55c08c regen 1999-11-08 23:59:53 +00:00
Todd C. Miller
59666aca78 o Now use getrlimit to find the highest fd when closing all non-std fd's
o Turn off core dumps via setrlimit for the sake of paranoia
1999-11-04 19:01:11 +00:00
Todd C. Miller
3acdd5b02f New krb5 code from Frank Cusack <fcusack@iconnet.net>. 1999-10-13 02:34:55 +00:00
Todd C. Miller
7769bf6a32 o Change defaults stuff to put the value right in the struct.
o Implement mailer_flags
o Store syslog stuff both in int and string form.  Setting the string
  form magically updates the int version.
o Add boolean attribute to strings where it makes sense to say !foo
1999-10-07 21:21:08 +00:00
Todd C. Miller
f7e23611be Use strftime() instead of ctime() if it is available. 1999-09-15 09:15:33 +00:00
Todd C. Miller
c1f71dcd85 add --without-sendmail to help output 1999-09-14 08:01:25 +00:00
Todd C. Miller
bb635cab49 enforce an otctal arg for --with-suoders-mode 1999-09-14 07:42:16 +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
92e5ebd9f1 Define _XOPEN_EXTENDED_SOURCE on AIX and __USE_FIXED_PROTOTYPES__ on SunOS4 w/ gcc 1999-08-28 09:36:32 +00:00
Todd C. Miller
fda4a9709f Add _GNU_SOURCE for Linux 1999-08-28 08:49:08 +00:00
Todd C. Miller
df15b27a09 aix_auth.o not authenticate.o 1999-08-28 08:10:08 +00:00
Todd C. Miller
359b5be92d Kill _XOPEN_EXTENDED_SOURCE -- causes problems on some OSes 1999-08-26 21:24:50 +00:00
Todd C. Miller
3118b7f865 Kill VISUDO_LIBS and VISUDO_LDFLAGS. Add LIBS, NET_LIBS, and LDFLAGS.
Common libs go in LIBS, commong ld flags go in LDFLAGS and network libs
like -lsocket, -lnsl go in NET_LIBS.  This allows testsudoers to build
on Solaris and is a bit cleaner in general.
1999-08-26 13:16:06 +00:00
Todd C. Miller
ff95bb1d77 Define _XOPEN_SOURCE_EXTENDED not _XOPEN_SOURCE 1999-08-26 10:12:46 +00:00
Todd C. Miller
0d38bef9a7 include strcasecmp() for those without it 1999-08-24 17:37:38 +00:00
Todd C. Miller
ba358d6d51 define _XOPEN_SOURCE to get at crypt() proto on some systems 1999-08-23 16:47:42 +00:00
Todd C. Miller
084b426b3b Better test for working long long support. Ultrix compiler supports
basic long long but not all operations on them.
1999-08-22 11:22:06 +00:00
Todd C. Miller
b13e8006ec Add check for LONG_IS_QUAD
#undef MAXINT before including hpsecurity.h to silence an HP-UX warning
Check for U?LONG_LONG_MAX in snprintf.c and use LONG_IS_QUAD
1999-08-22 09:59:28 +00:00
Todd C. Miller
ab0c1eae13 UCB-derived snprintf + asprintf support. Supports quads if the compiler
does.  No floating point yet, perhaps later...
1999-08-21 19:00:53 +00:00
Todd C. Miller
0598093e2c sudoers_lookup() now returns a bitmap instead of an int. This makes it
possible to express things like "failed to validate because user not listed
for this host".  Some thigns that were previously VALIDATE_FOO are now
FLAG_FOO.  This may change later on.

Reorganized code in log_auth() and sudo.c to deal with above changes.

Safer versions of push/pushcp with in the do { ... } while (0) style

parse.yacc now saves info on the stack to allow parse.c to determine
if a user was listed, but not for the host he/she tried to run on.

Added --with-mail-if-no-host option
1999-08-19 16:30:09 +00:00
Todd C. Miller
3ad8fe164a Add testsudoers to default build target if --with-devel
Don't clean generated parser files unless "distclean".
1999-08-17 14:29:28 +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
d7ebfe06d1 o Digital UNIX needs to check for *snprintf() before -ldb is added to LIBS
since -ldb includes a bogus snprintf().
o Add forward refs for struct mbuf and struct rtentry for Digital UNIX.
o Reorder some functions in snprintf.c to fix -Wall
o Add missing includes to fix more -Wall
1999-08-12 16:24:10 +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
d2dcea30cb regen 1999-08-09 14:08:19 +00:00
Todd C. Miller
76148d5316 o Move lock_file() and touch() into fileops.c so visudo can use them
o Visudo now locks the sudoers temp file instead of bailing when
the temp file already exists.  This fixes the problem of stale
temp files but it does *require* that you not try to put the
temp file in a world-writable directory.  This shoud not be
an issue as the temp file should live in the same dir as sudoers.
o Visudo now only installs the temp file as sudoers if it changed.
1999-08-07 09:59:43 +00:00
Todd C. Miller
925f4eabc2 Lock the log file. 1999-08-06 13:33:03 +00:00