]> granicus.if.org Git - sudo/log
sudo
24 years agoCall clean_env very early in main() for paranoia's sake. Idea from
Todd C. Miller [Fri, 12 May 2000 20:55:35 +0000 (20:55 +0000)]
Call clean_env very early in main() for paranoia's sake.  Idea from
Marc Esipovich.

24 years agoUpdate proto for evasprintf and easprintf
Todd C. Miller [Wed, 10 May 2000 05:11:36 +0000 (05:11 +0000)]
Update proto for evasprintf and easprintf

24 years agoMake easprintf() and evasprintf() return an int.
Todd C. Miller [Wed, 10 May 2000 05:10:33 +0000 (05:10 +0000)]
Make easprintf() and evasprintf() return an int.

24 years agoIf the targetpw flag is set, use target username as part of the timestamp path.
Todd C. Miller [Wed, 10 May 2000 04:56:28 +0000 (04:56 +0000)]
If the targetpw flag is set, use target username as part of the timestamp path.
If tty tickets are in effect cat the tty and the target username with a
':' as the separator.

24 years agoBackout part of last change; setting PAM_USER to the invoking user
Todd C. Miller [Tue, 9 May 2000 16:05:41 +0000 (16:05 +0000)]
Backout part of last change; setting PAM_USER to the invoking user
breaks things like targetpw.

24 years agoset tty and username via pam_set_item
Todd C. Miller [Tue, 9 May 2000 15:52:31 +0000 (15:52 +0000)]
set tty and username via pam_set_item

24 years agoFix root, runas, and target authentication for non-passwd file auth
Todd C. Miller [Tue, 9 May 2000 15:42:38 +0000 (15:42 +0000)]
Fix root, runas, and target authentication for non-passwd file auth
methods.

24 years agoUse B<-Z> not C<-Z> for command line flags in all places. This is more
Todd C. Miller [Sat, 22 Apr 2000 18:15:15 +0000 (18:15 +0000)]
Use B<-Z> not C<-Z> for command line flags in all places.  This is more
consistent and works around a bug in Pod::Man.

24 years agoFix an occurence of 'semicolon' that should be 'colon'
Todd C. Miller [Sat, 22 Apr 2000 17:59:26 +0000 (17:59 +0000)]
Fix an occurence of 'semicolon' that should be 'colon'

24 years agoFix --with-badpri help line
Todd C. Miller [Wed, 19 Apr 2000 19:30:28 +0000 (19:30 +0000)]
Fix --with-badpri help line

24 years agoBracket calls to syslog with an openlog() and closelog() since some
Todd C. Miller [Mon, 17 Apr 2000 18:01:14 +0000 (18:01 +0000)]
Bracket calls to syslog with an openlog() and closelog() since some
authentication methods (like PAM) may do their own logging via
syslog.  Since we don't use syslog much (usually just once per
session) this doesn't really incur a performance penalty.
It also Fixes a SEGV with pam_kafs.

24 years agoFix -H flag. runas_homedir is only valid after set_perms(PERM_RUNAS, mode)
Todd C. Miller [Sat, 15 Apr 2000 20:32:59 +0000 (20:32 +0000)]
Fix -H flag.  runas_homedir is only valid after set_perms(PERM_RUNAS, mode)

24 years agoClarify the fact that insults are not enabled just by including
Todd C. Miller [Wed, 12 Apr 2000 22:56:44 +0000 (22:56 +0000)]
Clarify the fact that insults are not enabled just by including
them in the binary.

24 years agoRegenerated with perl 5.6.0 pod2man
Todd C. Miller [Fri, 7 Apr 2000 14:39:23 +0000 (14:39 +0000)]
Regenerated with perl 5.6.0 pod2man

24 years agoGive date string to pod2man since its default is ugly and it ain't got
Todd C. Miller [Fri, 7 Apr 2000 14:38:07 +0000 (14:38 +0000)]
Give date string to pod2man since its default is ugly and it ain't got
no alibi.

24 years agoDo section substitution on the output of pod2man and remove hack needed
Todd C. Miller [Fri, 7 Apr 2000 14:27:31 +0000 (14:27 +0000)]
Do section substitution on the output of pod2man and remove hack needed
for old pod2man.

24 years agoPut back real man sections, we will do the substitution later.
Todd C. Miller [Fri, 7 Apr 2000 14:26:23 +0000 (14:26 +0000)]
Put back real man sections, we will do the substitution later.

24 years agoDon't bother checking for the path to vi if user specified --with-editor
Todd C. Miller [Sun, 2 Apr 2000 15:44:06 +0000 (15:44 +0000)]
Don't bother checking for the path to vi if user specified --with-editor

24 years agoVisudo now does its own fork/exec instead of calling system(3).
Todd C. Miller [Sat, 1 Apr 2000 22:25:41 +0000 (22:25 +0000)]
Visudo now does its own fork/exec instead of calling system(3).

24 years agoVisudo now checks for the existence of an editor and gives a sensible
Todd C. Miller [Sat, 1 Apr 2000 21:23:28 +0000 (21:23 +0000)]
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.

24 years agoClear up confusion wrt sudo's return value.
Todd C. Miller [Sat, 1 Apr 2000 21:22:11 +0000 (21:22 +0000)]
Clear up confusion wrt sudo's return value.

24 years agoStrip sudo and visudo for bindist target
Todd C. Miller [Mon, 27 Mar 2000 17:08:46 +0000 (17:08 +0000)]
Strip sudo and visudo for bindist target

24 years agoUse @mansectsu@ and @mansectform@ in the man page bodies as well. SUDO_1_6_3
Todd C. Miller [Mon, 27 Mar 2000 03:26:24 +0000 (03:26 +0000)]
Use @mansectsu@ and @mansectform@ in the man page bodies as well.

24 years agoTypo: @sysconf@ -> @sysconfdir@
Todd C. Miller [Mon, 27 Mar 2000 03:07:35 +0000 (03:07 +0000)]
Typo: @sysconf@ -> @sysconfdir@

24 years ago'make dist' should not cause any files to be modified so remove
Todd C. Miller [Mon, 27 Mar 2000 02:57:52 +0000 (02:57 +0000)]
'make dist' should not cause any files to be modified so remove
its dependencies.

24 years agoWhoops, forgot to add release marker
Todd C. Miller [Mon, 27 Mar 2000 02:43:45 +0000 (02:43 +0000)]
Whoops, forgot to add release marker

24 years agoFinal change for 1.6.3 (or so I hope)
Todd C. Miller [Sun, 26 Mar 2000 16:57:31 +0000 (16:57 +0000)]
Final change for 1.6.3 (or so I hope)

24 years agoUse SYSV man sections since BSD systems will have nroff...
Todd C. Miller [Sun, 26 Mar 2000 16:57:04 +0000 (16:57 +0000)]
Use SYSV man sections since BSD systems will have nroff...

24 years agoWhen checking to see if the host/user matches in a defaults spec, check
Todd C. Miller [Fri, 24 Mar 2000 23:58:59 +0000 (23:58 +0000)]
When checking to see if the host/user matches in a defaults spec, check
against TRUE, not just non-zero since it might be -1.

24 years agoOSF/1 puts file formats in section 4, not 5.
Todd C. Miller [Fri, 24 Mar 2000 20:14:05 +0000 (20:14 +0000)]
OSF/1 puts file formats in section 4, not 5.

24 years agoMake login class support work on BSD/OS
Todd C. Miller [Fri, 24 Mar 2000 20:13:12 +0000 (20:13 +0000)]
Make login class support work on BSD/OS

24 years agoUpdate for 1.6.3
Todd C. Miller [Fri, 24 Mar 2000 01:24:48 +0000 (01:24 +0000)]
Update for 1.6.3

24 years agoIf there is no inet_addr but there *is* an __inet_addr that's ok since
Todd C. Miller [Fri, 24 Mar 2000 01:23:05 +0000 (01:23 +0000)]
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.

24 years agoDon't use shlicc for BSD/OS 4.x
Todd C. Miller [Fri, 24 Mar 2000 00:50:30 +0000 (00:50 +0000)]
Don't use shlicc for BSD/OS 4.x

24 years ago*.man lives in cwd, *.cat lives in $(srcdir), add a @mansrcdir@
Todd C. Miller [Fri, 24 Mar 2000 00:40:55 +0000 (00:40 +0000)]
*.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'.

24 years agoset_loginclass() should be static like the proto says
Todd C. Miller [Fri, 24 Mar 2000 00:16:41 +0000 (00:16 +0000)]
set_loginclass() should be static like the proto says

24 years agoAdd #ifdef __STDC__ around the rangematch function header to avoid
Todd C. Miller [Thu, 23 Mar 2000 19:14:03 +0000 (19:14 +0000)]
Add #ifdef __STDC__ around the rangematch function header to avoid
promotion of test to int, thus violating the prototype.  Gcc handles
this gracefully but more std ANSI compilers will complain.

24 years agoPull in newer fnmatch(3) that supports FNM_CASEFOLD
Todd C. Miller [Thu, 23 Mar 2000 15:11:56 +0000 (15:11 +0000)]
Pull in newer fnmatch(3) that supports FNM_CASEFOLD

24 years agoPull in newer fnmatch(3) that supports FNM_CASEFOLD
Todd C. Miller [Thu, 23 Mar 2000 15:11:50 +0000 (15:11 +0000)]
Pull in newer fnmatch(3) that supports FNM_CASEFOLD
Check for FNM_CASEFOLD in configure

24 years agoupdate for 1.6.3
Todd C. Miller [Thu, 23 Mar 2000 04:41:29 +0000 (04:41 +0000)]
update for 1.6.3

24 years agoFully qualified hosts w/ wildcards were not matching the FQHOST token type.
Todd C. Miller [Thu, 23 Mar 2000 04:38:22 +0000 (04:38 +0000)]
Fully qualified hosts w/ wildcards were not matching the FQHOST token type.
There's really no need for a separate token for fully-qualified vs.
unqualified anymore so FQHOST is now history and hostname_matches
now decides which hostname (short or long) to check based on whether
or not the pattern contains a '.'.

24 years agoFully qualified hosts w/ wildcards were not matching the FQHOST token type.
Todd C. Miller [Thu, 23 Mar 2000 04:38:20 +0000 (04:38 +0000)]
Fully qualified hosts w/ wildcards were not matching the FQHOST token type.
There's really no need for a separate token for fully-qualified vs.
unqualified anymore so FQHOST is now history and hostname_matches
now decides which hostname (short or long) to check based on whether
or not the pattern contains a '.'.

24 years agoFully qualified hosts w/ wildcards were not matching the FQHOST token type.
Todd C. Miller [Thu, 23 Mar 2000 04:38:20 +0000 (04:38 +0000)]
Fully qualified hosts w/ wildcards were not matching the FQHOST token type.
There's really no need for a separate token for fully-qualified vs.
unqualified anymore so FQHOST is now history and hostname_matches
now decides which hostname (short or long) to check based on whether
or not the pattern contains a '.'.

24 years agoAdd support for wildcards in the hostname.
Todd C. Miller [Thu, 23 Mar 2000 04:09:53 +0000 (04:09 +0000)]
Add support for wildcards in the hostname.

24 years agoAdd targets for *.man.in, using config.status to generate *.man from *.man.in
Todd C. Miller [Thu, 23 Mar 2000 03:50:54 +0000 (03:50 +0000)]
Add targets for *.man.in, using config.status to generate *.man from *.man.in

24 years agoDocument set_logname option and enbolden refs to sudo and visudo.
Todd C. Miller [Thu, 23 Mar 2000 03:20:57 +0000 (03:20 +0000)]
Document set_logname option and enbolden refs to sudo and visudo.

24 years agoAdd FreeBSD login.conf support (untested on BSD/OS) based on a patch from
Todd C. Miller [Thu, 23 Mar 2000 00:35:59 +0000 (00:35 +0000)]
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.

24 years agoBetter fix for handling HP-UX aging info.
Todd C. Miller [Thu, 23 Mar 2000 00:27:41 +0000 (00:27 +0000)]
Better fix for handling HP-UX aging info.

24 years agoAdd support for set_logname run-time default
Todd C. Miller [Thu, 23 Mar 2000 00:20:56 +0000 (00:20 +0000)]
Add support for set_logname run-time default

24 years agoconfigure does substitution on these to produce *.man
Todd C. Miller [Thu, 23 Mar 2000 00:17:30 +0000 (00:17 +0000)]
configure does substitution on these to produce *.man

24 years agoThese files now get generated from *.man.in at configure time.
Todd C. Miller [Thu, 23 Mar 2000 00:16:46 +0000 (00:16 +0000)]
These files now get generated from *.man.in at configure time.

24 years agoAdd set_logname option so users can turn off setting of LOGNAME/USER
Todd C. Miller [Wed, 22 Mar 2000 23:40:09 +0000 (23:40 +0000)]
Add set_logname option so users can turn off setting of LOGNAME/USER
environment variables.

24 years agokill register
Todd C. Miller [Wed, 22 Mar 2000 15:53:09 +0000 (15:53 +0000)]
kill register

24 years agoHP-UX adds extra info at the end for password aging so when comparing
Todd C. Miller [Mon, 13 Mar 2000 20:52:25 +0000 (20:52 +0000)]
HP-UX adds extra info at the end for password aging so when comparing
the result of crypt to pw_passwd we only compare the first len(epass)
bytes *unless* the user entered an empty string for a password.

24 years agoGet rid of grandchild hack, it was causing problems and there is really
Todd C. Miller [Mon, 13 Mar 2000 16:05:05 +0000 (16:05 +0000)]
Get rid of grandchild hack, it was causing problems and there is really
no need for it.  This fixes a bug where we spin eating up CPU when the
user runs a long-running process like a shell.

24 years agoUser can always specify a login class if he/she is already root.
Todd C. Miller [Tue, 7 Mar 2000 19:26:02 +0000 (19:26 +0000)]
User can always specify a login class if he/she is already root.

24 years agoFreeBSD login class (login.conf) support.
Todd C. Miller [Tue, 7 Mar 2000 04:29:46 +0000 (04:29 +0000)]
FreeBSD login class (login.conf) support.

24 years agoHAVE_SECUREWARE -> HAVE_GETPRPWNAM; fixes secureware support
Todd C. Miller [Mon, 6 Mar 2000 19:42:21 +0000 (19:42 +0000)]
HAVE_SECUREWARE -> HAVE_GETPRPWNAM; fixes secureware support

24 years agoTruncate unencrypted password to 8 chars if encrypted password is exactly
Todd C. Miller [Fri, 3 Mar 2000 23:04:50 +0000 (23:04 +0000)]
Truncate unencrypted password to 8 chars if encrypted password is exactly
13 characters (indicateing standard a DES password).  Many versions
of crypt() do this for you, but not all (like HP-UX's).

24 years agoMention that gcc on dynix may have problems
Todd C. Miller [Thu, 2 Mar 2000 02:01:16 +0000 (02:01 +0000)]
Mention that gcc on dynix may have problems

25 years agoLink visudo with NET_LIBS since we now call syslog via defaults.c
Todd C. Miller [Tue, 29 Feb 2000 22:46:32 +0000 (22:46 +0000)]
Link visudo with NET_LIBS since we now call syslog via defaults.c

25 years agoUse Argv[0] as the first arg to openlog() since visudo uses this too.
Todd C. Miller [Tue, 29 Feb 2000 22:41:40 +0000 (22:41 +0000)]
Use Argv[0] as the first arg to openlog() since visudo uses this too.

25 years agoStash coredumpsize resource limit and retsore it before the exec()
Todd C. Miller [Mon, 28 Feb 2000 23:58:17 +0000 (23:58 +0000)]
Stash coredumpsize resource limit and retsore it before the exec()
Otherwise the child ends up with a coredumpsize of 0.

25 years agodocument -S flag
Todd C. Miller [Sun, 27 Feb 2000 03:56:41 +0000 (03:56 +0000)]
document -S flag

25 years agofix usage string
Todd C. Miller [Sun, 27 Feb 2000 03:54:20 +0000 (03:54 +0000)]
fix usage string

25 years agoAdded -S flag (read passwd from stdin) and tgetpass_flags global
Todd C. Miller [Sun, 27 Feb 2000 03:49:07 +0000 (03:49 +0000)]
Added -S flag (read passwd from stdin) and tgetpass_flags global
that holds flags to be passed in to tgetpass().  Change echo_off
param to tgetpass() into a flags field.  There are currently 2
possible flags for tgetpass(): TGP_ECHO and TGP_STDIN.  In tgetpass(),
abstract the echo set/clear via macros and if (flags & TGP_ECHO)
but echo is not set on the terminal, but sure to set it.

25 years agoFixed a bug that caused an infinite loop when the password timeout was disabled.
Todd C. Miller [Sun, 27 Feb 2000 03:11:23 +0000 (03:11 +0000)]
Fixed a bug that caused an infinite loop when the password timeout was disabled.

25 years agoAdd rootpw, runaspw, and targetpw options.
Todd C. Miller [Fri, 18 Feb 2000 17:56:28 +0000 (17:56 +0000)]
Add rootpw, runaspw, and targetpw options.

25 years agoenveditor -> env_editor
Todd C. Miller [Fri, 18 Feb 2000 17:11:43 +0000 (17:11 +0000)]
enveditor -> env_editor

25 years agocrank versino to 1.6.3
Todd C. Miller [Wed, 16 Feb 2000 00:07:28 +0000 (00:07 +0000)]
crank versino to 1.6.3

25 years agoAdd 'editor' and 'enveditor' sudoers defaults and make visudo honor them.
Todd C. Miller [Wed, 16 Feb 2000 00:03:44 +0000 (00:03 +0000)]
Add 'editor' and 'enveditor' sudoers defaults and make visudo honor them.
This means that visudo will now parse the sudoers file *before* it is
edited so a bogus sudoers file will cause a warning to go to stderr.
Also, visudo checks the variables once--it does not check them after
each editor run since that could be confusing.

25 years ago1.6.2 -> 1.6.2p1
Todd C. Miller [Tue, 15 Feb 2000 23:49:48 +0000 (23:49 +0000)]
1.6.2 -> 1.6.2p1

25 years agoMove user_is_exempt prototype into sudo.h
Todd C. Miller [Tue, 15 Feb 2000 23:36:04 +0000 (23:36 +0000)]
Move user_is_exempt prototype into sudo.h

25 years agoFix thinko, some && should have been || in the last commit
Todd C. Miller [Sun, 13 Feb 2000 18:38:14 +0000 (18:38 +0000)]
Fix thinko, some && should have been || in the last commit

25 years agoDon't initialized Makefile variables to be NULL since the user may
Todd C. Miller [Sun, 13 Feb 2000 18:28:04 +0000 (18:28 +0000)]
Don't initialized Makefile variables to be NULL since the user may
want to import variables from their environment.

25 years agotypo
Todd C. Miller [Fri, 4 Feb 2000 02:09:02 +0000 (02:09 +0000)]
typo

25 years agofix a yacc (skeleton.c) warning
Todd C. Miller [Fri, 28 Jan 2000 01:41:33 +0000 (01:41 +0000)]
fix a yacc (skeleton.c) warning

25 years agoMake pam work on HP-UX 11.0;jaearick@colby.edu
Todd C. Miller [Thu, 27 Jan 2000 20:01:37 +0000 (20:01 +0000)]
Make pam work on HP-UX 11.0;jaearick@colby.edu

25 years agorecent changes; prepare for 1.6.2p1
Todd C. Miller [Thu, 27 Jan 2000 20:01:35 +0000 (20:01 +0000)]
recent changes; prepare for 1.6.2p1

25 years agoDon't apply SECURE_PATH if user is example; jmknoble@pobox.com
Todd C. Miller [Thu, 27 Jan 2000 04:31:58 +0000 (04:31 +0000)]
Don't apply SECURE_PATH if user is example; jmknoble@pobox.com

25 years agoRegen with yacc that has a memory leak plugged.
Todd C. Miller [Wed, 26 Jan 2000 23:14:18 +0000 (23:14 +0000)]
Regen with yacc that has a memory leak plugged.

25 years agoExpanded docs on sudoers 'defaults' options based on INSTALL file info.
Todd C. Miller [Wed, 26 Jan 2000 21:21:28 +0000 (21:21 +0000)]
Expanded docs on sudoers 'defaults' options based on INSTALL file info.

25 years agoFix some while lies
Todd C. Miller [Wed, 26 Jan 2000 21:21:00 +0000 (21:21 +0000)]
Fix some while lies

25 years agoWhen making a bindist, link FAQ to TROUBLESHOOTING instead of copying.
Todd C. Miller [Mon, 24 Jan 2000 15:48:46 +0000 (15:48 +0000)]
When making a bindist, link FAQ to TROUBLESHOOTING instead of copying.

25 years agoAdd netgroup caveat SUDO_1_6_2
Todd C. Miller [Mon, 24 Jan 2000 03:57:49 +0000 (03:57 +0000)]
Add netgroup caveat

25 years agoLast minute updates
Todd C. Miller [Mon, 24 Jan 2000 03:42:14 +0000 (03:42 +0000)]
Last minute updates

25 years agoPAM entry
Todd C. Miller [Mon, 24 Jan 2000 03:26:22 +0000 (03:26 +0000)]
PAM entry

25 years agocorrect a comment
Todd C. Miller [Mon, 24 Jan 2000 03:23:40 +0000 (03:23 +0000)]
correct a comment

25 years agoupdate for 1.6.2
Todd C. Miller [Mon, 24 Jan 2000 03:03:04 +0000 (03:03 +0000)]
update for 1.6.2

25 years agoBetter detection of PAM errors and fix custom prompts with PAM.
Todd C. Miller [Mon, 24 Jan 2000 02:59:12 +0000 (02:59 +0000)]
Better detection of PAM errors and fix custom prompts with PAM.
Based on patches from "Cloyce D. Spradling" <cloyce@headgear.org>

25 years agoCast ULONG_MAX to unsigned long long when comparing to an unsigned long long
Todd C. Miller [Thu, 20 Jan 2000 16:15:41 +0000 (16:15 +0000)]
Cast ULONG_MAX to unsigned long long when comparing to an unsigned long long
value.

25 years agoFix sudoers locking in visudo. We now lock the sudoers file itself, not
Todd C. Miller [Wed, 19 Jan 2000 19:07:24 +0000 (19:07 +0000)]
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.

25 years agoDon't need test for ftruncate() any more.
Todd C. Miller [Wed, 19 Jan 2000 18:37:51 +0000 (18:37 +0000)]
Don't need test for ftruncate() any more.

25 years agoAdd a test for the -Aa flag w/ HP-UX's cc. Fixes compilation with the
Todd C. Miller [Wed, 19 Jan 2000 02:23:48 +0000 (02:23 +0000)]
Add a test for the -Aa flag w/ HP-UX's cc.  Fixes compilation with the
unbundled HP-UX cc.

25 years ago"a a" -> "a"; Aaron Campbell <aaron@cs.dal.ca>
Todd C. Miller [Tue, 18 Jan 2000 22:00:40 +0000 (22:00 +0000)]
"a a" -> "a"; Aaron Campbell <aaron@cs.dal.ca>

25 years agoupdate copyright year on changed files
Todd C. Miller [Mon, 17 Jan 2000 23:46:26 +0000 (23:46 +0000)]
update copyright year on changed files

25 years agoupdates
Todd C. Miller [Mon, 17 Jan 2000 23:45:37 +0000 (23:45 +0000)]
updates

25 years agoaix fix
Todd C. Miller [Mon, 17 Jan 2000 23:45:28 +0000 (23:45 +0000)]
aix fix

25 years agoCrank version to 1.6.2
Todd C. Miller [Mon, 17 Jan 2000 23:42:19 +0000 (23:42 +0000)]
Crank version to 1.6.2

25 years agoCrank version to 1.6.2
Todd C. Miller [Mon, 17 Jan 2000 23:11:26 +0000 (23:11 +0000)]
Crank version to 1.6.2