]> granicus.if.org Git - sudo/log
sudo
14 years agoAdd --insults=disabled configure option to allow people to build
Todd C. Miller [Mon, 12 Jul 2010 22:04:16 +0000 (18:04 -0400)]
Add --insults=disabled configure option to allow people to build
in insult support but have the insults disabled unless explicitly
enabled in sudoers.

14 years agoAdd prototype for gettime()
Todd C. Miller [Mon, 12 Jul 2010 22:00:05 +0000 (18:00 -0400)]
Add prototype for gettime()

14 years agoAdd support for a sudo-i pam.d file to be used for "sudo -i".
Todd C. Miller [Mon, 12 Jul 2010 21:57:53 +0000 (17:57 -0400)]
Add support for a sudo-i pam.d file to be used for "sudo -i".
Adapted from a RedHat patch.

14 years agoFix mkstemps() prototype
Todd C. Miller [Fri, 9 Jul 2010 14:22:20 +0000 (10:22 -0400)]
Fix mkstemps() prototype

14 years agoUse mkstemps() instead of mkstemp() in sudoedit. This allows sudoedit
Todd C. Miller [Fri, 9 Jul 2010 14:08:05 +0000 (10:08 -0400)]
Use mkstemps() instead of mkstemp() in sudoedit.  This allows sudoedit
to preserve the file extension (if any) which may be used by the editor
(like emacs) to choose the editing mode.

14 years agoTLS_CACERT is now an alias for TLS_CACERTFILE. OpenLDAP uses TLS_CACERT,
Todd C. Miller [Thu, 8 Jul 2010 13:02:03 +0000 (09:02 -0400)]
TLS_CACERT is now an alias for TLS_CACERTFILE.  OpenLDAP uses TLS_CACERT,
not TLS_CACERTFILE in its ldap.conf.  Other LDAP client code, such as
nss_ldap, uses TLS_CACERTFILE.  Also document why you should avoid
disabling TLS_CHECKPEER is possible.

14 years agoMake sudo_plugin format a bit more like a man page
Todd C. Miller [Wed, 7 Jul 2010 20:59:06 +0000 (16:59 -0400)]
Make sudo_plugin format a bit more like a man page

14 years agoAdd suport for negated user/host/command lists in a Defaults entry.
Todd C. Miller [Wed, 7 Jul 2010 18:33:27 +0000 (14:33 -0400)]
Add suport for negated user/host/command lists in a Defaults entry.
E.g. Defaults:!baduser noexec

14 years agoAdd uninstall target
Todd C. Miller [Wed, 7 Jul 2010 15:42:36 +0000 (11:42 -0400)]
Add uninstall target

14 years agoRemove unused AR, SED and RANLIB variables
Todd C. Miller [Wed, 7 Jul 2010 15:12:58 +0000 (11:12 -0400)]
Remove unused AR, SED and RANLIB variables

14 years agoDo not install sample plugins
Todd C. Miller [Wed, 7 Jul 2010 15:09:41 +0000 (11:09 -0400)]
Do not install sample plugins

14 years agoNow that sudoers is a dynamically loaded module we cannot override
Todd C. Miller [Tue, 6 Jul 2010 20:44:33 +0000 (16:44 -0400)]
Now that sudoers is a dynamically loaded module we cannot override
the libc environment functions because the symbols may already have
been resolved via libc.  Remove getenv/putenv/setenv/unsetenv
replacements from sudoers and add replacements for setenv/unsetenv
for systems that lack them.

14 years agoLink testsudoers with -ldl when needed
Todd C. Miller [Tue, 6 Jul 2010 17:34:05 +0000 (13:34 -0400)]
Link testsudoers with -ldl when needed

14 years agoRemove unused time.h and add limits.h for PATH_MAX
Todd C. Miller [Tue, 6 Jul 2010 17:25:05 +0000 (13:25 -0400)]
Remove unused time.h and add limits.h for PATH_MAX

14 years agoFix typo.
Todd C. Miller [Tue, 6 Jul 2010 17:24:00 +0000 (13:24 -0400)]
Fix typo.

14 years agoDo not depend on strlcpy/strlcat
Todd C. Miller [Mon, 5 Jul 2010 20:49:25 +0000 (16:49 -0400)]
Do not depend on strlcpy/strlcat

14 years agoStandalone test driver for sudoers group plugin.
Todd C. Miller [Mon, 5 Jul 2010 20:13:32 +0000 (16:13 -0400)]
Standalone test driver for sudoers group plugin.

14 years agoUse RTLD_LAZY instead of RTLD_NOW; was using RTLD_NOW as a debugging aid.
Todd C. Miller [Fri, 2 Jul 2010 20:03:21 +0000 (16:03 -0400)]
Use RTLD_LAZY instead of RTLD_NOW; was using RTLD_NOW as a debugging aid.

14 years agoFix style nit in function declarations
Todd C. Miller [Fri, 2 Jul 2010 19:56:04 +0000 (15:56 -0400)]
Fix style nit in function declarations

14 years agoDocument group_plugin syntax.
Todd C. Miller [Fri, 2 Jul 2010 19:37:47 +0000 (15:37 -0400)]
Document group_plugin syntax.

14 years agoDocument the sudoers group plugin.
Todd C. Miller [Fri, 2 Jul 2010 17:42:53 +0000 (13:42 -0400)]
Document the sudoers group plugin.

14 years agoReplace built-in non-unix group support with a sudoers group plugin.
Todd C. Miller [Fri, 2 Jul 2010 15:11:25 +0000 (11:11 -0400)]
Replace built-in non-unix group support with a sudoers group plugin.
Include a sample plugin that can read Unix-format group files.

14 years agoAdd a trailing slash to _PATH_SUDO_PLUGIN_DIR to simplify usage.
Todd C. Miller [Fri, 2 Jul 2010 14:53:47 +0000 (10:53 -0400)]
Add a trailing slash to _PATH_SUDO_PLUGIN_DIR to simplify usage.

14 years agoMove sudoers-specific bits out of sudo(8) and into sudoers(5)
Todd C. Miller [Thu, 1 Jul 2010 17:51:06 +0000 (13:51 -0400)]
Move sudoers-specific bits out of sudo(8) and into sudoers(5)

14 years agoSubstitute @io_logdir@ for the sudoers I/O log directory.
Todd C. Miller [Thu, 1 Jul 2010 17:49:10 +0000 (13:49 -0400)]
Substitute @io_logdir@ for the sudoers I/O log directory.

14 years agoSet usrinfo for AIX
Todd C. Miller [Tue, 29 Jun 2010 17:08:05 +0000 (13:08 -0400)]
Set usrinfo for AIX
Set adminstrative domain for the process when looking up user's
    password or group info and when preparing for execve().
Include strings.h even if string.h exists since they may define
    different things.  Fixes warnings on AIX and others.

14 years agoAdd a separate all target for AIX make which was using the entire
Todd C. Miller [Tue, 29 Jun 2010 17:05:27 +0000 (13:05 -0400)]
Add a separate all target for AIX make which was using the entire
LHS (not just the first entry) of the first target as the implicit
target.

14 years agoDo not rely on env.env_len when unsetting a variable, just use the
Todd C. Miller [Tue, 29 Jun 2010 13:26:55 +0000 (09:26 -0400)]
Do not rely on env.env_len when unsetting a variable, just use the
NULL terminator.

14 years agoIn unsetenv() check for NULL or empty name as per POSIX 1003.1-2008
Todd C. Miller [Tue, 29 Jun 2010 13:10:43 +0000 (09:10 -0400)]
In unsetenv() check for NULL or empty name as per POSIX 1003.1-2008

14 years agoUse warningx() instead of log_error() since the latter is not available
Todd C. Miller [Fri, 25 Jun 2010 14:06:08 +0000 (10:06 -0400)]
Use warningx() instead of log_error() since the latter is not available
to visudo or testsudoers.  This does mean that they don't end up in syslog.

14 years agoDefer call to sudo_nonunix_groupcheck_cleanup() until after we have
Todd C. Miller [Fri, 25 Jun 2010 14:05:51 +0000 (10:05 -0400)]
Defer call to sudo_nonunix_groupcheck_cleanup() until after we have
closed the sudoers sources.  From Quest sudo.

14 years agoIgnore case when matching user/group names in the cache. From Quest sudo.
Todd C. Miller [Fri, 25 Jun 2010 14:05:37 +0000 (10:05 -0400)]
Ignore case when matching user/group names in the cache.  From Quest sudo.

14 years agoAdd check for setkeycreatecon() when --with-selinux is specified.
Todd C. Miller [Thu, 24 Jun 2010 19:31:05 +0000 (15:31 -0400)]
Add check for setkeycreatecon() when --with-selinux is specified.

14 years agoError out if libaudit.h is missing or ununable when --with-linux-audit
Todd C. Miller [Thu, 24 Jun 2010 19:29:38 +0000 (15:29 -0400)]
Error out if libaudit.h is missing or ununable when --with-linux-audit
was specified

14 years agoAdd =head3 entries, mostly for the html version
Todd C. Miller [Thu, 24 Jun 2010 13:59:06 +0000 (09:59 -0400)]
Add =head3 entries, mostly for the html version

14 years agoMention when LDAP was incorporate.
Todd C. Miller [Tue, 22 Jun 2010 17:38:43 +0000 (13:38 -0400)]
Mention when LDAP was incorporate.

14 years agoDefine _LINUX_SOURCE_COMPAT on AIX for strsignal() prototype, it
Todd C. Miller [Mon, 21 Jun 2010 21:37:21 +0000 (17:37 -0400)]
Define _LINUX_SOURCE_COMPAT on AIX for strsignal() prototype, it
is not covered by _ALL_SOURCE.

14 years agoAdd a cast to quiet a compiler warning.
Todd C. Miller [Fri, 18 Jun 2010 22:45:43 +0000 (18:45 -0400)]
Add a cast to quiet a compiler warning.

14 years agoQuiet a compiler warning.
Todd C. Miller [Fri, 18 Jun 2010 22:39:40 +0000 (18:39 -0400)]
Quiet a compiler warning.

14 years agoCall set_fqdn() after sudoers has parsed instead of inline as a callback.
Todd C. Miller [Fri, 18 Jun 2010 21:47:55 +0000 (17:47 -0400)]
Call set_fqdn() after sudoers has parsed instead of inline as a callback.

14 years agoDo not call set_fqdn() until sudoers parses (where is gets run as a callback).
Todd C. Miller [Fri, 18 Jun 2010 21:25:59 +0000 (17:25 -0400)]
Do not call set_fqdn() until sudoers parses (where is gets run as a callback).

14 years agomention the change in tty ticket behavior when there is no tty
Todd C. Miller [Fri, 18 Jun 2010 19:43:35 +0000 (15:43 -0400)]
mention the change in tty ticket behavior when there is no tty

14 years agoDo not update tty ticket if there is no tty.
Todd C. Miller [Fri, 18 Jun 2010 14:00:16 +0000 (08:00 -0600)]
Do not update tty ticket if there is no tty.

14 years agoUpdate copyright year
Todd C. Miller [Fri, 18 Jun 2010 13:57:01 +0000 (09:57 -0400)]
Update copyright year

14 years agoDo not rely on BSD make's $>
Todd C. Miller [Fri, 18 Jun 2010 13:53:17 +0000 (09:53 -0400)]
Do not rely on BSD make's $>

14 years agoSet timedir to /var/db/sudo for darwin to match Apple sudo's location
Todd C. Miller [Fri, 18 Jun 2010 13:50:45 +0000 (09:50 -0400)]
Set timedir to /var/db/sudo for darwin to match Apple sudo's location

14 years agoAdd stub declarations for struct stat and struct timeval
Todd C. Miller [Wed, 16 Jun 2010 21:10:04 +0000 (17:10 -0400)]
Add stub declarations for struct stat and struct timeval

14 years agoRemove compat/sigaction.c
Todd C. Miller [Wed, 16 Jun 2010 21:05:04 +0000 (17:05 -0400)]
Remove compat/sigaction.c

14 years agoCheck for zlib.h in addition to libz.
Todd C. Miller [Wed, 16 Jun 2010 20:51:46 +0000 (16:51 -0400)]
Check for zlib.h in addition to libz.

14 years agoMove functions and symbols shared between exec.c and exec_pty.c
Todd C. Miller [Wed, 16 Jun 2010 20:46:56 +0000 (16:46 -0400)]
Move functions and symbols shared between exec.c and exec_pty.c
into sudo_exec.h.

14 years agoComment out rules to build .man.in and .cat files unless --with-devel
Todd C. Miller [Wed, 16 Jun 2010 20:01:51 +0000 (16:01 -0400)]
Comment out rules to build .man.in and .cat files unless --with-devel

14 years agoComment out rules to build .man.in and .cat files unless --with-devel
Todd C. Miller [Wed, 16 Jun 2010 19:59:52 +0000 (15:59 -0400)]
Comment out rules to build .man.in and .cat files unless --with-devel

14 years agoQuote any non-alphanumeric characters other than '_' or '-' when passing
Todd C. Miller [Wed, 16 Jun 2010 19:27:40 +0000 (15:27 -0400)]
Quote any non-alphanumeric characters other than '_' or '-' when passing
a command to be run via the shell for the -s and -i options.

14 years agoAdd back .man suffix
Todd C. Miller [Wed, 16 Jun 2010 16:19:23 +0000 (12:19 -0400)]
Add back .man suffix

14 years agoAdd Linux audit support.
Todd C. Miller [Wed, 16 Jun 2010 15:17:02 +0000 (11:17 -0400)]
Add Linux audit support.

14 years agoRemove an XXX
Todd C. Miller [Tue, 15 Jun 2010 21:00:42 +0000 (17:00 -0400)]
Remove an XXX

14 years agoAdd -f (filter) option to sudoreplay to allow certain streams to
Todd C. Miller [Tue, 15 Jun 2010 20:11:25 +0000 (16:11 -0400)]
Add -f (filter) option to sudoreplay to allow certain streams to
be replayed and others ignored.

14 years agoFix -A flag when askpass is specified in sudo.conf or if sudo doesn't need
Todd C. Miller [Tue, 15 Jun 2010 19:11:10 +0000 (15:11 -0400)]
Fix -A flag when askpass is specified in sudo.conf or if sudo doesn't need
to read a password.

14 years agoClean up some XXXs
Todd C. Miller [Tue, 15 Jun 2010 19:01:11 +0000 (15:01 -0400)]
Clean up some XXXs

14 years agoAdd support for multiple sudoers_base entries in ldap.conf.
Todd C. Miller [Tue, 15 Jun 2010 14:33:30 +0000 (10:33 -0400)]
Add support for multiple sudoers_base entries in ldap.conf.
From Joachim Henke

14 years agoremove setsid check, we require a POSIX system
Todd C. Miller [Tue, 15 Jun 2010 13:24:56 +0000 (09:24 -0400)]
remove setsid check, we require a POSIX system

14 years agoCheck for dup2() failure.
Todd C. Miller [Tue, 15 Jun 2010 13:02:23 +0000 (09:02 -0400)]
Check for dup2() failure.

14 years agoRemove dup2() check, it is not optional.
Todd C. Miller [Tue, 15 Jun 2010 12:42:17 +0000 (08:42 -0400)]
Remove dup2() check, it is not optional.

14 years agosync with sudo 1.7.3
Todd C. Miller [Mon, 14 Jun 2010 20:20:41 +0000 (16:20 -0400)]
sync with sudo 1.7.3

14 years agoSunOS does not ship with an ANSI compiler
Todd C. Miller [Mon, 14 Jun 2010 20:14:19 +0000 (16:14 -0400)]
SunOS does not ship with an ANSI compiler

14 years agoUpdate OS specific notes. Delete some really ancient ones and move
Todd C. Miller [Mon, 14 Jun 2010 20:11:01 +0000 (16:11 -0400)]
Update OS specific notes.  Delete some really ancient ones and move
older ones to the end of the list.

14 years agoSudo can be downloaded from the web site too
Todd C. Miller [Mon, 14 Jun 2010 19:16:57 +0000 (15:16 -0400)]
Sudo can be downloaded from the web site too
Mention "OS dependent notes" section in INSTALL

14 years agoCall selinux_restore_tty() as part of cleanup() so it gets called
Todd C. Miller [Mon, 14 Jun 2010 19:09:15 +0000 (15:09 -0400)]
Call selinux_restore_tty() as part of cleanup() so it gets called
from error()/errorx()

14 years agoRemove obsolete porting guide
Todd C. Miller [Mon, 14 Jun 2010 18:56:45 +0000 (14:56 -0400)]
Remove obsolete porting guide

14 years agoMove union sudo_in_addr_un into interfaces.h
Todd C. Miller [Mon, 14 Jun 2010 18:52:53 +0000 (14:52 -0400)]
Move union sudo_in_addr_un into interfaces.h

14 years agoRemove useless circular dependencies
Todd C. Miller [Mon, 14 Jun 2010 16:35:06 +0000 (12:35 -0400)]
Remove useless circular dependencies

14 years agoConvert to ANSI C function declarations
Todd C. Miller [Mon, 14 Jun 2010 16:30:21 +0000 (12:30 -0400)]
Convert to ANSI C function declarations

14 years agoUpdate copyright year
Todd C. Miller [Mon, 14 Jun 2010 16:19:49 +0000 (12:19 -0400)]
Update copyright year

14 years agoFix commented DEVDOCS when not in devel mode.
Todd C. Miller [Mon, 14 Jun 2010 16:19:29 +0000 (12:19 -0400)]
Fix commented DEVDOCS when not in devel mode.

14 years agoQuiet a compiler warning.
Todd C. Miller [Mon, 14 Jun 2010 15:18:50 +0000 (11:18 -0400)]
Quiet a compiler warning.

14 years agoQuiet a compiler warning.
Todd C. Miller [Mon, 14 Jun 2010 14:56:01 +0000 (10:56 -0400)]
Quiet a compiler warning.

14 years agoMake all functions in ldap.c static
Todd C. Miller [Mon, 14 Jun 2010 14:37:42 +0000 (10:37 -0400)]
Make all functions in ldap.c static

14 years agoUpdates from Alain Roy to provide better examples for importing the
Todd C. Miller [Mon, 14 Jun 2010 14:20:41 +0000 (10:20 -0400)]
Updates from Alain Roy to provide better examples for importing the
schema and to fix problems caused by Windows validating attributes
which have not yet been added before committing the changes.

14 years agoLeave rules to build .man.in and .cat files uncommented but only make
Todd C. Miller [Fri, 11 Jun 2010 22:34:24 +0000 (18:34 -0400)]
Leave rules to build .man.in and .cat files uncommented but only make
them part of the "all" rule in devel mode.
Generate .cat files directly from .man.in instead of .man using default
values in configure.in

14 years agoBump sudo version to 1.8.0b1
Todd C. Miller [Fri, 11 Jun 2010 14:55:30 +0000 (10:55 -0400)]
Bump sudo version to 1.8.0b1

14 years agoPrint configure args with verbose version information.
Todd C. Miller [Fri, 11 Jun 2010 14:53:44 +0000 (10:53 -0400)]
Print configure args with verbose version information.

14 years agoRemove tfd from struct sudoersfile; it is not used.
Todd C. Miller [Fri, 11 Jun 2010 13:53:44 +0000 (09:53 -0400)]
Remove tfd from struct sudoersfile; it is not used.
Add prev pointer to struct sudoersfile.
Declare list of sudoersfile using TQ_DECLARE.
Use tq_append to append sudoers entries to the tail queue.

14 years agoDescribe tty timestamp improvements
Todd C. Miller [Thu, 10 Jun 2010 22:04:08 +0000 (18:04 -0400)]
Describe tty timestamp improvements

14 years agoA comment character may not be part of a command line argument
Todd C. Miller [Thu, 10 Jun 2010 21:52:51 +0000 (17:52 -0400)]
A comment character may not be part of a command line argument
unless it is quoted with a backslash.  Fixes parsing of:
    testuser ALL=NOPASSWD: /usr/bin/wl #comment foo bar
closes bz #441

14 years agoMake this read a little bit better when passwd_timeout is 0.
Todd C. Miller [Thu, 10 Jun 2010 21:38:56 +0000 (17:38 -0400)]
Make this read a little bit better when passwd_timeout is 0.

14 years agoAttempt to handle a default password prompt timeout of zero more gracefully.
Todd C. Miller [Thu, 10 Jun 2010 21:16:27 +0000 (17:16 -0400)]
Attempt to handle a default password prompt timeout of zero more gracefully.

14 years agoDo not override value of keepopen global, instead restore it to the
Todd C. Miller [Thu, 10 Jun 2010 20:36:41 +0000 (16:36 -0400)]
Do not override value of keepopen global, instead restore it to the
value we pushed onto the stack when popping.

14 years agoAdd dependency for utility programs on libreplace and libcommon
Todd C. Miller [Thu, 10 Jun 2010 20:10:17 +0000 (16:10 -0400)]
Add dependency for utility programs on libreplace and libcommon

14 years agoRemove sigaction emulation
Todd C. Miller [Thu, 10 Jun 2010 19:18:23 +0000 (15:18 -0400)]
Remove sigaction emulation
Use SA_INTERRUPT in sa_flags

14 years agoWe don't use getgrouplist() at the moment so there's no need to
Todd C. Miller [Thu, 10 Jun 2010 19:12:37 +0000 (15:12 -0400)]
We don't use getgrouplist() at the moment so there's no need to
provide a compat version.

14 years agosync with reality
Todd C. Miller [Thu, 10 Jun 2010 19:12:07 +0000 (15:12 -0400)]
sync with reality

14 years agoFix visiblepw sudoers option; the plugin API portion still needs documenting
Todd C. Miller [Thu, 10 Jun 2010 19:02:32 +0000 (15:02 -0400)]
Fix visiblepw sudoers option; the plugin API portion still needs documenting

14 years agoPrint sudo version as well.
Todd C. Miller [Thu, 10 Jun 2010 18:25:25 +0000 (14:25 -0400)]
Print sudo version as well.

14 years agoUse sudo_printf for I/O log version
Todd C. Miller [Thu, 10 Jun 2010 18:24:06 +0000 (14:24 -0400)]
Use sudo_printf for I/O log version
Clarify policy plugin version string

14 years agoSilence some compiler warnings
Todd C. Miller [Thu, 10 Jun 2010 16:27:18 +0000 (12:27 -0400)]
Silence some compiler warnings

14 years agoStore askpass path in a global instead of uses setenv() which many
Todd C. Miller [Thu, 10 Jun 2010 16:03:40 +0000 (12:03 -0400)]
Store askpass path in a global instead of uses setenv() which many
systems lack.

14 years agoMove askpass path specification from sudoers to sudo.conf.
Todd C. Miller [Wed, 9 Jun 2010 21:40:44 +0000 (17:40 -0400)]
Move askpass path specification from sudoers to sudo.conf.

14 years agoUse a flag bit in struct command_details for selinux instead of a separate
Todd C. Miller [Wed, 9 Jun 2010 20:25:44 +0000 (16:25 -0400)]
Use a flag bit in struct command_details for selinux instead of a separate
field.

14 years agoImplement background mode. If I/O logging we use pipes instead of a pty.
Todd C. Miller [Wed, 9 Jun 2010 20:19:45 +0000 (16:19 -0400)]
Implement background mode.  If I/O logging we use pipes instead of a pty.

14 years agoMove compat definition of NSIG to compat.h
Todd C. Miller [Wed, 9 Jun 2010 17:57:07 +0000 (13:57 -0400)]
Move compat definition of NSIG to compat.h