]> granicus.if.org Git - sudo/log
sudo
17 years agoregen
Todd C. Miller [Thu, 30 Aug 2007 20:04:24 +0000 (20:04 +0000)]
regen

17 years agoUse a list head struct when storing the semi-circular lists and
Todd C. Miller [Thu, 30 Aug 2007 17:26:35 +0000 (17:26 +0000)]
Use a list head struct when storing the semi-circular lists and
convert to tail queues in the process.  This will allow us to
reverse foreach loops more easily and it makes it clearer which
functions expect a list as opposed to a single member.

Add macros for manipulating lists.  Some of these should become functions.

When freeing up a list, just pop off the last item in the queue instead
of going from head to tail.  This is simpler since we don't have to
stash a pointer to the next member, we always just use the last one
in the queue until the queue is empty.

Rename match functions that take a list to have list in the name.
Break cmnd_matches() into cmnd_matches() and cmndlist_matches.

17 years agoFix pasto, append "!" not negated (which is an int) for sudo -l output.
Todd C. Miller [Thu, 30 Aug 2007 17:12:00 +0000 (17:12 +0000)]
Fix pasto, append "!" not negated (which is an int) for sudo -l output.

17 years agoRemove the dependency of gram .h on gram.y, the .c dependency is enough.
Todd C. Miller [Thu, 30 Aug 2007 16:45:28 +0000 (16:45 +0000)]
Remove the dependency of gram .h on gram.y, the .c dependency is enough.
Only move y.tab.h to gram.h if it is different; avoids needless rebuilding.

17 years agoDefaults lines may be associated with lists of users, hosts, commands
Todd C. Miller [Mon, 27 Aug 2007 19:51:58 +0000 (19:51 +0000)]
Defaults lines may be associated with lists of users, hosts, commands
and runas users, not just single entries.

17 years agoRevert the "cmp" portion of the last diff, it doesn't make sense.
Todd C. Miller [Sun, 26 Aug 2007 21:42:31 +0000 (21:42 +0000)]
Revert the "cmp" portion of the last diff, it doesn't make sense.

17 years agoRemove *.lo for clean:
Todd C. Miller [Sun, 26 Aug 2007 21:10:33 +0000 (21:10 +0000)]
Remove *.lo for clean:
When generating the parser, only move the generated files into place
if they differ from the existing ones.

17 years agoReplace IPV6 regexp with a much simpler (readable) one and add an
Todd C. Miller [Sat, 25 Aug 2007 02:47:54 +0000 (02:47 +0000)]
Replace IPV6 regexp with a much simpler (readable) one and add an
extra check when it matches to make sure we have a valid address.

17 years agoFix thinko introduced when merging IPV6 support.
Todd C. Miller [Sat, 25 Aug 2007 02:36:09 +0000 (02:36 +0000)]
Fix thinko introduced when merging IPV6 support.

17 years agoregen
Todd C. Miller [Fri, 24 Aug 2007 18:23:42 +0000 (18:23 +0000)]
regen

17 years agoadd 2007
Todd C. Miller [Fri, 24 Aug 2007 18:23:24 +0000 (18:23 +0000)]
add 2007

17 years agomention #uid vs. comment pitfall
Todd C. Miller [Fri, 24 Aug 2007 18:19:19 +0000 (18:19 +0000)]
mention #uid vs. comment pitfall

17 years agoMerge in a patch from the libtool cvs that fixes a problem with the
Todd C. Miller [Fri, 24 Aug 2007 13:50:16 +0000 (13:50 +0000)]
Merge in a patch from the libtool cvs that fixes a problem with the
latest autoconf.  From Stepan Kasal.

17 years agoBack out he XOR swap trick, it is slower than a temp variable on
Todd C. Miller [Fri, 24 Aug 2007 00:28:57 +0000 (00:28 +0000)]
Back out he XOR swap trick, it is slower than a temp variable on
modern CPUs.

17 years agoregen
Todd C. Miller [Fri, 24 Aug 2007 00:14:42 +0000 (00:14 +0000)]
regen

17 years agoConvert the tail queue to a semi-circle queue and use the XOR swap
Todd C. Miller [Fri, 24 Aug 2007 00:14:21 +0000 (00:14 +0000)]
Convert the tail queue to a semi-circle queue and use the XOR swap
trick to swap the prev pointers during append.

17 years agoremove useless statement
Todd C. Miller [Thu, 23 Aug 2007 19:31:29 +0000 (19:31 +0000)]
remove useless statement

17 years agoRefactor #include parsing into a separate function and return
Todd C. Miller [Thu, 23 Aug 2007 11:47:08 +0000 (11:47 +0000)]
Refactor #include parsing into a separate function and return
unparsed chars (such as newline or comment) back to the lexer.

17 years agomention better uid support
Todd C. Miller [Wed, 22 Aug 2007 22:56:56 +0000 (22:56 +0000)]
mention better uid support

17 years agoUsers may now consist of a uid.
Todd C. Miller [Wed, 22 Aug 2007 22:55:46 +0000 (22:55 +0000)]
Users may now consist of a uid.

17 years agoregen
Todd C. Miller [Wed, 22 Aug 2007 22:39:20 +0000 (22:39 +0000)]
regen

17 years agoUse lbuf_append_quoted() for sudo -l output to quote characters that
Todd C. Miller [Wed, 22 Aug 2007 22:32:00 +0000 (22:32 +0000)]
Use lbuf_append_quoted() for sudo -l output to quote characters that
would require quoting in sudoers.

17 years agoAdd lbuf_append_quoted() which takes a set of characters which
Todd C. Miller [Wed, 22 Aug 2007 22:31:07 +0000 (22:31 +0000)]
Add lbuf_append_quoted() which takes a set of characters which
should be quoted with a backslash when displayed.

17 years agoRequire that the first character after a comment not be a digit or
Todd C. Miller [Wed, 22 Aug 2007 22:28:20 +0000 (22:28 +0000)]
Require that the first character after a comment not be a digit or
a dash.  This allows us to remove the GOTRUNAS state and treat
uid/gids similar to other words.  It also means that we can now
specify uids in User_Lists and a User_Spec may now contain a uid.

17 years agoReplace RUNAS token with '(' and ')' tokens to make the runas
Todd C. Miller [Wed, 22 Aug 2007 22:23:59 +0000 (22:23 +0000)]
Replace RUNAS token with '(' and ')' tokens to make the runas
portion of the grammar more natural.

17 years agoThe BUGS file is history
Todd C. Miller [Wed, 22 Aug 2007 10:37:53 +0000 (10:37 +0000)]
The BUGS file is history

17 years agoThe BUGS file is history
Todd C. Miller [Wed, 22 Aug 2007 10:35:40 +0000 (10:35 +0000)]
The BUGS file is history

17 years agoAllow comments after a RunasAlias as long as the character after
Todd C. Miller [Tue, 21 Aug 2007 13:19:04 +0000 (13:19 +0000)]
Allow comments after a RunasAlias as long as the character after
the pound sign isn't a digit or a dash.

17 years agoGlob support was back-ported to 1.6.9
Todd C. Miller [Tue, 21 Aug 2007 00:43:19 +0000 (00:43 +0000)]
Glob support was back-ported to 1.6.9

17 years agoremove sudo_usage.h in distclean
Todd C. Miller [Mon, 20 Aug 2007 23:59:50 +0000 (23:59 +0000)]
remove sudo_usage.h in distclean

17 years agoIf a Defaults value contains a blank, double-quote the string.
Todd C. Miller [Mon, 20 Aug 2007 23:24:31 +0000 (23:24 +0000)]
If a Defaults value contains a blank, double-quote the string.

17 years agoProperly deal with Defaults double-quoted strings that span multiple
Todd C. Miller [Mon, 20 Aug 2007 23:19:44 +0000 (23:19 +0000)]
Properly deal with Defaults double-quoted strings that span multiple
lines using the line continuation char.  Previously, the entire thing,
including the continuation char, newline, and spaces was stored as-is.

17 years agoBe consistent when using single quotes and backticks.
Todd C. Miller [Mon, 20 Aug 2007 14:46:40 +0000 (14:46 +0000)]
Be consistent when using single quotes and backticks.

17 years agoAdd new linebuf code to do appends of dynamically allocated strings
Todd C. Miller [Sun, 19 Aug 2007 20:48:09 +0000 (20:48 +0000)]
Add new linebuf code to do appends of dynamically allocated strings
and word-wrapped output.  Currently used for sudo's usage() and
sudo -l output.  Sudo usage strings are now in sudo_usage.h which
is generated at configure time.

17 years agoFix line wrapping in usage() and use the actual tty width instead of
Todd C. Miller [Sat, 18 Aug 2007 12:22:16 +0000 (12:22 +0000)]
Fix line wrapping in usage() and use the actual tty width instead of
assuming 80.

17 years agosome more info
Todd C. Miller [Fri, 17 Aug 2007 22:32:01 +0000 (22:32 +0000)]
some more info

17 years agoMentioned Chris Jepeway's parser and also the new one that is in sudo 1.7.
Todd C. Miller [Fri, 17 Aug 2007 21:28:03 +0000 (21:28 +0000)]
Mentioned Chris Jepeway's parser and also the new one that is in sudo 1.7.

17 years agoFor the options list, add flag args where appropriate and increase the
Todd C. Miller [Thu, 16 Aug 2007 13:38:24 +0000 (13:38 +0000)]
For the options list, add flag args where appropriate and increase the
indent level so there is room for them.

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