]> granicus.if.org Git - sudo/log
sudo
25 years agofix copyright date
Todd C. Miller [Tue, 14 Sep 1999 16:58:56 +0000 (16:58 +0000)]
fix copyright date

25 years agoupdate ReliantUNIX entry
Todd C. Miller [Tue, 14 Sep 1999 16:57:10 +0000 (16:57 +0000)]
update ReliantUNIX entry

25 years agoadd log_year option
Todd C. Miller [Tue, 14 Sep 1999 16:56:32 +0000 (16:56 +0000)]
add log_year option

25 years agoadd --without-sendmail to help output
Todd C. Miller [Tue, 14 Sep 1999 08:01:25 +0000 (08:01 +0000)]
add --without-sendmail to help output

25 years agoenforce an otctal arg for --with-suoders-mode
Todd C. Miller [Tue, 14 Sep 1999 07:42:16 +0000 (07:42 +0000)]
enforce an otctal arg for --with-suoders-mode

25 years agoAdd support for "Defaults" line in sudoers to make configuration variables
Todd C. Miller [Wed, 8 Sep 1999 08:06:28 +0000 (08:06 +0000)]
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.

25 years agoAdd more info
Todd C. Miller [Wed, 8 Sep 1999 08:01:10 +0000 (08:01 +0000)]
Add more info

25 years agoUCB has dropped the advertising clause from their license.
Todd C. Miller [Sat, 4 Sep 1999 07:09:04 +0000 (07:09 +0000)]
UCB has dropped the advertising clause from their license.

25 years agomove dce_verofy proto to correct section
Todd C. Miller [Tue, 31 Aug 1999 09:39:45 +0000 (09:39 +0000)]
move dce_verofy proto to correct section

25 years agoremove XXX
Todd C. Miller [Tue, 31 Aug 1999 09:39:17 +0000 (09:39 +0000)]
remove XXX

25 years agoAdd fnmatch() prototype
Todd C. Miller [Sat, 28 Aug 1999 10:00:54 +0000 (10:00 +0000)]
Add fnmatch() prototype

25 years agoMove inclusion of emul/fnmatch.h to be after sudo.h for __P
Todd C. Miller [Sat, 28 Aug 1999 10:00:22 +0000 (10:00 +0000)]
Move inclusion of emul/fnmatch.h to be after sudo.h for __P

25 years agoadd strcasecmp proto
Todd C. Miller [Sat, 28 Aug 1999 09:59:18 +0000 (09:59 +0000)]
add strcasecmp proto

25 years agoadd check for case where there are no auth methods
Todd C. Miller [Sat, 28 Aug 1999 09:50:27 +0000 (09:50 +0000)]
add check for case where there are no auth methods

25 years agoDefine _XOPEN_EXTENDED_SOURCE on AIX and __USE_FIXED_PROTOTYPES__ on SunOS4 w/ gcc
Todd C. Miller [Sat, 28 Aug 1999 09:36:32 +0000 (09:36 +0000)]
Define _XOPEN_EXTENDED_SOURCE on AIX and __USE_FIXED_PROTOTYPES__ on SunOS4 w/ gcc

25 years agoinclude strings.h everywhere we include string.h
Todd C. Miller [Sat, 28 Aug 1999 09:24:15 +0000 (09:24 +0000)]
include strings.h everywhere we include string.h

25 years agonicer output when showing auth methods
Todd C. Miller [Sat, 28 Aug 1999 09:22:47 +0000 (09:22 +0000)]
nicer output when showing auth methods

25 years agoAdd support for SEND_MAIL_WHEN_NO_HOST
Todd C. Miller [Sat, 28 Aug 1999 09:00:07 +0000 (09:00 +0000)]
Add support for SEND_MAIL_WHEN_NO_HOST

25 years agoAdd _GNU_SOURCE for Linux
Todd C. Miller [Sat, 28 Aug 1999 08:49:08 +0000 (08:49 +0000)]
Add _GNU_SOURCE for Linux

25 years agofix definition of OCTECT
Todd C. Miller [Sat, 28 Aug 1999 08:22:27 +0000 (08:22 +0000)]
fix definition of OCTECT

25 years agoaix_auth.o not authenticate.o
Todd C. Miller [Sat, 28 Aug 1999 08:10:08 +0000 (08:10 +0000)]
aix_auth.o not authenticate.o

25 years agoOnly block SIGINT, SIGQUIT, SIGTSTP (which can be generated from
Todd C. Miller [Fri, 27 Aug 1999 21:02:24 +0000 (21:02 +0000)]
Only block SIGINT, SIGQUIT, SIGTSTP (which can be generated from
the keyboard).  Since we run with ruid/euid == 0 the user can't
really signal us in nasty ways.

25 years agoDon't need to worry about catching too many signals since we do locking
Todd C. Miller [Fri, 27 Aug 1999 21:01:06 +0000 (21:01 +0000)]
Don't need to worry about catching too many signals since we do locking
on the tmp file.  If a lockfile is really stale, it will be detected
and overwritten.

25 years agoinclude auth/API in tarball
Todd C. Miller [Fri, 27 Aug 1999 20:09:30 +0000 (20:09 +0000)]
include auth/API in tarball

25 years agomove memset() of plaintext pw outside of verify loop and only do the
Todd C. Miller [Fri, 27 Aug 1999 20:09:15 +0000 (20:09 +0000)]
move memset() of plaintext pw outside of verify loop and only do the
memset if we are *not* in standalone mode.

25 years agoDCE is not a standalone method
Todd C. Miller [Fri, 27 Aug 1999 17:46:54 +0000 (17:46 +0000)]
DCE is not a standalone method

25 years agofix --enable-noargs-shell
Todd C. Miller [Fri, 27 Aug 1999 15:53:29 +0000 (15:53 +0000)]
fix --enable-noargs-shell

25 years ago"#ifdef __STDC__" not "#if __STDC__" (I missed one)
Todd C. Miller [Fri, 27 Aug 1999 15:06:19 +0000 (15:06 +0000)]
"#ifdef __STDC__" not "#if __STDC__" (I missed one)

25 years ago_cleanup() function returns an int.
Todd C. Miller [Fri, 27 Aug 1999 14:54:52 +0000 (14:54 +0000)]
_cleanup() function returns an int.

25 years agothere were still some return(0)'s hanging around, make them AUTH_FAILURE
Todd C. Miller [Fri, 27 Aug 1999 14:50:46 +0000 (14:50 +0000)]
there were still some return(0)'s hanging around, make them AUTH_FAILURE

25 years agotypo in comment
Todd C. Miller [Fri, 27 Aug 1999 14:39:24 +0000 (14:39 +0000)]
typo in comment

25 years agoadd missing semicolon
Todd C. Miller [Fri, 27 Aug 1999 14:03:19 +0000 (14:03 +0000)]
add missing semicolon

25 years agomissing backslash
Todd C. Miller [Fri, 27 Aug 1999 12:31:25 +0000 (12:31 +0000)]
missing backslash

25 years agoKill _XOPEN_EXTENDED_SOURCE -- causes problems on some OSes
Todd C. Miller [Thu, 26 Aug 1999 21:24:50 +0000 (21:24 +0000)]
Kill _XOPEN_EXTENDED_SOURCE -- causes problems on some OSes

25 years agoadd parse.h to HDRS
Todd C. Miller [Thu, 26 Aug 1999 13:21:31 +0000 (13:21 +0000)]
add parse.h to HDRS

25 years agoKill VISUDO_LIBS and VISUDO_LDFLAGS. Add LIBS, NET_LIBS, and LDFLAGS.
Todd C. Miller [Thu, 26 Aug 1999 13:16:06 +0000 (13:16 +0000)]
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.

25 years agomention ptmp -> sudoers.tmp
Todd C. Miller [Thu, 26 Aug 1999 10:56:21 +0000 (10:56 +0000)]
mention ptmp -> sudoers.tmp

25 years agoDefine _XOPEN_SOURCE_EXTENDED not _XOPEN_SOURCE
Todd C. Miller [Thu, 26 Aug 1999 10:12:46 +0000 (10:12 +0000)]
Define _XOPEN_SOURCE_EXTENDED not _XOPEN_SOURCE

25 years agoadd 2 reports
Todd C. Miller [Thu, 26 Aug 1999 09:37:27 +0000 (09:37 +0000)]
add 2 reports

25 years agoMinor changes, mostly cosmetic. verify_krb_v5_tgt() changed to return a value more...
Todd C. Miller [Thu, 26 Aug 1999 09:20:32 +0000 (09:20 +0000)]
Minor changes, mostly cosmetic.  verify_krb_v5_tgt() changed to return a value  more like a system function

25 years agoAdd an XXX
Todd C. Miller [Thu, 26 Aug 1999 09:19:25 +0000 (09:19 +0000)]
Add an XXX

25 years agomore things todo!
Todd C. Miller [Thu, 26 Aug 1999 09:19:00 +0000 (09:19 +0000)]
more things todo!

25 years agoupdate based on what is in the man page
Todd C. Miller [Thu, 26 Aug 1999 09:18:42 +0000 (09:18 +0000)]
update based on what is in the man page

25 years agominor change to first line printed in -l mode
Todd C. Miller [Thu, 26 Aug 1999 09:10:50 +0000 (09:10 +0000)]
minor change to first line printed in -l mode

25 years agorename "ENVIRONMENT VARIABLES" section to "ENVIRONMENT" to be more standard and add...
Todd C. Miller [Thu, 26 Aug 1999 09:10:12 +0000 (09:10 +0000)]
rename "ENVIRONMENT VARIABLES" section to "ENVIRONMENT" to be more standard and add "EXAMPLES" section

25 years agorename "ENVIRONMENT VARIABLES" section to "ENVIRONMENT" to be more standard
Todd C. Miller [Thu, 26 Aug 1999 09:08:31 +0000 (09:08 +0000)]
rename "ENVIRONMENT VARIABLES" section to "ENVIRONMENT" to be more standard

25 years agoadd FLAG_NO_CHECK
Todd C. Miller [Thu, 26 Aug 1999 09:06:41 +0000 (09:06 +0000)]
add FLAG_NO_CHECK

25 years agomake an OCTET really be limited to 0-255
Todd C. Miller [Thu, 26 Aug 1999 09:05:57 +0000 (09:05 +0000)]
make an OCTET really be limited to 0-255

25 years agomention timestamp changes
Todd C. Miller [Thu, 26 Aug 1999 09:04:59 +0000 (09:04 +0000)]
mention timestamp changes

25 years agocosmetic cleanup
Todd C. Miller [Thu, 26 Aug 1999 09:04:45 +0000 (09:04 +0000)]
cosmetic cleanup

25 years agonew sudoers(8) man page
Todd C. Miller [Thu, 26 Aug 1999 09:00:59 +0000 (09:00 +0000)]
new sudoers(8) man page

25 years agoUpdate comments about syslog name tables
Todd C. Miller [Tue, 24 Aug 1999 17:45:05 +0000 (17:45 +0000)]
Update comments about syslog name tables

25 years agoinclude strcasecmp() for those without it
Todd C. Miller [Tue, 24 Aug 1999 17:37:38 +0000 (17:37 +0000)]
include strcasecmp() for those without it

25 years agoUse the : operator some more and fix a typo
Todd C. Miller [Tue, 24 Aug 1999 16:43:37 +0000 (16:43 +0000)]
Use the : operator some more and fix a typo

25 years agoupdate the history of sudo
Todd C. Miller [Tue, 24 Aug 1999 16:43:17 +0000 (16:43 +0000)]
update the history of sudo

25 years agoCIDR-style netmask support
Todd C. Miller [Tue, 24 Aug 1999 16:42:28 +0000 (16:42 +0000)]
CIDR-style netmask support

25 years agorecent changes
Todd C. Miller [Tue, 24 Aug 1999 16:41:46 +0000 (16:41 +0000)]
recent changes

25 years agothese should be generated with byacc, not bison
Todd C. Miller [Tue, 24 Aug 1999 16:40:58 +0000 (16:40 +0000)]
these should be generated with byacc, not bison

25 years agoregen
Todd C. Miller [Tue, 24 Aug 1999 16:40:23 +0000 (16:40 +0000)]
regen

25 years agoIn "sudo -l" mode, the type of the stored (expanded) alias was not
Todd C. Miller [Tue, 24 Aug 1999 15:58:39 +0000 (15:58 +0000)]
In "sudo -l" mode, the type of the stored (expanded) alias was not
stored with the contents.  This could lead to incorrect output
if the sudoers file had different alias types with the same name.
Normal parsing (ie: not in '-l' mode) is unaffected.

25 years agodefine _XOPEN_SOURCE to get at crypt() proto on some systems
Todd C. Miller [Mon, 23 Aug 1999 16:47:42 +0000 (16:47 +0000)]
define _XOPEN_SOURCE to get at crypt() proto on some systems

25 years agofix comment
Todd C. Miller [Sun, 22 Aug 1999 17:10:20 +0000 (17:10 +0000)]
fix comment

25 years agodon't need limits.h
Todd C. Miller [Sun, 22 Aug 1999 17:09:49 +0000 (17:09 +0000)]
don't need limits.h

25 years agokill bogus reference to vfprintf
Todd C. Miller [Sun, 22 Aug 1999 11:36:44 +0000 (11:36 +0000)]
kill bogus reference to vfprintf

25 years agobetter examples
Todd C. Miller [Sun, 22 Aug 1999 11:26:23 +0000 (11:26 +0000)]
better examples

25 years agoAdd some const in the K&R defs. This is safe since we define const away
Todd C. Miller [Sun, 22 Aug 1999 11:23:09 +0000 (11:23 +0000)]
Add some const in the K&R defs.  This is safe since we define const away
if the compiler doesn't grok it.

25 years agoBetter test for working long long support. Ultrix compiler supports
Todd C. Miller [Sun, 22 Aug 1999 11:22:06 +0000 (11:22 +0000)]
Better test for working long long support.  Ultrix compiler supports
basic long long but not all operations on them.

25 years agoAdd check for LONG_IS_QUAD
Todd C. Miller [Sun, 22 Aug 1999 09:59:28 +0000 (09:59 +0000)]
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

25 years agoUCB-derived snprintf + asprintf support. Supports quads if the compiler
Todd C. Miller [Sat, 21 Aug 1999 19:00:53 +0000 (19:00 +0000)]
UCB-derived snprintf + asprintf support.  Supports quads if the compiler
does.  No floating point yet, perhaps later...

25 years agoRun most of the code as root, not the invoking user. It doesn't really
Todd C. Miller [Fri, 20 Aug 1999 20:37:16 +0000 (20:37 +0000)]
Run most of the code as root, not the invoking user.  It doesn't really
gain us anything to run as the user since an attacker can just have
an setuid(0) in their egg.  Running as root solves potential problems
wrt signalling.

25 years agoregen
Todd C. Miller [Fri, 20 Aug 1999 20:32:07 +0000 (20:32 +0000)]
regen

25 years agoDon't wait for child to finish in log_error(), let the signal handler
Todd C. Miller [Thu, 19 Aug 1999 17:45:36 +0000 (17:45 +0000)]
Don't wait for child to finish in log_error(), let the signal handler
get it if we are still running, else let init reap it for us.  The extra
time it takes to wait lets the user know that mail is being sent.

Install SIGCHLD handler in main() and for POSIX signals, block everything
*except* SIGCHLD.

25 years agosudoers_lookup() now returns a bitmap instead of an int. This makes it
Todd C. Miller [Thu, 19 Aug 1999 16:30:09 +0000 (16:30 +0000)]
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

25 years agoo NewArgv and NewArgc don't need to be externally visible.
Todd C. Miller [Tue, 17 Aug 1999 15:29:47 +0000 (15:29 +0000)]
o NewArgv and NewArgc don't need to be externally visible.
o If pedantic > 1, it is a parse error.
o Add -s (strict) option to visudo which sets pedantic to 2.

25 years agoJust have sudo-bugs contact info in one place
Todd C. Miller [Tue, 17 Aug 1999 15:26:17 +0000 (15:26 +0000)]
Just have sudo-bugs contact info in one place

25 years agoAdd BUGS section
Todd C. Miller [Tue, 17 Aug 1999 15:20:48 +0000 (15:20 +0000)]
Add BUGS section

25 years agoAdd testsudoers to default build target if --with-devel
Todd C. Miller [Tue, 17 Aug 1999 14:29:28 +0000 (14:29 +0000)]
Add testsudoers to default build target if --with-devel
Don't clean generated parser files unless "distclean".

25 years agoIn pedantic mode we need to save *all* the aliases, not just those
Todd C. Miller [Tue, 17 Aug 1999 12:47:53 +0000 (12:47 +0000)]
In pedantic mode we need to save *all* the aliases, not just those
that match, or we get spurious warnings.

25 years agoreference samples.sylog.conf
Todd C. Miller [Tue, 17 Aug 1999 09:32:43 +0000 (09:32 +0000)]
reference samples.sylog.conf

25 years agoSample entries for syslog.conf
Todd C. Miller [Sat, 14 Aug 1999 15:50:49 +0000 (15:50 +0000)]
Sample entries for syslog.conf

25 years agorecent changes
Todd C. Miller [Sat, 14 Aug 1999 15:40:58 +0000 (15:40 +0000)]
recent changes

25 years agoIn struct sudo_auth, turn need_root and configured into flags and
Todd C. Miller [Sat, 14 Aug 1999 15:36:47 +0000 (15:36 +0000)]
In struct sudo_auth, turn need_root and configured into flags and
add a flag to specify an auth method is running alone (the only
one).  Pass auth methods their sudo_auth pointer, not the data
pointer.  This allows us to get at the flags and tell if we are the
only auth method.  That, in turn, allows the method to be able to
decide what should/should not be a fatal error.  Currently only
rfc1938 uses it this way, which allows us to kill the OTP_ONLY
define and te hackery that went with it.  With access to the
sudo_auth struct, methods can also get at a string holding their
cannonical name (useful in error messages).

25 years agoo --with-otp deprecated, use --without-passwd instead
Todd C. Miller [Sat, 14 Aug 1999 15:34:55 +0000 (15:34 +0000)]
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

25 years agorecent changes
Todd C. Miller [Thu, 12 Aug 1999 16:26:25 +0000 (16:26 +0000)]
recent changes

25 years agoo Digital UNIX needs to check for *snprintf() before -ldb is added to LIBS
Todd C. Miller [Thu, 12 Aug 1999 16:24:10 +0000 (16:24 +0000)]
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

25 years agoo Add a "pedentic" flag to the parser. This makes sudo warn in cases
Todd C. Miller [Thu, 12 Aug 1999 14:37:27 +0000 (14:37 +0000)]
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.

25 years agoBreak 'WORD' regexp def into HOSTNAME and USERNAME. These days a
Todd C. Miller [Thu, 12 Aug 1999 14:29:12 +0000 (14:29 +0000)]
Break 'WORD' regexp def into HOSTNAME and USERNAME.  These days a
username can contain just about anything so be very permissive.
Also drop the unused \. punctuation.

25 years agoo add a 'val' element to aliasinfo struct and move -> parse.h
Todd C. Miller [Mon, 9 Aug 1999 22:25:17 +0000 (22:25 +0000)]
o add a 'val' element to aliasinfo struct and move -> parse.h
o find_alias() now returns an aliasinfo * instead of boolean
o add_alias() now takes a value parameter to store in the aliasinfo.val
o The cmnd, hostspec, runasuser, and user rules now return:
1) positive match
0) negative match (due to '!')
-1) no match
This means setting $$ explicitly in all cases, which I should have done in
the first place.  It also means that we always store a value that is != -1
and when we see a '!' we can set *_matches to !rv if rv != -1.
The upshot of all of this is that '!' now works the way it should in
lists and some of the rules are more uniform and sensible.

25 years agoadd parse.h dependency
Todd C. Miller [Mon, 9 Aug 1999 22:17:27 +0000 (22:17 +0000)]
add parse.h dependency

25 years agokill unused *_matched macros
Todd C. Miller [Mon, 9 Aug 1999 22:17:05 +0000 (22:17 +0000)]
kill unused *_matched macros

25 years agoAllow a list of users as the first thing in a user spec, not just a
Todd C. Miller [Mon, 9 Aug 1999 14:35:53 +0000 (14:35 +0000)]
Allow a list of users as the first thing in a user spec, not just a
single entry.  This makes things more uniform, though it does allow
you to write user specs that are hard to read.

25 years agoparse.yacc
Todd C. Miller [Mon, 9 Aug 1999 14:34:23 +0000 (14:34 +0000)]
parse.yacc

25 years agoregen
Todd C. Miller [Mon, 9 Aug 1999 14:08:19 +0000 (14:08 +0000)]
regen

25 years agofix check for crypt() in libufc
Todd C. Miller [Mon, 9 Aug 1999 14:08:03 +0000 (14:08 +0000)]
fix check for crypt() in libufc

25 years agosudo-users list now exists
Todd C. Miller [Sat, 7 Aug 1999 18:03:19 +0000 (18:03 +0000)]
sudo-users list now exists

25 years agoUpdate to reality.
Todd C. Miller [Sat, 7 Aug 1999 11:46:39 +0000 (11:46 +0000)]
Update to reality.

25 years agoo Move lock_file() and touch() into fileops.c so visudo can use them
Todd C. Miller [Sat, 7 Aug 1999 09:59:43 +0000 (09:59 +0000)]
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.

25 years agoadd fcntl locking
Todd C. Miller [Fri, 6 Aug 1999 13:49:26 +0000 (13:49 +0000)]
add fcntl locking

25 years agoLock the log file.
Todd C. Miller [Fri, 6 Aug 1999 13:33:03 +0000 (13:33 +0000)]
Lock the log file.

25 years agoo /etc/stmp -> /etc/sudoers.tmp since solaris uses stmp as shadow temp file
Todd C. Miller [Fri, 6 Aug 1999 09:37:03 +0000 (09:37 +0000)]
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