]> granicus.if.org Git - sudo/log
sudo
17 years agoFix some spacing in "sudo -l" and add a comment about some bogosity
Todd C. Miller [Wed, 15 Aug 2007 17:49:52 +0000 (17:49 +0000)]
Fix some spacing in "sudo -l" and add a comment about some bogosity
in the line wrapping.

17 years agoregen
Todd C. Miller [Wed, 15 Aug 2007 15:21:14 +0000 (15:21 +0000)]
regen

17 years agoRemove monitor support until there is a versino of systrace that
Todd C. Miller [Wed, 15 Aug 2007 15:20:01 +0000 (15:20 +0000)]
Remove monitor support until there is a versino of systrace that
uses a lookaside buffer (or we have a better mechanism to use).

17 years agouse getaddrinfo() instead of gethostbyname() if it is available
Todd C. Miller [Wed, 15 Aug 2007 13:22:06 +0000 (13:22 +0000)]
use getaddrinfo() instead of gethostbyname() if it is available

17 years agoDeal with OSes where sizeof(gid_t) < sizeof(int).
Todd C. Miller [Tue, 14 Aug 2007 19:27:27 +0000 (19:27 +0000)]
Deal with OSes where sizeof(gid_t) < sizeof(int).

17 years agorepair non-getifaddrs() code after ipv6 integration
Todd C. Miller [Tue, 14 Aug 2007 15:19:13 +0000 (15:19 +0000)]
repair non-getifaddrs() code after ipv6 integration

17 years agoIf we can open sudoers but fail to read the first byte, close the
Todd C. Miller [Tue, 14 Aug 2007 14:04:41 +0000 (14:04 +0000)]
If we can open sudoers but fail to read the first byte, close the
file stream before trying again.

17 years agoregen
Todd C. Miller [Mon, 13 Aug 2007 16:34:21 +0000 (16:34 +0000)]
regen

17 years agoAdd IPv6 support; adapted from patches by YOSHIFUJI Hideaki
Todd C. Miller [Mon, 13 Aug 2007 16:29:25 +0000 (16:29 +0000)]
Add IPv6 support; adapted from patches by YOSHIFUJI Hideaki

17 years agoAdd some missing markup
Todd C. Miller [Mon, 13 Aug 2007 16:23:14 +0000 (16:23 +0000)]
Add some missing markup
Update copyright

17 years agofix sudo_noexec extension which got broken in the libtool update
Todd C. Miller [Sun, 12 Aug 2007 22:55:37 +0000 (22:55 +0000)]
fix sudo_noexec extension which got broken in the libtool update

17 years agoexplicitly specify -Tascii to nroff
Todd C. Miller [Fri, 10 Aug 2007 14:41:59 +0000 (14:41 +0000)]
explicitly specify -Tascii to nroff

17 years agoremove an ANSI-ism that crept in
Todd C. Miller [Wed, 8 Aug 2007 20:07:33 +0000 (20:07 +0000)]
remove an ANSI-ism that crept in

17 years agoAdjust list indents
Todd C. Miller [Tue, 7 Aug 2007 00:37:44 +0000 (00:37 +0000)]
Adjust list indents
Prevent -- from being turned into an em dash
Use a list for the environment instead of a literal paragraph

17 years agoUse a list for the environment instead of an indented literal paragraph.
Todd C. Miller [Tue, 7 Aug 2007 00:36:13 +0000 (00:36 +0000)]
Use a list for the environment instead of an indented literal paragraph.

17 years agoAdjust list indentation
Todd C. Miller [Tue, 7 Aug 2007 00:33:04 +0000 (00:33 +0000)]
Adjust list indentation

17 years agoadd =head3
Todd C. Miller [Tue, 7 Aug 2007 00:31:40 +0000 (00:31 +0000)]
add =head3

17 years agomention that when specifying a uid for the -u option the shell may require that the...
Todd C. Miller [Mon, 6 Aug 2007 14:24:07 +0000 (14:24 +0000)]
mention that when specifying a uid for the -u option the shell may require that the # be escaped

17 years agoFix off by one in group matching.
Todd C. Miller [Thu, 2 Aug 2007 02:08:39 +0000 (02:08 +0000)]
Fix off by one in group matching.

17 years agoFix typo: PYTHONINSPEC should be PYTHONINSPECT. From David Krause.
Todd C. Miller [Tue, 31 Jul 2007 18:04:32 +0000 (18:04 +0000)]
Fix typo: PYTHONINSPEC should be PYTHONINSPECT.  From David Krause.

17 years agoAdd missing define of HAVE_GSS_KRB5_CCACHE_NAME for the
Todd C. Miller [Mon, 30 Jul 2007 14:45:28 +0000 (14:45 +0000)]
Add missing define of HAVE_GSS_KRB5_CCACHE_NAME for the
-lgssapi_krb5 case.

17 years agoFix link tests such that new gcc doesn't optimize away the test.
Todd C. Miller [Mon, 30 Jul 2007 13:29:06 +0000 (13:29 +0000)]
Fix link tests such that new gcc doesn't optimize away the test.

17 years agoadd missing over/back
Todd C. Miller [Sun, 29 Jul 2007 23:21:37 +0000 (23:21 +0000)]
add missing over/back

17 years agoChange FILES section to use =item
Todd C. Miller [Sun, 29 Jul 2007 23:09:23 +0000 (23:09 +0000)]
Change FILES section to use =item

17 years agoAdd back allocation of the env struct in rebuild_env but save
Todd C. Miller [Sun, 29 Jul 2007 22:32:47 +0000 (22:32 +0000)]
Add back allocation of the env struct in rebuild_env but save
a copy of the old pointer and free it before returning.

17 years agoDon't init the private environment in rebuild_env() since it may
Todd C. Miller [Sun, 29 Jul 2007 20:09:18 +0000 (20:09 +0000)]
Don't init the private environment in rebuild_env() since it may
have already been done implicitly sudo_setenv/sudo_unsetenv.

Multiply length by sizeof(char *) in memcpy/memmove when copying
the environment so we copy the full thing.

Add missing set of parens so we deref the right pointer in
sudo_unsetenv when searching for a matching variable.

17 years agoUse file markup for paths in the FILES section
Todd C. Miller [Thu, 26 Jul 2007 20:35:53 +0000 (20:35 +0000)]
Use  file markup for paths in the FILES section

17 years agoDon't capitalize sudo/visudo
Todd C. Miller [Thu, 26 Jul 2007 14:04:44 +0000 (14:04 +0000)]
Don't capitalize sudo/visudo

17 years agoSort sudoers options; based on a diff from Igor Sobrado.
Todd C. Miller [Thu, 26 Jul 2007 11:28:45 +0000 (11:28 +0000)]
Sort sudoers options; based on a diff from Igor Sobrado.

17 years agoUse 8 and 5 instead of @mansectsu@ and @mansectform@ since the latter
Todd C. Miller [Wed, 25 Jul 2007 20:19:37 +0000 (20:19 +0000)]
Use 8 and 5 instead of @mansectsu@ and @mansectform@ since the latter
confuses pod2man.  The Makefile rules for the .man.in file will add
@mansectsu@ and @mansectform@ back in after pod2man is done anyway.

17 years agoMove license info to pod format
Todd C. Miller [Sun, 22 Jul 2007 23:09:38 +0000 (23:09 +0000)]
Move license info to pod format

17 years agoSubstitute value of path_info into sudoers man page.
Todd C. Miller [Sun, 22 Jul 2007 22:43:28 +0000 (22:43 +0000)]
Substitute value of path_info into sudoers man page.

17 years agoremove features that were back-ported to 1.6.9
Todd C. Miller [Sun, 22 Jul 2007 20:40:12 +0000 (20:40 +0000)]
remove features that were back-ported to 1.6.9

17 years agoSort SYNOPSIS and sync usage. From Igor Sobrado.
Todd C. Miller [Sun, 22 Jul 2007 19:20:42 +0000 (19:20 +0000)]
Sort SYNOPSIS and sync usage.  From Igor Sobrado.

17 years agoOnly need sudo_setenv/sudo_unsetenv if we are going to use
Todd C. Miller [Sun, 22 Jul 2007 19:19:39 +0000 (19:19 +0000)]
Only need sudo_setenv/sudo_unsetenv if we are going to use
ldap_sasl_interactive_bind_s() but don't have gss_krb5_ccache_name().

17 years agorebuild without branch info
Todd C. Miller [Sun, 22 Jul 2007 12:23:47 +0000 (12:23 +0000)]
rebuild without branch info

17 years agoAdd ChangeLog target
Todd C. Miller [Sun, 22 Jul 2007 12:23:33 +0000 (12:23 +0000)]
Add ChangeLog target

17 years agoRun cleanup code if the user hits ^C at the password prompt.
Todd C. Miller [Sun, 22 Jul 2007 12:14:18 +0000 (12:14 +0000)]
Run cleanup code if the user hits ^C at the password prompt.

17 years agoSome versions of pam_lastlog have a bug that will cause a crash if
Todd C. Miller [Sun, 22 Jul 2007 12:13:07 +0000 (12:13 +0000)]
Some versions of pam_lastlog have a bug that will cause a crash if
PAM_TTY is not set so if there is no tty, set PAM_TTY to the empty
string.

17 years agoChageLog not Changelog
Todd C. Miller [Fri, 20 Jul 2007 13:32:38 +0000 (13:32 +0000)]
ChageLog not Changelog

17 years agosync
Todd C. Miller [Fri, 20 Jul 2007 13:31:24 +0000 (13:31 +0000)]
sync

17 years agoCHANGE -> Changelog
Todd C. Miller [Fri, 20 Jul 2007 13:29:21 +0000 (13:29 +0000)]
CHANGE -> Changelog

17 years agosync
Todd C. Miller [Fri, 20 Jul 2007 00:23:51 +0000 (00:23 +0000)]
sync

17 years agoAdd configure hooks for gss_krb5_ccache_name() and the gssapi headers.
Todd C. Miller [Thu, 19 Jul 2007 23:53:21 +0000 (23:53 +0000)]
Add configure hooks for gss_krb5_ccache_name() and the gssapi headers.

17 years agorebuild_env() and insert_env_vars() no longer return environment pointer,
Todd C. Miller [Wed, 18 Jul 2007 16:57:31 +0000 (16:57 +0000)]
rebuild_env() and insert_env_vars() no longer return environment pointer,
they set environ directly.

No longer need to pass around an envp pointer since we just operate
on environ now.

Add dosync argument to insert_env() that indicates whether it should
reset environ when realloc()ing env.envp.

Use an initial size of 128 for the environment.

17 years agoSplit sudo_setenv() into an external version and a version only for
Todd C. Miller [Wed, 18 Jul 2007 16:41:21 +0000 (16:41 +0000)]
Split sudo_setenv() into an external version and a version only for
use by rebuild_env().

17 years agoAdd support for using gss_krb5_ccache_name() instead of setting
Todd C. Miller [Mon, 16 Jul 2007 23:40:54 +0000 (23:40 +0000)]
Add support for using gss_krb5_ccache_name() instead of setting
KRB5CCNAME.  Also use sudo_unsetenv() in the non-gss_krb5_ccache_name()
case if there was no KRB5CCNAME in the original environment.
TODO: configure setup for gss_krb5_ccache_name()

17 years agoadd krb5_ccname
Todd C. Miller [Mon, 16 Jul 2007 22:44:42 +0000 (22:44 +0000)]
add krb5_ccname

17 years agoAdd support for sasl_secprops in ldap.conf
Todd C. Miller [Mon, 16 Jul 2007 22:44:07 +0000 (22:44 +0000)]
Add support for sasl_secprops in ldap.conf

17 years agoAdd sudo_unsetenv() and refactor private env syncing code into sync_env().
Todd C. Miller [Mon, 16 Jul 2007 22:39:42 +0000 (22:39 +0000)]
Add sudo_unsetenv() and refactor private env syncing code into sync_env().

17 years agoThe ldap.conf variable is sasl_auth_id not sasl_authid.
Todd C. Miller [Mon, 16 Jul 2007 11:27:41 +0000 (11:27 +0000)]
The ldap.conf variable is sasl_auth_id not sasl_authid.

17 years agoAdd support for krb5_ccname in ldap.conf. If specified, it will
Todd C. Miller [Sun, 15 Jul 2007 19:44:46 +0000 (19:44 +0000)]
Add support for krb5_ccname in ldap.conf.  If specified, it will
override the default value of KRB5CCNAME in the environment for
the duration of the call to ldap_sasl_interactive_bind_s().

17 years agoRemove format_env()
Todd C. Miller [Sun, 15 Jul 2007 19:41:10 +0000 (19:41 +0000)]
Remove format_env()
Add sudo_setenv() to replace most format_env() + insert_env() combinations.
insert_env() no longer takes a struct environment *

17 years agoFix use_sasl vs. rootuse_sasl logic.
Todd C. Miller [Sun, 15 Jul 2007 16:47:53 +0000 (16:47 +0000)]
Fix use_sasl vs. rootuse_sasl logic.

17 years agoAdd support for SASL auth when connecting to an LDAP server.
Todd C. Miller [Sun, 15 Jul 2007 13:23:20 +0000 (13:23 +0000)]
Add support for SASL auth when connecting to an LDAP server.
Adapted from a diff by Tom McLaughlin.

17 years agoOnly enable AIX or BSD auth if no other exclusive auth method has
Todd C. Miller [Sat, 14 Jul 2007 20:32:11 +0000 (20:32 +0000)]
Only enable AIX or BSD auth if no other exclusive auth method has
been chosen.  Allows people to e.g., use PAM on AIX without adding
--without-aixauth.  A better solution is needed to deal with default
authentication since if a non-exclusive method is chosen we will
still get an error.

17 years agoGenerate HISTORY from history.pod (which is also used for web pages)
Todd C. Miller [Wed, 11 Jul 2007 15:23:11 +0000 (15:23 +0000)]
Generate HISTORY from history.pod (which is also used for web pages)

17 years agoregen
Todd C. Miller [Mon, 9 Jul 2007 23:40:49 +0000 (23:40 +0000)]
regen

17 years agoBetter explanation of environment handling in the sudo man page.
Todd C. Miller [Mon, 9 Jul 2007 23:25:41 +0000 (23:25 +0000)]
Better explanation of environment handling in the sudo man page.

17 years agoDefer setting user-specified env vars until after authentication.
Todd C. Miller [Mon, 9 Jul 2007 19:13:38 +0000 (19:13 +0000)]
Defer setting user-specified env vars until after authentication.

17 years agohonor def_default_path for PATH set on the command line
Todd C. Miller [Mon, 9 Jul 2007 17:25:45 +0000 (17:25 +0000)]
honor def_default_path for PATH set on the command line

17 years agoAllow user to set environment variables on the command line as long
Todd C. Miller [Mon, 9 Jul 2007 17:22:55 +0000 (17:22 +0000)]
Allow user to set environment variables on the command line as long
as they are allowed by env_keep and env_check.  Ie: apply the same
restrictions as normal environment variables.
TODO: deal with secure_path

17 years agoCall rebuild_env() in call cases.
Todd C. Miller [Sun, 8 Jul 2007 18:44:28 +0000 (18:44 +0000)]
Call rebuild_env() in call cases.
Pass original envp to sudo_edit().
Don't allow -E or env var setting in sudoedit mode.
More accurate usage() when called as sudoedit.

17 years agowarn -> warning
Todd C. Miller [Sun, 8 Jul 2007 18:41:17 +0000 (18:41 +0000)]
warn -> warning

17 years agoadd -c option to sudoedit synopsis
Todd C. Miller [Sun, 8 Jul 2007 18:11:33 +0000 (18:11 +0000)]
add -c option to sudoedit synopsis

17 years agoudpate to reality
Todd C. Miller [Sun, 8 Jul 2007 14:27:40 +0000 (14:27 +0000)]
udpate to reality

17 years agoUse ALLOW/DENY instead of TRUE/FALSE when dealing with the return
Todd C. Miller [Sun, 8 Jul 2007 13:43:07 +0000 (13:43 +0000)]
Use ALLOW/DENY instead of TRUE/FALSE when dealing with the return
value from {user,host,runas,cmnd}_matches().
Rename *matches variables -> *match.
Purely cosmetic.

17 years agoMove setting of FLAG_NO_CHECK into the if(pwflag) block.
Todd C. Miller [Sun, 8 Jul 2007 13:30:07 +0000 (13:30 +0000)]
Move setting of FLAG_NO_CHECK into the if(pwflag) block.
No change in behavior.

17 years agoadd SETENV tag
Todd C. Miller [Sun, 8 Jul 2007 13:17:59 +0000 (13:17 +0000)]
add SETENV tag

17 years agoMake pwcheck local to the pwflag block.
Todd C. Miller [Fri, 6 Jul 2007 19:51:03 +0000 (19:51 +0000)]
Make pwcheck local to the pwflag block.
Use pwcheck even if user didn't match since Defaults options may still apply.

17 years agoDo not update timestamp if user not validated by sudoers.
Todd C. Miller [Fri, 6 Jul 2007 18:51:43 +0000 (18:51 +0000)]
Do not update timestamp if user not validated by sudoers.

17 years agofor PERM_RUNAS, set the egid to the runas user's gid and restore to the user's origin...
Todd C. Miller [Fri, 6 Jul 2007 14:14:12 +0000 (14:14 +0000)]
for PERM_RUNAS, set the egid to the runas user's gid and restore to the user's original in PERM_ROOT

17 years agoPERM_FULL_ROOT is now no different than PERM_ROOT so remove PERM_FULL_ROOT
Todd C. Miller [Fri, 6 Jul 2007 14:04:40 +0000 (14:04 +0000)]
PERM_FULL_ROOT is now no different than PERM_ROOT so remove PERM_FULL_ROOT

17 years agodon't check timestamp mtime if we are just going to remove it
Todd C. Miller [Fri, 6 Jul 2007 13:49:41 +0000 (13:49 +0000)]
don't check timestamp mtime if we are just going to remove it

17 years agoMove sudoers defaults parameters into their own section.
Todd C. Miller [Fri, 6 Jul 2007 13:33:47 +0000 (13:33 +0000)]
Move sudoers defaults parameters into their own section.

17 years agoReduce a level of indent by a few placed continue statements.
Todd C. Miller [Fri, 6 Jul 2007 00:21:16 +0000 (00:21 +0000)]
Reduce a level of indent by a few placed continue statements.

17 years agoMake matching but negated commands/hosts/runas entries override a
Todd C. Miller [Fri, 6 Jul 2007 00:20:51 +0000 (00:20 +0000)]
Make matching but negated commands/hosts/runas entries override a
previous match as expected.  Also reduce some levels of indent by
a few placed continue statements.

17 years agoPrint default runas in "sudo -l" if sudoers don't specify one.
Todd C. Miller [Thu, 5 Jul 2007 20:34:00 +0000 (20:34 +0000)]
Print default runas in "sudo -l" if sudoers don't specify one.

17 years agoLess hacky way of testing whether the domain was set.
Todd C. Miller [Thu, 5 Jul 2007 19:46:23 +0000 (19:46 +0000)]
Less hacky way of testing whether the domain was set.

17 years agoMention pam-devel and openldap-devel for Linux
Todd C. Miller [Wed, 4 Jul 2007 19:50:56 +0000 (19:50 +0000)]
Mention pam-devel and openldap-devel for Linux

17 years agoor vs. are
Todd C. Miller [Tue, 3 Jul 2007 23:38:15 +0000 (23:38 +0000)]
or vs. are

17 years agofix typo in Solaris project support
Todd C. Miller [Sun, 1 Jul 2007 20:55:14 +0000 (20:55 +0000)]
fix typo in Solaris project support

17 years agoupdate
Todd C. Miller [Sun, 1 Jul 2007 13:40:15 +0000 (13:40 +0000)]
update

17 years agoMake -- on the command line match the manual page.
Todd C. Miller [Sun, 1 Jul 2007 13:07:06 +0000 (13:07 +0000)]
Make -- on the command line match the manual page.
The implied shell case has been simplified as a result.

17 years agoadd simplistic support for sudoRunas; note that if a sudoers entry contains multiple...
Todd C. Miller [Thu, 28 Jun 2007 14:44:05 +0000 (14:44 +0000)]
add simplistic support for sudoRunas; note that if a sudoers entry contains multiple Runas users, all will apply to the sudoRole

17 years agohonor SETENV and NOSETENV tags
Todd C. Miller [Thu, 28 Jun 2007 14:42:43 +0000 (14:42 +0000)]
honor SETENV and NOSETENV tags

17 years agoRedo setting of user_args. We now build up a private copy of argv
Todd C. Miller [Sun, 24 Jun 2007 13:25:01 +0000 (13:25 +0000)]
Redo setting of user_args.  We now build up a private copy of argv
first and then replace the NULs with spaces.

17 years agogetcwd() returns NULL on failure, not 0 on success
Todd C. Miller [Sun, 24 Jun 2007 13:19:29 +0000 (13:19 +0000)]
getcwd() returns NULL on failure, not 0 on success

17 years agoallow chunksiz to reach 1 before erroring out
Todd C. Miller [Sun, 24 Jun 2007 11:39:16 +0000 (11:39 +0000)]
allow chunksiz to reach 1 before erroring out

17 years agoregen
Todd C. Miller [Sun, 24 Jun 2007 00:00:41 +0000 (00:00 +0000)]
regen

17 years agoAdd support for setting environment variables on the command line.
Todd C. Miller [Sat, 23 Jun 2007 23:58:54 +0000 (23:58 +0000)]
Add support for setting environment variables on the command line.
This is only allowed if the setenv sudoers options is enabled or if
the command is prefixed with the SETENV tag.

17 years agoreplace Aaron's email address with the sudo-workers list
Todd C. Miller [Sat, 23 Jun 2007 23:57:29 +0000 (23:57 +0000)]
replace Aaron's email address with the sudo-workers list

17 years agoregen
Todd C. Miller [Sat, 23 Jun 2007 23:55:55 +0000 (23:55 +0000)]
regen

17 years agoBreak schema out into separate files.
Todd C. Miller [Fri, 22 Jun 2007 00:35:19 +0000 (00:35 +0000)]
Break schema out into separate files.

17 years agoBreak schema out into separate files.
Todd C. Miller [Fri, 22 Jun 2007 00:35:19 +0000 (00:35 +0000)]
Break schema out into separate files.

17 years agofree message if set by authenticate()
Todd C. Miller [Thu, 21 Jun 2007 22:28:40 +0000 (22:28 +0000)]
free message if set by authenticate()

17 years agodeal with NULL gr_mem
Todd C. Miller [Thu, 21 Jun 2007 17:04:26 +0000 (17:04 +0000)]
deal with NULL gr_mem

17 years agoregen
Todd C. Miller [Wed, 20 Jun 2007 19:05:04 +0000 (19:05 +0000)]
regen

17 years agoadd template for HAVE_PROJECT_H
Todd C. Miller [Wed, 20 Jun 2007 19:04:30 +0000 (19:04 +0000)]
add template for HAVE_PROJECT_H

17 years agoinclude fcntl.h
Todd C. Miller [Wed, 20 Jun 2007 11:06:48 +0000 (11:06 +0000)]
include fcntl.h