]> granicus.if.org Git - sudo/log
sudo
13 years agofix --with-iologdir=no
Todd C. Miller [Fri, 4 Feb 2011 19:44:47 +0000 (14:44 -0500)]
fix --with-iologdir=no

13 years agofix typo that broke --with-iologdir
Todd C. Miller [Fri, 4 Feb 2011 19:33:54 +0000 (14:33 -0500)]
fix typo that broke --with-iologdir

13 years agoBump version to 1.8.0b4
Todd C. Miller [Thu, 3 Feb 2011 19:26:58 +0000 (14:26 -0500)]
Bump version to 1.8.0b4

13 years agosync
Todd C. Miller [Thu, 3 Feb 2011 19:23:36 +0000 (14:23 -0500)]
sync

13 years agoAttempt to clarify how users and groups interact in Runas_Specs
Todd C. Miller [Thu, 3 Feb 2011 18:20:43 +0000 (13:20 -0500)]
Attempt to clarify how users and groups interact in Runas_Specs

13 years agoAdd test for quoted group that contains escaped double quotes
Todd C. Miller [Thu, 3 Feb 2011 18:07:01 +0000 (13:07 -0500)]
Add test for quoted group that contains escaped double quotes

13 years agoPass SIGUSR1/SIGUSR2 through to the child.
Todd C. Miller [Thu, 3 Feb 2011 15:25:42 +0000 (10:25 -0500)]
Pass SIGUSR1/SIGUSR2 through to the child.

13 years agoUse special values SIGCONT_FG and SIGCONT_BG instead of SIGUSR1 and
Todd C. Miller [Thu, 3 Feb 2011 14:59:41 +0000 (09:59 -0500)]
Use special values SIGCONT_FG and SIGCONT_BG instead of SIGUSR1 and
SIGUSR2 to indicate whether the child should be continued in the
foreground or background.

13 years agoUse pid_t not int and check the return value of kill()
Todd C. Miller [Thu, 3 Feb 2011 14:20:34 +0000 (09:20 -0500)]
Use pid_t not int and check the return value of kill()

13 years agoRemove obsolete comment
Todd C. Miller [Wed, 2 Feb 2011 19:24:48 +0000 (14:24 -0500)]
Remove obsolete comment

13 years agoIn non-pty mode before continuing the child, make it the foreground
Todd C. Miller [Wed, 2 Feb 2011 19:19:23 +0000 (14:19 -0500)]
In non-pty mode before continuing the child, make it the foreground
pgrp if possible.  Fixes resuming a shell.

13 years agoIf we get a signal other than SIGCHLD in the monitor, pass it directly
Todd C. Miller [Wed, 2 Feb 2011 18:27:24 +0000 (13:27 -0500)]
If we get a signal other than SIGCHLD in the monitor, pass it directly
to the child.

13 years agoSave signal state before changing handlers and restore before
Todd C. Miller [Wed, 2 Feb 2011 17:44:35 +0000 (12:44 -0500)]
Save signal state before changing handlers and restore before
we execute the command.

13 years agoUse a char array to map a number to a base36 digit.
Todd C. Miller [Tue, 1 Feb 2011 19:54:08 +0000 (14:54 -0500)]
Use a char array to map a number to a base36 digit.

13 years agoBe clear about what versions of sudo support new LDAP attributes.
Todd C. Miller [Tue, 1 Feb 2011 19:31:04 +0000 (14:31 -0500)]
Be clear about what versions of sudo support new LDAP attributes.
Fix up some formatting of attribute names.  Minor other tweaks.

13 years agomatch quoted strings the same way whether in a Defaults line or as
Todd C. Miller [Mon, 31 Jan 2011 20:13:51 +0000 (15:13 -0500)]
match quoted strings the same way whether in a Defaults line or as
a user/group/netgroup name.  Fixes escaped double quotes in quoted
user/group/netgroup names.

13 years ago'make check' depends on visudo and testsudoers
Todd C. Miller [Mon, 31 Jan 2011 19:38:59 +0000 (14:38 -0500)]
'make check' depends on visudo and testsudoers

13 years agoAdd sudoOrder attribute to each entry
Todd C. Miller [Mon, 31 Jan 2011 14:47:32 +0000 (09:47 -0500)]
Add sudoOrder attribute to each entry
Parse LOG_{INPUT,OUTPUT} tags

13 years agoMention LDAP attribute compatibility status.
Todd C. Miller [Sun, 30 Jan 2011 20:43:24 +0000 (15:43 -0500)]
Mention LDAP attribute compatibility status.

13 years agoMention phpQLAdmin
Todd C. Miller [Fri, 28 Jan 2011 22:56:25 +0000 (17:56 -0500)]
Mention phpQLAdmin

13 years agoAdd --disable-env-reset configure option.
Todd C. Miller [Fri, 28 Jan 2011 21:52:25 +0000 (16:52 -0500)]
Add --disable-env-reset configure option.

13 years agoDocument that sudoers_locale also affects logging and email.
Todd C. Miller [Fri, 28 Jan 2011 21:15:57 +0000 (16:15 -0500)]
Document that sudoers_locale also affects logging and email.

13 years agoDo logging and email sending in the locale specified by the
Todd C. Miller [Fri, 28 Jan 2011 21:11:47 +0000 (16:11 -0500)]
Do logging and email sending in the locale specified by the
"sudoers_locale" setting ("C" by default).  Email send by sudo
includes MIME headers when the sudoers locale is not "C".

13 years agoFix indentation
Todd C. Miller [Thu, 27 Jan 2011 15:03:59 +0000 (10:03 -0500)]
Fix indentation

13 years agoPerform command escaping for "sudo -s" and "sudo -i" after validating
Todd C. Miller [Tue, 25 Jan 2011 14:53:57 +0000 (09:53 -0500)]
Perform command escaping for "sudo -s" and "sudo -i" after validating
sudoers so the sudoers entries don't need to have all the backslashes.

13 years agoPrepend "list " to the command logged when "sudo -l command" is
Todd C. Miller [Mon, 24 Jan 2011 20:39:09 +0000 (15:39 -0500)]
Prepend "list " to the command logged when "sudo -l command" is
used to make it clear that the command was listed, not run.

13 years agocosmetic change
Todd C. Miller [Mon, 24 Jan 2011 20:35:44 +0000 (15:35 -0500)]
cosmetic change

13 years agostandardize on "return foo;" rather than "return(foo);" or "return (foo);"
Todd C. Miller [Mon, 24 Jan 2011 20:15:18 +0000 (15:15 -0500)]
standardize on "return foo;" rather than "return(foo);" or "return (foo);"

13 years agoDo not reject sudoers file just because it is root-writable.
Todd C. Miller [Mon, 24 Jan 2011 19:25:51 +0000 (14:25 -0500)]
Do not reject sudoers file just because it is root-writable.

14 years agosync
Todd C. Miller [Fri, 21 Jan 2011 15:37:53 +0000 (10:37 -0500)]
sync

14 years agoFor "sudo -U user -l" if user is not authorized on the host, say so.
Todd C. Miller [Fri, 21 Jan 2011 15:10:26 +0000 (10:10 -0500)]
For "sudo -U user -l" if user is not authorized on the host, say so.

14 years agoIn sudo_ldap_lookup(), always do the initial sudoers check as the
Todd C. Miller [Fri, 21 Jan 2011 13:10:26 +0000 (08:10 -0500)]
In sudo_ldap_lookup(), always do the initial sudoers check as the
invoking user.  If we are listing another user's privs we will
do a separate lookup using list_pw later.

14 years agoadd parser fill tests
Todd C. Miller [Thu, 20 Jan 2011 22:00:07 +0000 (17:00 -0500)]
add parser fill tests

14 years agoDon't test features not supported by the bundled glob()
Todd C. Miller [Thu, 20 Jan 2011 21:58:35 +0000 (16:58 -0500)]
Don't test features not supported by the bundled glob()

14 years agoUpdate copyright year to 2011
Todd C. Miller [Thu, 20 Jan 2011 21:46:56 +0000 (16:46 -0500)]
Update copyright year to 2011

14 years agoWhen listing, use separate lbufs for the defaults and the privileges and
Todd C. Miller [Thu, 20 Jan 2011 21:19:42 +0000 (16:19 -0500)]
When listing, use separate lbufs for the defaults and the privileges and
only print something if the number of privileges is non-zero.  Fixes
extraneous Defaults output for "sudo -U unauthorized_user -l".

14 years agoStash pointer to user group vector in LDAP handle and only reuse
Todd C. Miller [Thu, 20 Jan 2011 21:16:08 +0000 (16:16 -0500)]
Stash pointer to user group vector in LDAP handle and only reuse
the query if it has not changed.  We always allocate a new buffer
when we reset the group vector so a simple pointer check is sufficient.

14 years agoCheck initgroups() return value.
Todd C. Miller [Thu, 20 Jan 2011 21:15:34 +0000 (16:15 -0500)]
Check initgroups() return value.

14 years agoAdd tests for the fill functions in toke_util.c
Todd C. Miller [Thu, 20 Jan 2011 15:09:19 +0000 (10:09 -0500)]
Add tests for the fill functions in toke_util.c

14 years agofix copyright year
Todd C. Miller [Wed, 19 Jan 2011 22:38:38 +0000 (17:38 -0500)]
fix copyright year

14 years agosync
Todd C. Miller [Wed, 19 Jan 2011 13:40:05 +0000 (08:40 -0500)]
sync

14 years agoClear, don't set, OPOST in c_oflag as was intended in 506ad5ae9b4e.
Todd C. Miller [Tue, 18 Jan 2011 16:26:48 +0000 (11:26 -0500)]
Clear, don't set, OPOST in c_oflag as was intended in 506ad5ae9b4e.

14 years agoAdd Requires line for audit-libs >= 1.4 for RHEL5+
Todd C. Miller [Fri, 14 Jan 2011 20:03:57 +0000 (15:03 -0500)]
Add Requires line for audit-libs >= 1.4 for RHEL5+

14 years agosync with git version
Todd C. Miller [Fri, 14 Jan 2011 19:33:32 +0000 (14:33 -0500)]
sync with git version

14 years agofix typo
Todd C. Miller [Thu, 13 Jan 2011 18:10:15 +0000 (13:10 -0500)]
fix typo

14 years agoUpdate for sudo 1.7.4p5
Todd C. Miller [Wed, 12 Jan 2011 18:43:50 +0000 (13:43 -0500)]
Update for sudo 1.7.4p5

14 years agoAdd sudoNotBefore and sudoNotAfter attributes as optional attributes
Todd C. Miller [Wed, 12 Jan 2011 14:25:24 +0000 (09:25 -0500)]
Add sudoNotBefore and sudoNotAfter attributes as optional attributes
to the sudoRole object class.  From Andreas Mueller

14 years agoMention "sudo -g group" password check fix.
Todd C. Miller [Tue, 11 Jan 2011 15:44:36 +0000 (10:44 -0500)]
Mention "sudo -g group" password check fix.

14 years agoFix "sudo -g" support in the sudoers module.
Todd C. Miller [Tue, 11 Jan 2011 15:42:01 +0000 (10:42 -0500)]
Fix "sudo -g" support in the sudoers module.

14 years agoIf the user is running sudo as himself but as a different group we
Todd C. Miller [Tue, 11 Jan 2011 15:35:20 +0000 (10:35 -0500)]
If the user is running sudo as himself but as a different group we
need to prompt for a password.

14 years agoAdd support for TIMEOUT in ldap.conf, mapping to the OpenLDAP
Todd C. Miller [Mon, 10 Jan 2011 15:33:22 +0000 (10:33 -0500)]
Add support for TIMEOUT in ldap.conf, mapping to the OpenLDAP
LDAP_OPT_TIMEOUT.  There is no corresponding option for mozilla-derived
LDAP SDKs but we can pass the timeout parameter to ldap_search_ext_s()
or ldap_search_st() when possible.

14 years agoregen
Todd C. Miller [Mon, 10 Jan 2011 14:28:53 +0000 (09:28 -0500)]
regen

14 years agoAdd NETWORK_TIMEOUT as an alias for BIND_TIMELIMIT for compatibility
Todd C. Miller [Mon, 10 Jan 2011 14:27:58 +0000 (09:27 -0500)]
Add NETWORK_TIMEOUT as an alias for BIND_TIMELIMIT for compatibility
with OpenLDAP ldap.conf files.

14 years agoIf user has no supplementary groups, fall back on checking the group
Todd C. Miller [Mon, 10 Jan 2011 14:23:54 +0000 (09:23 -0500)]
If user has no supplementary groups, fall back on checking the group
file expliticly.

14 years agoconstify
Todd C. Miller [Sun, 9 Jan 2011 00:54:30 +0000 (19:54 -0500)]
constify

14 years agoMove fill macro to toke.h
Todd C. Miller [Sun, 9 Jan 2011 00:34:31 +0000 (19:34 -0500)]
Move fill macro to toke.h

14 years agoSplit tokenizer utility functions out into toke_util.c
Todd C. Miller [Sat, 8 Jan 2011 20:42:39 +0000 (15:42 -0500)]
Split tokenizer utility functions out into toke_util.c

14 years agoANSIfy
Todd C. Miller [Sat, 8 Jan 2011 20:15:30 +0000 (15:15 -0500)]
ANSIfy

14 years agosync
Todd C. Miller [Fri, 7 Jan 2011 20:13:42 +0000 (15:13 -0500)]
sync

14 years agoAdd visudo tests to check target
Todd C. Miller [Fri, 7 Jan 2011 20:10:28 +0000 (15:10 -0500)]
Add visudo tests to check target

14 years agoAdd my regress tests for fnmatch() and glob() from OpenBSD.
Todd C. Miller [Fri, 7 Jan 2011 19:48:19 +0000 (14:48 -0500)]
Add my regress tests for fnmatch() and glob() from OpenBSD.

14 years agoAdd regress test for command tags using visudo -c
Todd C. Miller [Fri, 7 Jan 2011 19:01:57 +0000 (14:01 -0500)]
Add regress test for command tags using visudo -c

14 years agoAdd support for regress tests using testsudoers
Todd C. Miller [Fri, 7 Jan 2011 18:19:32 +0000 (13:19 -0500)]
Add support for regress tests using testsudoers

14 years agoNeed to set user_name explicitly due to internal changes made when
Todd C. Miller [Fri, 7 Jan 2011 16:56:15 +0000 (11:56 -0500)]
Need to set user_name explicitly due to internal changes made when
converting sudoers to a plugin.

14 years agoAdd regression tests for iolog_path()
Todd C. Miller [Thu, 6 Jan 2011 16:05:28 +0000 (11:05 -0500)]
Add regression tests for iolog_path()

14 years agoAdd support for "make Makefile" to regenerate Makefile from Makefile.in
Todd C. Miller [Thu, 6 Jan 2011 15:44:28 +0000 (10:44 -0500)]
Add support for "make Makefile" to regenerate Makefile from Makefile.in

14 years agoQuiest a bogus compiler warning.
Todd C. Miller [Thu, 6 Jan 2011 15:23:20 +0000 (10:23 -0500)]
Quiest a bogus compiler warning.

14 years agoProtect call to setlocale() with HAVE_SETLOCALE
Todd C. Miller [Wed, 5 Jan 2011 21:27:44 +0000 (16:27 -0500)]
Protect call to setlocale() with HAVE_SETLOCALE

14 years agomkstemps.c was renamed mktemp.c
Todd C. Miller [Tue, 4 Jan 2011 19:27:51 +0000 (14:27 -0500)]
mkstemps.c was renamed mktemp.c

14 years agoUpdate from 1.7 branch
Todd C. Miller [Tue, 4 Jan 2011 18:54:12 +0000 (13:54 -0500)]
Update from 1.7 branch

14 years agoUse "mv -f" when regenerating ChangeLog
Todd C. Miller [Tue, 4 Jan 2011 18:48:50 +0000 (13:48 -0500)]
Use "mv -f" when regenerating ChangeLog

14 years agoFix NULL dereference with "sudo -g group" when the sudoers rule has
Todd C. Miller [Tue, 4 Jan 2011 17:44:39 +0000 (12:44 -0500)]
Fix NULL dereference with "sudo -g group" when the sudoers rule has
no runas user or group listed.  Fixes RedHat bug Bug 667103.

14 years agoCorrect the default sudo.conf example
Todd C. Miller [Mon, 3 Jan 2011 18:09:03 +0000 (13:09 -0500)]
Correct the default sudo.conf example

14 years agoReset slashp if we allocate a new buffer for strftime()
Todd C. Miller [Fri, 31 Dec 2010 15:55:49 +0000 (10:55 -0500)]
Reset slashp if we allocate a new buffer for strftime()

14 years agoAdd extra out parameter to expand_iolog_path() to allow the caller
Todd C. Miller [Fri, 31 Dec 2010 14:55:40 +0000 (09:55 -0500)]
Add extra out parameter to expand_iolog_path() to allow the caller
to split the path into dir and file components if needed.

14 years agomkdir_iopath() returns size_t now that it uses strlcpy() and not snprintf()
Todd C. Miller [Thu, 30 Dec 2010 23:08:09 +0000 (18:08 -0500)]
mkdir_iopath() returns size_t now that it uses strlcpy() and not snprintf()

14 years agoTrim leading slashes from iolog_file and trailing slashes from iolog_dir
Todd C. Miller [Thu, 30 Dec 2010 23:05:53 +0000 (18:05 -0500)]
Trim leading slashes from iolog_file and trailing slashes from iolog_dir

14 years agoPass a single I/O log file name in command_details instead of
Todd C. Miller [Thu, 30 Dec 2010 22:09:01 +0000 (17:09 -0500)]
Pass a single I/O log file name in command_details instead of
separate dir + file parameters.

14 years agochange an error() to errorx()
Todd C. Miller [Thu, 30 Dec 2010 22:02:43 +0000 (17:02 -0500)]
change an error() to errorx()

14 years agoAdd missing cwd line to I/O log info file that got dropped when
Todd C. Miller [Thu, 30 Dec 2010 22:01:41 +0000 (17:01 -0500)]
Add missing cwd line to I/O log info file that got dropped when
iolog_deserialize_info() was added

14 years agoAvoid relying on globals filled in by the sudoers policy module for
Todd C. Miller [Wed, 29 Dec 2010 22:32:04 +0000 (17:32 -0500)]
Avoid relying on globals filled in by the sudoers policy module for
the sudoers I/O log module.  The I/O log open function now pulls the
bits it needs out of user_info and command_info.

14 years agoIf no iolog file is specified by the policy plugin, use io_nextid()
Todd C. Miller [Wed, 29 Dec 2010 16:07:45 +0000 (11:07 -0500)]
If no iolog file is specified by the policy plugin, use io_nextid()
to determine the next file in the sequence.

14 years agoDocument iolog_compress in command_info
Todd C. Miller [Tue, 28 Dec 2010 17:25:06 +0000 (12:25 -0500)]
Document iolog_compress in command_info

14 years agoAdd support for the iolog_compress variable in command_info.
Todd C. Miller [Tue, 28 Dec 2010 17:23:18 +0000 (12:23 -0500)]
Add support for the iolog_compress variable in command_info.

14 years agoAdd sigsetjmp() calls to all plugin entry points just to be safe.
Todd C. Miller [Tue, 28 Dec 2010 16:02:12 +0000 (11:02 -0500)]
Add sigsetjmp() calls to all plugin entry points just to be safe.

14 years agoDon't need iolog variables in struct command_details, they are for
Todd C. Miller [Tue, 28 Dec 2010 15:50:45 +0000 (10:50 -0500)]
Don't need iolog variables in struct command_details, they are for
the I/O log plugins to handle.

14 years agoDocument use of mkdtemp() for iolog path teplates
Todd C. Miller [Mon, 27 Dec 2010 20:43:01 +0000 (15:43 -0500)]
Document use of mkdtemp() for iolog path teplates

14 years agoregen
Todd C. Miller [Mon, 27 Dec 2010 19:45:13 +0000 (14:45 -0500)]
regen

14 years agoDocument iolog_file and supported escape sequences for sudoers.
Todd C. Miller [Mon, 27 Dec 2010 19:43:50 +0000 (14:43 -0500)]
Document iolog_file and supported escape sequences for sudoers.
Clarify that iolog_file can contain directories.

14 years agoFix building of mkstemps/mkdtemp replacements.
Todd C. Miller [Mon, 27 Dec 2010 19:07:49 +0000 (14:07 -0500)]
Fix building of mkstemps/mkdtemp replacements.

14 years agoProvide mkdtemp() for systems without it.
Todd C. Miller [Mon, 27 Dec 2010 18:49:49 +0000 (13:49 -0500)]
Provide mkdtemp() for systems without it.

14 years agoFix typo
Todd C. Miller [Mon, 27 Dec 2010 18:49:06 +0000 (13:49 -0500)]
Fix typo

14 years agoOnly use mkdtemp() if the path ends in at least 6 Xs since otherwise
Todd C. Miller [Mon, 27 Dec 2010 17:32:28 +0000 (12:32 -0500)]
Only use mkdtemp() if the path ends in at least 6 Xs since otherwise
glibc mkdtemp() returns EINVAL.

14 years agoAllow sudoers to specify the iolog file in addition to the iolog dir.
Todd C. Miller [Mon, 27 Dec 2010 17:18:32 +0000 (12:18 -0500)]
Allow sudoers to specify the iolog file in addition to the iolog dir.
Add escape sequence support to iolog file and dir: sequence number,
    user, group, runas_user, runas_group, hostname and command in
    addition to any escape sequence recognized by strftime(3).

14 years agoAdd missing sigsetjmp() call in I/O plugin open function.
Todd C. Miller [Mon, 27 Dec 2010 16:24:47 +0000 (11:24 -0500)]
Add missing sigsetjmp() call in I/O plugin open function.
Fixes a crash when the I/O plugin calls error(), errorx() or log_error().

14 years agoGive the policy module fine-grained control over what the I/O plugin
Todd C. Miller [Tue, 21 Dec 2010 22:43:18 +0000 (17:43 -0500)]
Give the policy module fine-grained control over what the I/O plugin
logs.

14 years agoClear OPOST from c_oflag like we used to. Fixes screen-based editors
Todd C. Miller [Tue, 21 Dec 2010 17:22:07 +0000 (12:22 -0500)]
Clear OPOST from c_oflag like we used to.  Fixes screen-based editors
such as vi.

14 years agoClarify umask option description. From Reuben Thomas.
Todd C. Miller [Tue, 21 Dec 2010 15:23:45 +0000 (10:23 -0500)]
Clarify umask option description.  From Reuben Thomas.

14 years agoPick last match in LDAP sudoers too
Todd C. Miller [Mon, 20 Dec 2010 21:37:44 +0000 (16:37 -0500)]
Pick last match in LDAP sudoers too

14 years agoDocument iolog_file, iolog_dir and use_pty
Todd C. Miller [Mon, 20 Dec 2010 21:29:08 +0000 (16:29 -0500)]
Document iolog_file, iolog_dir and use_pty