]>
granicus.if.org Git - sudo/log
Todd C. Miller [Fri, 31 Aug 2007 23:13:26 +0000 (23:13 +0000)]
Move list manipulation macros to list.h and create C versions of
the more complex ones in list.c. The names have been down-cased
so they appear more like normal functions.
Todd C. Miller [Fri, 31 Aug 2007 21:21:01 +0000 (21:21 +0000)]
Fix cmp command when regenerating parser.
Make gram.o the first dependency for all programs so gram.h will
be generated before anything that needs it.
Todd C. Miller [Fri, 31 Aug 2007 17:56:30 +0000 (17:56 +0000)]
Convert NEW_DEFAULT anf NEW_MEMBER into static functions.
Todd C. Miller [Fri, 31 Aug 2007 01:21:26 +0000 (01:21 +0000)]
Use LH_FOREACH_REV when checking permission and short-circuit on
the first non-UNSPEC hit we get for the command. This means that
instead of cycling through the all the parsed sudoers entries we
start at the end and work backwards and quit after the first positive
or negative match.
Todd C. Miller [Fri, 31 Aug 2007 01:13:05 +0000 (01:13 +0000)]
regen
Todd C. Miller [Fri, 31 Aug 2007 01:12:50 +0000 (01:12 +0000)]
Change list head macros to take a pointer, not a struct.
Todd C. Miller [Fri, 31 Aug 2007 00:46:49 +0000 (00:46 +0000)]
regen
Todd C. Miller [Fri, 31 Aug 2007 00:46:43 +0000 (00:46 +0000)]
Propagate the runasspec from one command to the next in a cmndspec.
Todd C. Miller [Thu, 30 Aug 2007 20:15:48 +0000 (20:15 +0000)]
Replace has_meta() with a macro that calls strpbrk().
Todd C. Miller [Thu, 30 Aug 2007 20:04:24 +0000 (20:04 +0000)]
regen
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.
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.
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.
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.
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.
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.
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.
Todd C. Miller [Sat, 25 Aug 2007 02:36:09 +0000 (02:36 +0000)]
Fix thinko introduced when merging IPV6 support.
Todd C. Miller [Fri, 24 Aug 2007 18:23:42 +0000 (18:23 +0000)]
regen
Todd C. Miller [Fri, 24 Aug 2007 18:23:24 +0000 (18:23 +0000)]
add 2007
Todd C. Miller [Fri, 24 Aug 2007 18:19:19 +0000 (18:19 +0000)]
mention #uid vs. comment pitfall
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.
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.
Todd C. Miller [Fri, 24 Aug 2007 00:14:42 +0000 (00:14 +0000)]
regen
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.
Todd C. Miller [Thu, 23 Aug 2007 19:31:29 +0000 (19:31 +0000)]
remove useless statement
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.
Todd C. Miller [Wed, 22 Aug 2007 22:56:56 +0000 (22:56 +0000)]
mention better uid support
Todd C. Miller [Wed, 22 Aug 2007 22:55:46 +0000 (22:55 +0000)]
Users may now consist of a uid.
Todd C. Miller [Wed, 22 Aug 2007 22:39:20 +0000 (22:39 +0000)]
regen
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.
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.
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.
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.
Todd C. Miller [Wed, 22 Aug 2007 10:37:53 +0000 (10:37 +0000)]
The BUGS file is history
Todd C. Miller [Wed, 22 Aug 2007 10:35:40 +0000 (10:35 +0000)]
The BUGS file is history
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.
Todd C. Miller [Tue, 21 Aug 2007 00:43:19 +0000 (00:43 +0000)]
Glob support was back-ported to 1.6.9
Todd C. Miller [Mon, 20 Aug 2007 23:59:50 +0000 (23:59 +0000)]
remove sudo_usage.h in distclean
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.
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.
Todd C. Miller [Mon, 20 Aug 2007 14:46:40 +0000 (14:46 +0000)]
Be consistent when using single quotes and backticks.
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.
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.
Todd C. Miller [Fri, 17 Aug 2007 22:32:01 +0000 (22:32 +0000)]
some more info
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.
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.
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.
Todd C. Miller [Wed, 15 Aug 2007 15:21:14 +0000 (15:21 +0000)]
regen
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).
Todd C. Miller [Wed, 15 Aug 2007 13:22:06 +0000 (13:22 +0000)]
use getaddrinfo() instead of gethostbyname() if it is available
Todd C. Miller [Tue, 14 Aug 2007 19:27:27 +0000 (19:27 +0000)]
Deal with OSes where sizeof(gid_t) < sizeof(int).
Todd C. Miller [Tue, 14 Aug 2007 15:19:13 +0000 (15:19 +0000)]
repair non-getifaddrs() code after ipv6 integration
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.
Todd C. Miller [Mon, 13 Aug 2007 16:34:21 +0000 (16:34 +0000)]
regen
Todd C. Miller [Mon, 13 Aug 2007 16:29:25 +0000 (16:29 +0000)]
Add IPv6 support; adapted from patches by YOSHIFUJI Hideaki
Todd C. Miller [Mon, 13 Aug 2007 16:23:14 +0000 (16:23 +0000)]
Add some missing markup
Update copyright
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
Todd C. Miller [Fri, 10 Aug 2007 14:41:59 +0000 (14:41 +0000)]
explicitly specify -Tascii to nroff
Todd C. Miller [Wed, 8 Aug 2007 20:07:33 +0000 (20:07 +0000)]
remove an ANSI-ism that crept in
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
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.
Todd C. Miller [Tue, 7 Aug 2007 00:33:04 +0000 (00:33 +0000)]
Adjust list indentation
Todd C. Miller [Tue, 7 Aug 2007 00:31:40 +0000 (00:31 +0000)]
add =head3
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
Todd C. Miller [Thu, 2 Aug 2007 02:08:39 +0000 (02:08 +0000)]
Fix off by one in group matching.
Todd C. Miller [Tue, 31 Jul 2007 18:04:32 +0000 (18:04 +0000)]
Fix typo: PYTHONINSPEC should be PYTHONINSPECT. From David Krause.
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.
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.
Todd C. Miller [Sun, 29 Jul 2007 23:21:37 +0000 (23:21 +0000)]
add missing over/back
Todd C. Miller [Sun, 29 Jul 2007 23:09:23 +0000 (23:09 +0000)]
Change FILES section to use =item
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.
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.
Todd C. Miller [Thu, 26 Jul 2007 20:35:53 +0000 (20:35 +0000)]
Use file markup for paths in the FILES section
Todd C. Miller [Thu, 26 Jul 2007 14:04:44 +0000 (14:04 +0000)]
Don't capitalize sudo/visudo
Todd C. Miller [Thu, 26 Jul 2007 11:28:45 +0000 (11:28 +0000)]
Sort sudoers options; based on a diff from Igor Sobrado.
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.
Todd C. Miller [Sun, 22 Jul 2007 23:09:38 +0000 (23:09 +0000)]
Move license info to pod format
Todd C. Miller [Sun, 22 Jul 2007 22:43:28 +0000 (22:43 +0000)]
Substitute value of path_info into sudoers man page.
Todd C. Miller [Sun, 22 Jul 2007 20:40:12 +0000 (20:40 +0000)]
remove features that were back-ported to 1.6.9
Todd C. Miller [Sun, 22 Jul 2007 19:20:42 +0000 (19:20 +0000)]
Sort SYNOPSIS and sync usage. From Igor Sobrado.
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().
Todd C. Miller [Sun, 22 Jul 2007 12:23:47 +0000 (12:23 +0000)]
rebuild without branch info
Todd C. Miller [Sun, 22 Jul 2007 12:23:33 +0000 (12:23 +0000)]
Add ChangeLog target
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.
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.
Todd C. Miller [Fri, 20 Jul 2007 13:32:38 +0000 (13:32 +0000)]
ChageLog not Changelog
Todd C. Miller [Fri, 20 Jul 2007 13:31:24 +0000 (13:31 +0000)]
sync
Todd C. Miller [Fri, 20 Jul 2007 13:29:21 +0000 (13:29 +0000)]
CHANGE -> Changelog
Todd C. Miller [Fri, 20 Jul 2007 00:23:51 +0000 (00:23 +0000)]
sync
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.
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.
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().
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()
Todd C. Miller [Mon, 16 Jul 2007 22:44:42 +0000 (22:44 +0000)]
add krb5_ccname
Todd C. Miller [Mon, 16 Jul 2007 22:44:07 +0000 (22:44 +0000)]
Add support for sasl_secprops in ldap.conf
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().
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.
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().
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 *