Commit Graph

216 Commits

Author SHA1 Message Date
Todd C. Miller
e69dc38fd1 mkdefaults, def_data.in and sigaction.c were missing from the tarball 2001-12-19 15:04:46 +00:00
Todd C. Miller
21de57f549 def_data.c was missing 2001-12-19 14:46:05 +00:00
Todd C. Miller
47dff37185 o Update copyright year 2001-12-14 19:54:56 +00:00
Todd C. Miller
fc52725317 Run pod2man with --quotes=none to avoid stupid quoting of C<> entries. 2001-11-13 00:14:29 +00:00
Todd C. Miller
5133d4a34a add sudo.tab.h and sudo.tab.c to sudo.tab.o dependency 2001-11-02 23:09:35 +00:00
Todd C. Miller
1d232a6aaf acsite.m4 -> aclocal.m4 2001-11-02 22:18:04 +00:00
Todd C. Miller
c70104020b FAQ link goes away 2001-04-13 01:41:04 +00:00
Todd C. Miller
d956d77528 Move defaults info into its own files from which we generate
.h and .c files.  This makes adding or rearranging variables
much simpler.
2000-12-31 01:38:37 +00:00
Todd C. Miller
998631b73a New Defaults options:
o stay_setuid - sudo will remain setuid if system has saved uids or setreuid(2)
 o env_reset - reset the environment to a sane default
 o env_keep - preserve environment variables that would otherwise be cleared

No longer use getenv/putenv/setenv functions--do environment munging by hand.
Potentially dangerous environment variables can be cleared only if they
contain '/' pr '%' characters to protect buggy programs.
Moved environment routines into env.c (new file)
2000-12-30 03:29:47 +00:00
Todd C. Miller
7ea65e54bd Move set_perms() to its own file and use POSIX saved uid or setreuid()
if available.

Added stay_setuid option for systems that have libraries that perform
extra paranoia checks in system libraries for setuid programs (ie:
anything with issetugid(2)).
2000-11-03 05:37:44 +00:00
Todd C. Miller
0208b22686 Add support for BSD authentication. 2000-10-26 16:42:40 +00:00
Todd C. Miller
87ccf62b70 Crank version 2000-08-13 21:10:00 +00:00
Todd C. Miller
7e00f9c376 Give date string to pod2man since its default is ugly and it ain't got
no alibi.
2000-04-07 14:38:07 +00:00
Todd C. Miller
0755c34a8e Do section substitution on the output of pod2man and remove hack needed
for old pod2man.
2000-04-07 14:27:31 +00:00
Todd C. Miller
6dd2d9592e Visudo now checks for the existence of an editor and gives a sensible
error if it does not exist.

The path to the editor for visudo is now a colon-separated list of
allowable editors.  If the user has $EDITOR set and it matches
one of the allowed editors that editor will be used.  If not,
the first editor in the list that actually exists is used.
2000-04-01 21:23:28 +00:00
Todd C. Miller
aaa68a2b49 Strip sudo and visudo for bindist target 2000-03-27 17:08:46 +00:00
Todd C. Miller
a9a9e6601a 'make dist' should not cause any files to be modified so remove
its dependencies.
2000-03-27 02:57:52 +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
c232acbfce Add targets for *.man.in, using config.status to generate *.man from *.man.in 2000-03-23 03:50:54 +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
39e191bca8 Link visudo with NET_LIBS since we now call syslog via defaults.c 2000-02-29 22:46:32 +00:00
Todd C. Miller
73946622ba crank versino to 1.6.3 2000-02-16 00:07:28 +00:00
Todd C. Miller
5d05fbe95b When making a bindist, link FAQ to TROUBLESHOOTING instead of copying. 2000-01-24 15:48:46 +00:00
Todd C. Miller
9e0bae9fc6 update copyright year on changed files 2000-01-17 23:46:26 +00:00
Todd C. Miller
6d6c22b4b4 Crank version to 1.6.2 2000-01-17 17:28:41 +00:00
Todd C. Miller
df297922c5 add check target 2000-01-03 04:26:17 +00:00
Todd C. Miller
c6136f9764 crank version to 1.6 1999-12-05 02:18:47 +00:00
Todd C. Miller
96ffd91ec5 No longer need the .html files as they are generated automatically
on the web site.
1999-11-28 23:51:54 +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
c977b43ca6 add sample.syslog.conf to DISTFILES and BINFILES 1999-11-20 02:04:12 +00:00
Todd C. Miller
5e742c68d3 Add bindist target 1999-11-18 02:38:58 +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
24f317e173 include auth/API in tarball 1999-08-27 20:09:30 +00:00
Todd C. Miller
2e4dcff8f0 add parse.h to HDRS 1999-08-26 13:21:31 +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
0d38bef9a7 include strcasecmp() for those without it 1999-08-24 17:37:38 +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
518eec0abb add parse.h dependency 1999-08-09 22:17:27 +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
145992dce2 o /etc/stmp -> /etc/sudoers.tmp since solaris uses stmp as shadow temp file
o _PATH_SUDO_SUDOERS -> _PATH_SUDOERS and _PATH_SUDO_STMP -> _PATH_SUDOERS_TMP
1999-08-06 09:37:03 +00:00
Todd C. Miller
93c2367743 Sigh, some versions of make (like Solaris's) don't deal with $< like
I would expect.  Both GNU and BSD makes get this right but...
So, we just expand $< inline at the cost of some ugliness.
1999-08-05 10:55:14 +00:00
Todd C. Miller
a7acfdb683 o authenticate -> aix_auth
o add version.c
1999-08-05 09:23:39 +00:00
Todd C. Miller
3fc0ab7680 correct fix 1999-08-01 17:04:05 +00:00
Todd C. Miller
896c2748e1 work around pod2man stupididy 1999-08-01 16:37:07 +00:00
Todd C. Miller
3e8a6d4962 correct dependencies for .cat 1999-08-01 16:35:06 +00:00
Todd C. Miller
5a51e05e63 Sudo, not CU Sudo 1999-07-31 16:31:27 +00:00
Todd C. Miller
ca8eb6f2aa add 4th term to license similar to term 5 in the apache license 1999-07-31 16:19:45 +00:00
Todd C. Miller
e86bcddbed BSD-style copyright. Update to reflect reality wrt new files and new auth modules. 1999-07-22 12:33:26 +00:00
Todd C. Miller
406056d7e5 move authentication code to auth.c 1999-06-03 15:51:07 +00:00