]>
granicus.if.org Git - sudo/log
Todd C. Miller [Fri, 21 Jan 2011 15:37:53 +0000 (10:37 -0500)]
sync
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.
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.
Todd C. Miller [Thu, 20 Jan 2011 22:00:07 +0000 (17:00 -0500)]
add parser fill tests
Todd C. Miller [Thu, 20 Jan 2011 21:58:35 +0000 (16:58 -0500)]
Don't test features not supported by the bundled glob()
Todd C. Miller [Thu, 20 Jan 2011 21:46:56 +0000 (16:46 -0500)]
Update copyright year to 2011
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".
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.
Todd C. Miller [Thu, 20 Jan 2011 21:15:34 +0000 (16:15 -0500)]
Check initgroups() return value.
Todd C. Miller [Thu, 20 Jan 2011 15:09:19 +0000 (10:09 -0500)]
Add tests for the fill functions in toke_util.c
Todd C. Miller [Wed, 19 Jan 2011 22:38:38 +0000 (17:38 -0500)]
fix copyright year
Todd C. Miller [Wed, 19 Jan 2011 13:40:05 +0000 (08:40 -0500)]
sync
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 .
Todd C. Miller [Fri, 14 Jan 2011 20:03:57 +0000 (15:03 -0500)]
Add Requires line for audit-libs >= 1.4 for RHEL5+
Todd C. Miller [Fri, 14 Jan 2011 19:33:32 +0000 (14:33 -0500)]
sync with git version
Todd C. Miller [Thu, 13 Jan 2011 18:10:15 +0000 (13:10 -0500)]
fix typo
Todd C. Miller [Wed, 12 Jan 2011 18:43:50 +0000 (13:43 -0500)]
Update for sudo 1.7.4p5
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
Todd C. Miller [Tue, 11 Jan 2011 15:44:36 +0000 (10:44 -0500)]
Mention "sudo -g group" password check fix.
Todd C. Miller [Tue, 11 Jan 2011 15:42:01 +0000 (10:42 -0500)]
Fix "sudo -g" support in the sudoers module.
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.
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.
Todd C. Miller [Mon, 10 Jan 2011 14:28:53 +0000 (09:28 -0500)]
regen
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.
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.
Todd C. Miller [Sun, 9 Jan 2011 00:54:30 +0000 (19:54 -0500)]
constify
Todd C. Miller [Sun, 9 Jan 2011 00:34:31 +0000 (19:34 -0500)]
Move fill macro to toke.h
Todd C. Miller [Sat, 8 Jan 2011 20:42:39 +0000 (15:42 -0500)]
Split tokenizer utility functions out into toke_util.c
Todd C. Miller [Sat, 8 Jan 2011 20:15:30 +0000 (15:15 -0500)]
ANSIfy
Todd C. Miller [Fri, 7 Jan 2011 20:13:42 +0000 (15:13 -0500)]
sync
Todd C. Miller [Fri, 7 Jan 2011 20:10:28 +0000 (15:10 -0500)]
Add visudo tests to check target
Todd C. Miller [Fri, 7 Jan 2011 19:48:19 +0000 (14:48 -0500)]
Add my regress tests for fnmatch() and glob() from OpenBSD.
Todd C. Miller [Fri, 7 Jan 2011 19:01:57 +0000 (14:01 -0500)]
Add regress test for command tags using visudo -c
Todd C. Miller [Fri, 7 Jan 2011 18:19:32 +0000 (13:19 -0500)]
Add support for regress tests using testsudoers
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.
Todd C. Miller [Thu, 6 Jan 2011 16:05:28 +0000 (11:05 -0500)]
Add regression tests for iolog_path()
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
Todd C. Miller [Thu, 6 Jan 2011 15:23:20 +0000 (10:23 -0500)]
Quiest a bogus compiler warning.
Todd C. Miller [Wed, 5 Jan 2011 21:27:44 +0000 (16:27 -0500)]
Protect call to setlocale() with HAVE_SETLOCALE
Todd C. Miller [Tue, 4 Jan 2011 19:27:51 +0000 (14:27 -0500)]
mkstemps.c was renamed mktemp.c
Todd C. Miller [Tue, 4 Jan 2011 18:54:12 +0000 (13:54 -0500)]
Update from 1.7 branch
Todd C. Miller [Tue, 4 Jan 2011 18:48:50 +0000 (13:48 -0500)]
Use "mv -f" when regenerating ChangeLog
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.
Todd C. Miller [Mon, 3 Jan 2011 18:09:03 +0000 (13:09 -0500)]
Correct the default sudo.conf example
Todd C. Miller [Fri, 31 Dec 2010 15:55:49 +0000 (10:55 -0500)]
Reset slashp if we allocate a new buffer for strftime()
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.
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()
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
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.
Todd C. Miller [Thu, 30 Dec 2010 22:02:43 +0000 (17:02 -0500)]
change an error() to errorx()
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
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.
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.
Todd C. Miller [Tue, 28 Dec 2010 17:25:06 +0000 (12:25 -0500)]
Document iolog_compress 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.
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.
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.
Todd C. Miller [Mon, 27 Dec 2010 20:43:01 +0000 (15:43 -0500)]
Document use of mkdtemp() for iolog path teplates
Todd C. Miller [Mon, 27 Dec 2010 19:45:13 +0000 (14:45 -0500)]
regen
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.
Todd C. Miller [Mon, 27 Dec 2010 19:07:49 +0000 (14:07 -0500)]
Fix building of mkstemps/mkdtemp replacements.
Todd C. Miller [Mon, 27 Dec 2010 18:49:49 +0000 (13:49 -0500)]
Provide mkdtemp() for systems without it.
Todd C. Miller [Mon, 27 Dec 2010 18:49:06 +0000 (13:49 -0500)]
Fix typo
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.
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).
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().
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.
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.
Todd C. Miller [Tue, 21 Dec 2010 15:23:45 +0000 (10:23 -0500)]
Clarify umask option description. From Reuben Thomas.
Todd C. Miller [Mon, 20 Dec 2010 21:37:44 +0000 (16:37 -0500)]
Pick last match in LDAP sudoers too
Todd C. Miller [Mon, 20 Dec 2010 21:29:08 +0000 (16:29 -0500)]
Document iolog_file, iolog_dir and use_pty
Todd C. Miller [Mon, 20 Dec 2010 21:28:20 +0000 (16:28 -0500)]
Adapt plugins to version I/O logging ABI 1.1
Todd C. Miller [Mon, 20 Dec 2010 21:27:46 +0000 (16:27 -0500)]
Add use_pty command_info flag for policies to indicate that a
pty should be allocated even if no I/O logging is performed.
Todd C. Miller [Mon, 20 Dec 2010 21:26:30 +0000 (16:26 -0500)]
Add remaining plugin convenience functions
Todd C. Miller [Mon, 20 Dec 2010 21:20:11 +0000 (16:20 -0500)]
Change I/O log API to pass in command info to the I/O log open function.
Add iolog_file and iolog_dir parameters to command info.
This allows the policy plugin to specify the I/O log pathname.
Add convenience functions for calling plugin functions that
handle ABI backwards compatibility.
Todd C. Miller [Mon, 20 Dec 2010 21:16:08 +0000 (16:16 -0500)]
Remove useless cast
Todd C. Miller [Fri, 17 Dec 2010 21:36:45 +0000 (16:36 -0500)]
Bump version to 1.8.0b3
Todd C. Miller [Mon, 13 Dec 2010 21:58:33 +0000 (16:58 -0500)]
Remove extraneous newline
Todd C. Miller [Fri, 10 Dec 2010 19:14:35 +0000 (14:14 -0500)]
Make I/O log dir configurable.
Todd C. Miller [Fri, 10 Dec 2010 19:13:51 +0000 (14:13 -0500)]
Rename io_logdir to iolog_dir
Todd C. Miller [Tue, 7 Dec 2010 20:29:11 +0000 (15:29 -0500)]
Add missing '*' that prevented the generic ELF case from matching.
Todd C. Miller [Tue, 7 Dec 2010 18:36:27 +0000 (13:36 -0500)]
If file(1) can't identify the ELF binary type, try readelf(1).
Todd C. Miller [Tue, 30 Nov 2010 20:21:36 +0000 (15:21 -0500)]
Use %u to print uid/gid, not %lu and adjust casts to match.
Todd C. Miller [Tue, 30 Nov 2010 20:05:44 +0000 (15:05 -0500)]
Clarify ordering of entries and attributes.
Todd C. Miller [Tue, 30 Nov 2010 18:40:25 +0000 (13:40 -0500)]
Fix typo and editing goof.
Todd C. Miller [Tue, 30 Nov 2010 18:34:31 +0000 (13:34 -0500)]
Merge in ordered LDAP entry support from Andreas Mueller.
Todd C. Miller [Tue, 30 Nov 2010 16:59:28 +0000 (11:59 -0500)]
Make sure we don't dereference a NULL handle.
Todd C. Miller [Wed, 24 Nov 2010 16:23:08 +0000 (11:23 -0500)]
Add support for RHEL 6 file modes that include a trailing dot on files with an SELinux security context
Todd C. Miller [Tue, 23 Nov 2010 12:35:27 +0000 (07:35 -0500)]
exec_setup() does not need to setuid(0), the Ubuntu issue was in
the sudoers module.
Todd C. Miller [Tue, 23 Nov 2010 12:34:22 +0000 (07:34 -0500)]
create_admin_success_flag() should use restore_perms() rather than
set_perms() to restore the uid.
Todd C. Miller [Tue, 23 Nov 2010 12:26:21 +0000 (07:26 -0500)]
In exec_setup() call setuid(0) to make certain the subsequent
uid and gid changes will succeed. Fixes a problem on Ubuntu.
Todd C. Miller [Tue, 23 Nov 2010 12:25:03 +0000 (07:25 -0500)]
Error out if we cannot change to root's uid so we catch the failure early.
Todd C. Miller [Mon, 22 Nov 2010 20:45:10 +0000 (15:45 -0500)]
fix typo; from Michael T Hunter
Todd C. Miller [Mon, 22 Nov 2010 15:27:29 +0000 (10:27 -0500)]
In sudoedit mode, assume command line arguments are paths and
pass FNM_PATHNAME to fnmatch().
Todd C. Miller [Sat, 20 Nov 2010 21:26:53 +0000 (16:26 -0500)]
Add workaround for an error in sys/types.h on HP-UX 11.23 when
large file support is enabled. Defining _XOPEN_SOURCE_EXTENDED
avoids the broken bits of the header file.
Todd C. Miller [Sat, 20 Nov 2010 21:23:39 +0000 (16:23 -0500)]
Fix SUDO_MAILDIR usage of AC_LANG_PROGRAM
Todd C. Miller [Sat, 20 Nov 2010 15:37:05 +0000 (10:37 -0500)]
For Tru64, strip off beta version.
Todd C. Miller [Sat, 20 Nov 2010 15:33:23 +0000 (10:33 -0500)]
Avoid conflicts with system definitions in grp.h and pwd.h
Todd C. Miller [Sat, 20 Nov 2010 14:59:44 +0000 (09:59 -0500)]
Include stdio.h after zlib.h, not before. We need the large file defines
to come first.
Todd C. Miller [Fri, 19 Nov 2010 21:57:21 +0000 (16:57 -0500)]
regen