]> granicus.if.org Git - sudo/log
sudo
15 years agoDocument --with-libvas and --with-libvas-rpath
Todd C. Miller [Tue, 9 Jun 2009 14:08:55 +0000 (14:08 +0000)]
Document --with-libvas and --with-libvas-rpath

15 years agoFor netscape-derived LDAP SDKs the cert and key paths may be a
Todd C. Miller [Fri, 29 May 2009 13:43:12 +0000 (13:43 +0000)]
For netscape-derived LDAP SDKs the cert and key paths may be a
directory or a file.  However, version 5.0 of the SDK only seems
to support using a directory.  If ldapssl_clientauth_init fails and
the cert or key paths look like they could be files, strip off the
last path element and try again.

15 years agoAdd non-Unix group .o to COMMON_OBJS and substitute in path to flex.
Todd C. Miller [Fri, 29 May 2009 13:40:52 +0000 (13:40 +0000)]
Add non-Unix group .o to COMMON_OBJS and substitute in path to flex.

15 years agoUpdate non-Unix group support from Quest, as reworked by me.
Todd C. Miller [Wed, 27 May 2009 00:49:07 +0000 (00:49 +0000)]
Update non-Unix group support from Quest, as reworked by me.

15 years agoregen
Todd C. Miller [Wed, 27 May 2009 00:47:17 +0000 (00:47 +0000)]
regen

15 years agoAdd support for escaped hex chars in names, e.g. \x20 for space.
Todd C. Miller [Wed, 27 May 2009 00:46:51 +0000 (00:46 +0000)]
Add support for escaped hex chars in names, e.g. \x20 for space.

15 years agoUpdate copyright years.
Todd C. Miller [Mon, 25 May 2009 12:02:42 +0000 (12:02 +0000)]
Update copyright years.

15 years agoMinor fixes for Minix-3
Todd C. Miller [Sun, 24 May 2009 12:33:00 +0000 (12:33 +0000)]
Minor fixes for Minix-3

15 years agoHandle getgroups() returning 0. Also add missing check for HAVE_GETGROUPS.
Todd C. Miller [Fri, 22 May 2009 10:37:29 +0000 (10:37 +0000)]
Handle getgroups() returning 0.  Also add missing check for HAVE_GETGROUPS.

15 years agoReplace version.h with PACKAGE_VERSION set via AC_INIT in configure.
Todd C. Miller [Tue, 19 May 2009 21:24:05 +0000 (21:24 +0000)]
Replace version.h with PACKAGE_VERSION set via AC_INIT in configure.

15 years agoRemove group setting code in setusercontext case, we will do it ourselves
Todd C. Miller [Mon, 18 May 2009 10:33:33 +0000 (10:33 +0000)]
Remove group setting code in setusercontext case, we will do it ourselves
later on in runas_setup.  Set the gid after initgroups/setgroups is called,
since on Mac OS X it seems to change the egid.

15 years agoInitial bits of non-unix group support using Quest Authentication Services
Todd C. Miller [Sun, 17 May 2009 22:19:38 +0000 (22:19 +0000)]
Initial bits of non-unix group support using Quest Authentication Services

15 years agoAccept %:foo as a non-Unix group
Todd C. Miller [Sun, 17 May 2009 20:52:15 +0000 (20:52 +0000)]
Accept %:foo as a non-Unix group

15 years agoAllow user/group to be double quoted in the case of non-Unix groups
Todd C. Miller [Sun, 17 May 2009 20:22:24 +0000 (20:22 +0000)]
Allow user/group to be double quoted in the case of non-Unix groups
which contain spaces.

15 years agoDon't allow the user to specify the default runas user if their
Todd C. Miller [Mon, 11 May 2009 16:47:10 +0000 (16:47 +0000)]
Don't allow the user to specify the default runas user if their
sudoers entry only allows them to run as a group.

15 years agoMust call audit_success before we change uids.
Todd C. Miller [Sun, 10 May 2009 11:59:53 +0000 (11:59 +0000)]
Must call audit_success before we change uids.

15 years agoAdd option for set_perm to not exit on failure and use this in
Todd C. Miller [Sun, 10 May 2009 11:52:13 +0000 (11:52 +0000)]
Add option for set_perm to not exit on failure and use this in
the logging routines.

15 years agoIn -l mode, if the user is only allowed to run as a group, display
Todd C. Miller [Sun, 10 May 2009 11:33:45 +0000 (11:33 +0000)]
In -l mode, if the user is only allowed to run as a group, display
the user's name, not root's before the allowed group.

15 years agoFix -g mode, broken by rev 1.503 which had the side effect of setting
Todd C. Miller [Sun, 10 May 2009 01:00:23 +0000 (01:00 +0000)]
Fix -g mode, broken by rev 1.503 which had the side effect of setting
the runas user to root unilaterally.

15 years agoWhen unlocking a file with fcntl, use F_SETLK, not F_SETLKW.
Todd C. Miller [Fri, 8 May 2009 20:19:20 +0000 (20:19 +0000)]
When unlocking a file with fcntl, use F_SETLK, not F_SETLKW.

15 years agoOnly cache by the method we fetched for pwd and grp lookups. Previously
Todd C. Miller [Fri, 8 May 2009 17:07:10 +0000 (17:07 +0000)]
Only cache by the method we fetched for pwd and grp lookups.  Previously
we cached both by namd and id but this can cause problems for entries
that share the same id.  Also add more info in the error message in case
the insert fails (which should now be impossible).

15 years agoAdd a clarification from Nick Sieger
Todd C. Miller [Thu, 30 Apr 2009 19:04:08 +0000 (19:04 +0000)]
Add a clarification from Nick Sieger

15 years agoInline the setting of the environment string.
Todd C. Miller [Sat, 25 Apr 2009 16:49:22 +0000 (16:49 +0000)]
Inline the setting of the environment string.

15 years agosetenv(3) in Linux treats a NUL value as the empty string
Todd C. Miller [Fri, 24 Apr 2009 18:53:15 +0000 (18:53 +0000)]
setenv(3) in Linux treats a NUL value as the empty string
setenv(3) in BSD doesn't return an error if the name has '=' in it, it
just treats the '=' as end of string.

15 years agoNot all systems have d_namlen
Todd C. Miller [Wed, 22 Apr 2009 20:32:08 +0000 (20:32 +0000)]
Not all systems have d_namlen

15 years agoFix up some pod2html issues.
Todd C. Miller [Mon, 20 Apr 2009 17:53:02 +0000 (17:53 +0000)]
Fix up some pod2html issues.

15 years agoCheck for NULL ifa_addr and ifa_netmask.
Todd C. Miller [Sun, 19 Apr 2009 18:09:24 +0000 (18:09 +0000)]
Check for NULL ifa_addr and ifa_netmask.
Adapted from a diff from Quest Software.

15 years agoIgnore files ending in '~' in sudo.d (emacs backup files)
Todd C. Miller [Sun, 19 Apr 2009 13:01:20 +0000 (13:01 +0000)]
Ignore files ending in '~' in sudo.d (emacs backup files)

15 years agoIgnore files ending in '~' in sudo.d (emacs backup files)
Todd C. Miller [Sun, 19 Apr 2009 12:56:42 +0000 (12:56 +0000)]
Ignore files ending in '~' in sudo.d (emacs backup files)

15 years agoFor #includedir, ignore any file containing a dot
Todd C. Miller [Sat, 18 Apr 2009 23:37:33 +0000 (23:37 +0000)]
For #includedir, ignore any file containing a dot

15 years agoBump version
Todd C. Miller [Sat, 18 Apr 2009 23:25:38 +0000 (23:25 +0000)]
Bump version

15 years agoImplement #includedir directive. Files in an includedir are not edited
Todd C. Miller [Sat, 18 Apr 2009 23:25:08 +0000 (23:25 +0000)]
Implement #includedir directive.  Files in an includedir are not edited
by visudo unless they contain a syntax error.

15 years agosync SUDO_1_7_1
Todd C. Miller [Sat, 18 Apr 2009 16:06:05 +0000 (16:06 +0000)]
sync

15 years agoForgot umask_override
Todd C. Miller [Sat, 18 Apr 2009 14:27:42 +0000 (14:27 +0000)]
Forgot umask_override

15 years agosync
Todd C. Miller [Sat, 18 Apr 2009 13:25:08 +0000 (13:25 +0000)]
sync

15 years agoRewind stream if we fdopen sudoers since it may not be at the beginning.
Todd C. Miller [Thu, 16 Apr 2009 12:22:04 +0000 (12:22 +0000)]
Rewind stream if we fdopen sudoers since it may not be at the beginning.
Set the keepopen flag on already-open files too so the lexer doesn't
close them out from under us.

15 years agoPrint the proper file name when there is a parse error in an include
Todd C. Miller [Thu, 16 Apr 2009 12:18:10 +0000 (12:18 +0000)]
Print the proper file name when there is a parse error in an include
file.

15 years agoSync
Todd C. Miller [Sat, 11 Apr 2009 11:45:25 +0000 (11:45 +0000)]
Sync

15 years agoFix a warning when --without-ldap is specified.
Todd C. Miller [Fri, 10 Apr 2009 20:59:42 +0000 (20:59 +0000)]
Fix a warning when --without-ldap is specified.

15 years agoStore aliases that we remove during check_aliases in a freelist and
Todd C. Miller [Sun, 5 Apr 2009 16:25:04 +0000 (16:25 +0000)]
Store aliases that we remove during check_aliases in a freelist and
free them at the end so we don't leak memory.

15 years agoCheck aliases in -c mode too.
Todd C. Miller [Sat, 28 Mar 2009 13:30:15 +0000 (13:30 +0000)]
Check aliases in -c mode too.

15 years agoMake alias_remove return the alias struct instead of freeing it directly.
Todd C. Miller [Sat, 28 Mar 2009 13:09:51 +0000 (13:09 +0000)]
Make alias_remove return the alias struct instead of freeing it directly.
Fixes a use after free in alias_remove_recursive, the only consumer.

15 years agoRename find_alias -> alias_find for consistency.
Todd C. Miller [Sat, 28 Mar 2009 13:07:17 +0000 (13:07 +0000)]
Rename find_alias -> alias_find for consistency.

15 years agoWhen checking for unused aliases, recurse if the alias points to
Todd C. Miller [Fri, 27 Mar 2009 23:29:06 +0000 (23:29 +0000)]
When checking for unused aliases, recurse if the alias points to
another alias.

15 years agoBack out rev 1.105 for now. Real ldapux_client.conf support will be
Todd C. Miller [Mon, 16 Mar 2009 16:11:28 +0000 (16:11 +0000)]
Back out rev 1.105 for now.  Real ldapux_client.conf support will be
done later after some refactoring.

15 years agoTreat ldap_hostport the same as "host" for ldapux.
Todd C. Miller [Sat, 14 Mar 2009 16:02:11 +0000 (16:02 +0000)]
Treat ldap_hostport the same as "host" for ldapux.

15 years agoOnly check for ldap_sasl_interactive_bind_s if we can find sasl.h.
Todd C. Miller [Sat, 14 Mar 2009 01:04:58 +0000 (01:04 +0000)]
Only check for ldap_sasl_interactive_bind_s if we can find sasl.h.
Fixes compilation with ldapux.

15 years agofix char subscript
Todd C. Miller [Thu, 12 Mar 2009 00:03:04 +0000 (00:03 +0000)]
fix char subscript

15 years agoremove errant carriage returns
Todd C. Miller [Wed, 11 Mar 2009 23:19:56 +0000 (23:19 +0000)]
remove errant carriage returns

15 years agofix K&R compilation
Todd C. Miller [Wed, 11 Mar 2009 23:01:10 +0000 (23:01 +0000)]
fix K&R compilation

15 years agoregen
Todd C. Miller [Wed, 11 Mar 2009 16:12:20 +0000 (16:12 +0000)]
regen

15 years agoAdd missing HAVE_BSM_AUDIT
Todd C. Miller [Tue, 10 Mar 2009 21:34:08 +0000 (21:34 +0000)]
Add missing HAVE_BSM_AUDIT

15 years agoAdd 1.7.1 features
Todd C. Miller [Tue, 10 Mar 2009 21:21:45 +0000 (21:21 +0000)]
Add 1.7.1 features

15 years agoMention --with-netsvc
Todd C. Miller [Tue, 10 Mar 2009 21:10:06 +0000 (21:10 +0000)]
Mention --with-netsvc

15 years agoDocument netsvc.conf support
Todd C. Miller [Tue, 10 Mar 2009 21:08:18 +0000 (21:08 +0000)]
Document netsvc.conf support

15 years agoAdd support for AIX netsvc.conf (like nsswitch.conf).
Todd C. Miller [Tue, 10 Mar 2009 20:44:05 +0000 (20:44 +0000)]
Add support for AIX netsvc.conf (like nsswitch.conf).

15 years agoAdd --enable-env-debug flag to enable environment sanity checks.
Todd C. Miller [Sun, 8 Mar 2009 20:57:01 +0000 (20:57 +0000)]
Add --enable-env-debug flag to enable environment sanity checks.

15 years agoWork around some pod2html issue.
Todd C. Miller [Sun, 8 Mar 2009 15:51:01 +0000 (15:51 +0000)]
Work around some pod2html issue.

15 years agoOnly sync environ for putenv, setenv, and unsetenv. We need to make
Todd C. Miller [Sat, 7 Mar 2009 22:10:44 +0000 (22:10 +0000)]
Only sync environ for putenv, setenv, and unsetenv.  We need to make
sure that sudo_putenv and sudo_setenv only modify env.envp, not environ.

15 years agoReally fix UNSETENV_VOID
Todd C. Miller [Mon, 2 Mar 2009 19:19:35 +0000 (19:19 +0000)]
Really fix UNSETENV_VOID

15 years agoFix unsetenv when UNSETENV_VOID
Todd C. Miller [Mon, 2 Mar 2009 19:18:35 +0000 (19:18 +0000)]
Fix unsetenv when UNSETENV_VOID

15 years agoFix SUDO_FUNC_PUTENV_CONST
Todd C. Miller [Mon, 2 Mar 2009 13:00:37 +0000 (13:00 +0000)]
Fix SUDO_FUNC_PUTENV_CONST

15 years agotivoli-based ldap does not have ldapssl_err2string
Todd C. Miller [Mon, 2 Mar 2009 12:36:06 +0000 (12:36 +0000)]
tivoli-based ldap does not have ldapssl_err2string

15 years agoregen
Todd C. Miller [Mon, 2 Mar 2009 12:30:16 +0000 (12:30 +0000)]
regen

15 years agoAdd support for Tivoli-based LDAP start TLS as seen in AIX. Untested.
Todd C. Miller [Sun, 1 Mar 2009 21:20:37 +0000 (21:20 +0000)]
Add support for Tivoli-based LDAP start TLS as seen in AIX.  Untested.

15 years agoAdd sanity checks for setenv/unsetenv
Todd C. Miller [Sun, 1 Mar 2009 13:52:28 +0000 (13:52 +0000)]
Add sanity checks for setenv/unsetenv

15 years agoInclude bsm_audit.h in the tarball
Todd C. Miller [Sun, 1 Mar 2009 01:17:25 +0000 (01:17 +0000)]
Include bsm_audit.h in the tarball

15 years agobump version for sudo 1.7.1
Todd C. Miller [Sun, 1 Mar 2009 01:00:28 +0000 (01:00 +0000)]
bump version for sudo 1.7.1

15 years agoReplace sudo_setenv/sudo_unsetenv with calls to setenv/unsetenv and
Todd C. Miller [Sun, 1 Mar 2009 00:58:41 +0000 (00:58 +0000)]
Replace sudo_setenv/sudo_unsetenv with calls to setenv/unsetenv and
provide our own setenv/unsetenv/putenv that operates on own env pointer.
Make sync_env() inline in setenv/unsetenv/putenv functions.

15 years agoMake "sudoedit -h" work as expected
Todd C. Miller [Wed, 25 Feb 2009 12:33:11 +0000 (12:33 +0000)]
Make "sudoedit -h" work as expected

15 years agoMake sure def_prompt is always defined. This is a workaround for
Todd C. Miller [Wed, 25 Feb 2009 12:21:11 +0000 (12:21 +0000)]
Make sure def_prompt is always defined.  This is a workaround for
pam configs that prompt for a password in the session but don't
have an auth line.  A better fix is to expand the sudo prompt earlier
and set def_prompt to that when initializing.

15 years agoMention that the helper for -A may be graphical.
Todd C. Miller [Wed, 25 Feb 2009 11:17:26 +0000 (11:17 +0000)]
Mention that the helper for -A may be graphical.

15 years agoDocument what happens if there is no tty.
Todd C. Miller [Wed, 25 Feb 2009 11:16:54 +0000 (11:16 +0000)]
Document what happens if there is no tty.

15 years agocosmetic changes
Todd C. Miller [Wed, 25 Feb 2009 11:05:01 +0000 (11:05 +0000)]
cosmetic changes

15 years agoFix term_restore
Todd C. Miller [Wed, 25 Feb 2009 10:47:12 +0000 (10:47 +0000)]
Fix term_restore

15 years agoFix "sudo -k" with no other args
Todd C. Miller [Wed, 25 Feb 2009 01:23:07 +0000 (01:23 +0000)]
Fix "sudo -k" with no other args

15 years agoAllow the -k flag to be specified in conjunction with a command or
Todd C. Miller [Tue, 24 Feb 2009 13:04:39 +0000 (13:04 +0000)]
Allow the -k flag to be specified in conjunction with a command or
another option that may require authentication.

15 years agoRemove unneeded AC_CANONICAL_TARGET; from Diego E. 'Flameeyes'
Todd C. Miller [Mon, 23 Feb 2009 14:18:46 +0000 (14:18 +0000)]
Remove unneeded AC_CANONICAL_TARGET; from Diego E. 'Flameeyes'

15 years agoParallel make fix. From Diego E. 'Flameeyes'
Todd C. Miller [Mon, 23 Feb 2009 14:15:29 +0000 (14:15 +0000)]
Parallel make fix.  From Diego E. 'Flameeyes'

15 years agoImplement umask_override
Todd C. Miller [Sat, 21 Feb 2009 22:03:47 +0000 (22:03 +0000)]
Implement umask_override

15 years agoregen
Todd C. Miller [Sat, 21 Feb 2009 21:51:42 +0000 (21:51 +0000)]
regen

15 years agoImplement %h escape in sudoers include filenames.
Todd C. Miller [Sat, 21 Feb 2009 21:49:19 +0000 (21:49 +0000)]
Implement %h escape in sudoers include filenames.

15 years agoNeed to include compat.h
Todd C. Miller [Sat, 21 Feb 2009 13:43:27 +0000 (13:43 +0000)]
Need to include compat.h

15 years agoMake audit_success and audit_failure generic functions in preparation
Todd C. Miller [Sat, 21 Feb 2009 13:37:47 +0000 (13:37 +0000)]
Make audit_success and audit_failure generic functions in preparation
for integrating linux audit support.

15 years agoremove duplicate include
Todd C. Miller [Sat, 21 Feb 2009 13:06:34 +0000 (13:06 +0000)]
remove duplicate include

15 years agoAdd missing include
Todd C. Miller [Fri, 20 Feb 2009 21:13:32 +0000 (21:13 +0000)]
Add missing include

15 years agoMay need to update the runas user after parsing command-based defaults.
Todd C. Miller [Fri, 20 Feb 2009 20:55:32 +0000 (20:55 +0000)]
May need to update the runas user after parsing command-based defaults.

15 years agoAdd missing pair of braces introduced with character class support.
Todd C. Miller [Wed, 18 Feb 2009 15:53:38 +0000 (15:53 +0000)]
Add missing pair of braces introduced with character class support.

15 years agoRename pwstars to pwfeedback
Todd C. Miller [Sun, 15 Feb 2009 20:53:49 +0000 (20:53 +0000)]
Rename pwstars to pwfeedback

15 years agoAdd const to make MacOS happy.
Todd C. Miller [Wed, 11 Feb 2009 01:25:27 +0000 (01:25 +0000)]
Add const to make MacOS happy.

15 years agoAdd bsm audit support from Christian S.J. Peron
Todd C. Miller [Wed, 11 Feb 2009 01:18:02 +0000 (01:18 +0000)]
Add bsm audit support from Christian S.J. Peron

15 years agoThis is new code, no DARPA notice.
Todd C. Miller [Wed, 11 Feb 2009 00:58:17 +0000 (00:58 +0000)]
This is new code, no DARPA notice.

15 years agoRename simple_glob -> fast_glob
Todd C. Miller [Tue, 10 Feb 2009 19:04:02 +0000 (19:04 +0000)]
Rename simple_glob -> fast_glob

15 years agog/c unused var
Todd C. Miller [Tue, 10 Feb 2009 14:39:15 +0000 (14:39 +0000)]
g/c unused var

15 years agoAdd simple_glob option to use fnmatch() instead of glob(). This is
Todd C. Miller [Tue, 10 Feb 2009 13:09:14 +0000 (13:09 +0000)]
Add simple_glob option to use fnmatch() instead of glob().  This is
useful when you need to specify patterns that reference network file
systems.

15 years agoadd term_* proto
Todd C. Miller [Tue, 10 Feb 2009 12:58:08 +0000 (12:58 +0000)]
add term_* proto

15 years agomention glob()
Todd C. Miller [Tue, 10 Feb 2009 12:51:20 +0000 (12:51 +0000)]
mention glob()

15 years agoDelete any pwstars we wrote after the user hits return. That way
Todd C. Miller [Mon, 9 Feb 2009 12:59:39 +0000 (12:59 +0000)]
Delete any pwstars we wrote after the user hits return.  That way
there is no record on screen as to the user's password length.

15 years agoMove terminal setting bits from tgetpass.c to term.c
Todd C. Miller [Sun, 8 Feb 2009 15:27:51 +0000 (15:27 +0000)]
Move terminal setting bits from tgetpass.c to term.c

15 years agoAdd pwstars sudoers option that causes sudo to print a star every
Todd C. Miller [Sun, 8 Feb 2009 00:50:48 +0000 (00:50 +0000)]
Add pwstars sudoers option that causes sudo to print a star every
time the user presses a key.