]> granicus.if.org Git - sudo/log
sudo
25 years agoFix compilation problem when --with-logging=file was specified. This
Todd C. Miller [Mon, 1 Nov 1999 04:14:09 +0000 (04:14 +0000)]
Fix compilation problem when --with-logging=file was specified.  This
means that syslog is now required to build sudo but that should not
be a problem.  If it is it can be fixed trivially with a configure
check for syslog() or syslog.h.

25 years agoMake this work again for things like "sudo echo hi | more" where the tty
Todd C. Miller [Mon, 1 Nov 1999 04:00:57 +0000 (04:00 +0000)]
Make this work again for things like "sudo echo hi | more" where the tty
gets put into character at a time mode.  We read until we read end of
line or we run out of space (similar to fgets(3)).

25 years agochange ital to bold
Todd C. Miller [Wed, 20 Oct 1999 15:23:42 +0000 (15:23 +0000)]
change ital to bold

25 years agoupdate
Todd C. Miller [Wed, 20 Oct 1999 15:23:19 +0000 (15:23 +0000)]
update

25 years agoError out if syslog parameters are given without a value. For Ultrix or
Todd C. Miller [Sat, 16 Oct 1999 17:56:31 +0000 (17:56 +0000)]
Error out if syslog parameters are given without a value.  For Ultrix or
4.2BSD "syslog" is allowed without a value since there are no facilities
in the 4.2BSD syslog.

25 years agoIgnore the syslog facility for systems w/ old syslog like Ultrix.
Todd C. Miller [Fri, 15 Oct 1999 20:37:04 +0000 (20:37 +0000)]
Ignore the syslog facility for systems w/ old syslog like Ultrix.

25 years agopeople with "." early in their path can have problems running sudo from the build...
Todd C. Miller [Fri, 15 Oct 1999 16:51:08 +0000 (16:51 +0000)]
people with "." early in their path can have problems running sudo from the build dir ;-)

25 years agoRemove -r realm option
Todd C. Miller [Wed, 13 Oct 1999 04:18:41 +0000 (04:18 +0000)]
Remove -r realm option

25 years agoNew krb5 code from Frank Cusack <fcusack@iconnet.net>.
Todd C. Miller [Wed, 13 Oct 1999 02:34:55 +0000 (02:34 +0000)]
New krb5 code from Frank Cusack <fcusack@iconnet.net>.

25 years agoupdate to reality
Todd C. Miller [Wed, 13 Oct 1999 02:33:09 +0000 (02:33 +0000)]
update to reality

25 years agoinclude <auth.h> to get function prototypes.
Todd C. Miller [Tue, 12 Oct 1999 00:53:41 +0000 (00:53 +0000)]
include <auth.h> to get function prototypes.

25 years agodocument -L flag
Todd C. Miller [Tue, 12 Oct 1999 00:05:39 +0000 (00:05 +0000)]
document -L flag

25 years agoin set_perms(), always call setuid(0) before changing the ruid/euid
Todd C. Miller [Mon, 11 Oct 1999 23:42:57 +0000 (23:42 +0000)]
in set_perms(), always call setuid(0) before changing the ruid/euid
so we always know it will succeed.

25 years ago#undef T_FOO to avoid conflicts with system defines (like on ULTRIX).
Todd C. Miller [Mon, 11 Oct 1999 16:24:02 +0000 (16:24 +0000)]
#undef T_FOO to avoid conflicts with system defines (like on ULTRIX).

25 years agoDocuement "Defaults" lines in /etc/sudoers. Still needs some fleshing
Todd C. Miller [Mon, 11 Oct 1999 15:55:11 +0000 (15:55 +0000)]
Docuement "Defaults" lines in /etc/sudoers.  Still needs some fleshing
out but this is a start.

25 years agouse strtol, not strtoul since not everyone has not strtoul
Todd C. Miller [Sun, 10 Oct 1999 21:22:10 +0000 (21:22 +0000)]
use strtol, not strtoul since not everyone has not strtoul

25 years agouse strtol, not strtoul since not everyone has not strtoul
Todd C. Miller [Sun, 10 Oct 1999 21:21:22 +0000 (21:21 +0000)]
use strtol, not strtoul since not everyone has not strtoul

25 years agolast {WORD} rule should only apply in the INITIAL state
Todd C. Miller [Sun, 10 Oct 1999 19:01:30 +0000 (19:01 +0000)]
last {WORD} rule should only apply in the INITIAL state

25 years agoo Add support for escaped characters in the WORD macro
Todd C. Miller [Sun, 10 Oct 1999 18:38:40 +0000 (18:38 +0000)]
o Add support for escaped characters in the WORD macro
o Modify fill() to squash escape chars

25 years agoo Add T_PATH flag to allow simple sanity checks for default values that
Todd C. Miller [Sun, 10 Oct 1999 17:56:02 +0000 (17:56 +0000)]
o Add T_PATH flag to allow simple sanity checks for default values that
  are supposed to be pathnames.
o Fix a duplicate free when visudo finds an error.

25 years agomail_if_foo -> mail_foo
Todd C. Miller [Sat, 9 Oct 1999 05:01:48 +0000 (05:01 +0000)]
mail_if_foo -> mail_foo

25 years agoo Add requiretty option
Todd C. Miller [Fri, 8 Oct 1999 01:12:50 +0000 (01:12 +0000)]
o Add requiretty option
o Move O_NOCTTY to compat.h

25 years agoThe exit() in log_error() was mistakenly removed in a previous version.
Todd C. Miller [Fri, 8 Oct 1999 01:12:02 +0000 (01:12 +0000)]
The exit() in log_error() was mistakenly removed in a previous version.
Put it back...

25 years agoo Change defaults stuff to put the value right in the struct.
Todd C. Miller [Thu, 7 Oct 1999 21:21:08 +0000 (21:21 +0000)]
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

25 years agoadd O_NOCTTY when opening /dev/tty just in case
Todd C. Miller [Thu, 7 Oct 1999 21:13:45 +0000 (21:13 +0000)]
add O_NOCTTY when opening /dev/tty just in case

25 years agocleanup function no longer takes a status arg
Todd C. Miller [Wed, 6 Oct 1999 04:48:47 +0000 (04:48 +0000)]
cleanup function no longer takes a status arg

25 years agothe the
Todd C. Miller [Wed, 6 Oct 1999 04:48:15 +0000 (04:48 +0000)]
the the

25 years agoUse strftime() instead of ctime() if it is available.
Todd C. Miller [Wed, 15 Sep 1999 09:15:33 +0000 (09:15 +0000)]
Use strftime() instead of ctime() if it is available.

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.