]>
granicus.if.org Git - sudo/log
Todd C. Miller [Mon, 7 Feb 2011 15:29:34 +0000 (10:29 -0500)]
Split tokenizer utility functions out into toke_util.c
--HG--
branch : 1.7
Todd C. Miller [Mon, 7 Feb 2011 14:45:25 +0000 (09:45 -0500)]
Cosmetic changes to make diffing against trunk easier.
--HG--
branch : 1.7
Todd C. Miller [Mon, 7 Feb 2011 14:44:36 +0000 (09:44 -0500)]
Use RETSIGTYPE for signal handlers.
--HG--
branch : 1.7
Todd C. Miller [Mon, 7 Feb 2011 14:43:14 +0000 (09:43 -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.
--HG--
branch : 1.7
Todd C. Miller [Mon, 7 Feb 2011 01:50:01 +0000 (20:50 -0500)]
Merge trunk version
--HG--
branch : 1.7
Todd C. Miller [Mon, 7 Feb 2011 01:38:09 +0000 (20:38 -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.
--HG--
branch : 1.7
Todd C. Miller [Sun, 6 Feb 2011 22:27:58 +0000 (17:27 -0500)]
If perform_io() fails, kill the child before exiting so it doesn't
complain about connection reset. We can get an I/O error if, for
example, and we get EIO reading from stdin.
--HG--
branch : 1.7
Todd C. Miller [Sat, 5 Feb 2011 20:04:02 +0000 (15:04 -0500)]
Make local includes consistent; use double quotes for local includes
--HG--
branch : 1.7
Todd C. Miller [Fri, 4 Feb 2011 23:02:11 +0000 (18:02 -0500)]
Must include config.h before any other headers.
--HG--
branch : 1.7
Todd C. Miller [Fri, 4 Feb 2011 19:44:10 +0000 (14:44 -0500)]
fix --with-iologdir=no
--HG--
branch : 1.7
Todd C. Miller [Fri, 4 Feb 2011 19:33:37 +0000 (14:33 -0500)]
fix typo that broke --with-iologdir
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Feb 2011 19:23:17 +0000 (14:23 -0500)]
sync for 1.7.5b3
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Feb 2011 19:12:21 +0000 (14:12 -0500)]
1.7.5b3
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Feb 2011 18:20:26 +0000 (13:20 -0500)]
Attempt to clarify how users and groups interact in Runas_Specs
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Feb 2011 15:36:23 +0000 (10:36 -0500)]
Do not handle SIGARLM specially, just pass it through.
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Feb 2011 15:34:33 +0000 (10:34 -0500)]
Pass SIGUSR1/SIGUSR2 through to the child.
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Feb 2011 14:52:28 +0000 (09:52 -0500)]
Made tcsetpgrp() bits conditional on HAVE_TCSETPGRP
--HG--
branch : 1.7
Todd C. Miller [Thu, 3 Feb 2011 14:51:07 +0000 (09:51 -0500)]
Use pid_t not int and check the return value of kill()
--HG--
branch : 1.7
Todd C. Miller [Wed, 2 Feb 2011 19:26:41 +0000 (14:26 -0500)]
In non-pty mode before continuing the child, make it the foreground
pgrp if possible. Fixes resuming a shell.
--HG--
branch : 1.7
Todd C. Miller [Wed, 2 Feb 2011 19:24:58 +0000 (14:24 -0500)]
If we get a signal other than SIGCHLD in the monitor, pass it directly
to the child.
--HG--
branch : 1.7
Todd C. Miller [Wed, 2 Feb 2011 19:22:41 +0000 (14:22 -0500)]
Save signal state before changing handlers and restore before
we execute the command.
--HG--
branch : 1.7
Todd C. Miller [Tue, 1 Feb 2011 20:01:54 +0000 (15:01 -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.
--HG--
branch : 1.7
Todd C. Miller [Tue, 1 Feb 2011 19:55:28 +0000 (14:55 -0500)]
Use a char array to map a number to a base36 digit.
--HG--
branch : 1.7
Todd C. Miller [Tue, 1 Feb 2011 19:30:57 +0000 (14:30 -0500)]
Be clear about what versions of sudo support new LDAP attributes.
Fix up some formatting of attribute names. Minor other tweaks.
--HG--
branch : 1.7
Todd C. Miller [Mon, 31 Jan 2011 14:46:54 +0000 (09:46 -0500)]
Add sudoOrder attribute to each entry
Parse LOG_{INPUT,OUTPUT} tags
--HG--
branch : 1.7
Todd C. Miller [Sun, 30 Jan 2011 20:31:23 +0000 (15:31 -0500)]
Mention LDAP attribute compatibility status.
--HG--
branch : 1.7
Todd C. Miller [Fri, 28 Jan 2011 22:56:17 +0000 (17:56 -0500)]
Mention phpQLAdmin
--HG--
branch : 1.7
Todd C. Miller [Fri, 28 Jan 2011 21:50:49 +0000 (16:50 -0500)]
Add --disable-env-reset configure option.
--HG--
branch : 1.7
Todd C. Miller [Fri, 28 Jan 2011 21:14:29 +0000 (16:14 -0500)]
Document that sudoers_locale also affects logging and email.
--HG--
branch : 1.7
Todd C. Miller [Fri, 28 Jan 2011 21:11:32 +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".
--HG--
branch : 1.7
Todd C. Miller [Tue, 25 Jan 2011 14:53:16 +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.
--HG--
branch : 1.7
Todd C. Miller [Mon, 24 Jan 2011 20:39:14 +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.
--HG--
branch : 1.7
Todd C. Miller [Mon, 24 Jan 2011 20:34:45 +0000 (15:34 -0500)]
cosmetic change
--HG--
branch : 1.7
Todd C. Miller [Mon, 24 Jan 2011 19:54:27 +0000 (14:54 -0500)]
standardize on "return foo;" rather than "return(foo);" or "return (foo);"
--HG--
branch : 1.7
Todd C. Miller [Mon, 24 Jan 2011 19:54:01 +0000 (14:54 -0500)]
sync
--HG--
branch : 1.7
Todd C. Miller [Mon, 24 Jan 2011 19:25:57 +0000 (14:25 -0500)]
Do not reject sudoers file just because it is root-writable.
--HG--
branch : 1.7
Todd C. Miller [Fri, 21 Jan 2011 15:37:39 +0000 (10:37 -0500)]
sync
--HG--
branch : 1.7
Todd C. Miller [Fri, 21 Jan 2011 15:16:55 +0000 (10:16 -0500)]
When setting default iolog_dir, dynamically allocate the string.
--HG--
branch : 1.7
Todd C. Miller [Fri, 21 Jan 2011 15:10:47 +0000 (10:10 -0500)]
For "sudo -U user -l" if user is not authorized on the host, say so.
--HG--
branch : 1.7
Todd C. Miller [Fri, 21 Jan 2011 14:44:22 +0000 (09:44 -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.
--HG--
branch : 1.7
Todd C. Miller [Thu, 20 Jan 2011 21:44:55 +0000 (16:44 -0500)]
change an error() to errorx()
--HG--
branch : 1.7
Todd C. Miller [Thu, 20 Jan 2011 21:37:27 +0000 (16:37 -0500)]
Update copyright year to 2011
--HG--
branch : 1.7
Todd C. Miller [Thu, 20 Jan 2011 21:34:33 +0000 (16:34 -0500)]
Update copyright year to 2011
--HG--
branch : 1.7
Todd C. Miller [Thu, 20 Jan 2011 21:13:09 +0000 (16:13 -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.
--HG--
branch : 1.7
Todd C. Miller [Thu, 20 Jan 2011 21:11:31 +0000 (16:11 -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".
--HG--
branch : 1.7
Todd C. Miller [Thu, 20 Jan 2011 21:09:56 +0000 (16:09 -0500)]
Check initgroups() return value.
--HG--
branch : 1.7
Todd C. Miller [Wed, 19 Jan 2011 13:39:54 +0000 (08:39 -0500)]
sync
--HG--
branch : 1.7
Todd C. Miller [Tue, 18 Jan 2011 16:26:26 +0000 (11:26 -0500)]
Clear, don't set, OPOST in c_oflag as was intended in
e26055d17b72 .
--HG--
branch : 1.7
Todd C. Miller [Sat, 15 Jan 2011 17:29:35 +0000 (12:29 -0500)]
delref list_pw before exit
--HG--
branch : 1.7
Todd C. Miller [Fri, 14 Jan 2011 20:04:15 +0000 (15:04 -0500)]
Add Requires line for audit-libs >= 1.4 for RHEL5+
--HG--
branch : 1.7
Todd C. Miller [Fri, 14 Jan 2011 19:33:42 +0000 (14:33 -0500)]
sync with git version
--HG--
branch : 1.7
Todd C. Miller [Thu, 13 Jan 2011 18:10:38 +0000 (13:10 -0500)]
fix typo
--HG--
branch : 1.7
Todd C. Miller [Wed, 12 Jan 2011 18:43:40 +0000 (13:43 -0500)]
Update for sudo 1.7.4p5
--HG--
branch : 1.7
Todd C. Miller [Wed, 12 Jan 2011 14:25:07 +0000 (09:25 -0500)]
Add sudoNotBefore and sudoNotAfter attributes as optional attributes
to the sudoRole object class. From Andreas Mueller
--HG--
branch : 1.7
Todd C. Miller [Tue, 11 Jan 2011 15:44:08 +0000 (10:44 -0500)]
Mention "sudo -g group" password check fix.
--HG--
branch : 1.7
Todd C. Miller [Tue, 11 Jan 2011 15:33:39 +0000 (10:33 -0500)]
If the user is running sudo as himself but as a different group we
need to prompt for a password.
--HG--
branch : 1.7
Todd C. Miller [Mon, 10 Jan 2011 15:28:59 +0000 (10:28 -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.
--HG--
branch : 1.7
Todd C. Miller [Mon, 10 Jan 2011 14:26:41 +0000 (09:26 -0500)]
regen
--HG--
branch : 1.7
Todd C. Miller [Mon, 10 Jan 2011 14:26:25 +0000 (09:26 -0500)]
Add NETWORK_TIMEOUT as an alias for BIND_TIMELIMIT for compatibility
with OpenLDAP ldap.conf files.
--HG--
branch : 1.7
Todd C. Miller [Mon, 10 Jan 2011 14:23:04 +0000 (09:23 -0500)]
If user has no supplementary groups, fall back on checking the group file
explicitly.
--HG--
branch : 1.7
Todd C. Miller [Tue, 4 Jan 2011 18:53:22 +0000 (13:53 -0500)]
update
--HG--
branch : 1.7
Todd C. Miller [Tue, 4 Jan 2011 18:48:57 +0000 (13:48 -0500)]
Use "mv -f" when regenerating ChangeLog
--HG--
branch : 1.7
Todd C. Miller [Tue, 4 Jan 2011 17:44:23 +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.
--HG--
branch : 1.7
Todd C. Miller [Tue, 21 Dec 2010 17:21:49 +0000 (12:21 -0500)]
Clear OPOST from c_oflag like we used to. Fixes screen-based editors
such as vi.
--HG--
branch : 1.7
Todd C. Miller [Tue, 21 Dec 2010 15:21:18 +0000 (10:21 -0500)]
Clarify umask option description. From Reuben Thomas.
--HG--
branch : 1.7
Todd C. Miller [Sat, 18 Dec 2010 19:31:52 +0000 (14:31 -0500)]
Pick last match in LDAP sudoers too
--HG--
branch : 1.7
Todd C. Miller [Fri, 10 Dec 2010 19:33:30 +0000 (14:33 -0500)]
Make the iolog dir configurable in sudoers
--HG--
branch : 1.7
Todd C. Miller [Tue, 7 Dec 2010 20:29:38 +0000 (15:29 -0500)]
Add missing '*' that prevented the generic ELF case from matching.
--HG--
branch : 1.7
Todd C. Miller [Tue, 7 Dec 2010 18:36:41 +0000 (13:36 -0500)]
If file(1) can't identify the ELF binary type, try readelf(1).
--HG--
branch : 1.7
Todd C. Miller [Tue, 30 Nov 2010 20:22:07 +0000 (15:22 -0500)]
Use %u to print uid/gid, not %lu and adjust casts to match.
--HG--
branch : 1.7
Todd C. Miller [Tue, 30 Nov 2010 20:06:22 +0000 (15:06 -0500)]
Update with latest changes
--HG--
branch : 1.7
Todd C. Miller [Tue, 30 Nov 2010 20:05:56 +0000 (15:05 -0500)]
Clarify ordering of entries and attributes
--HG--
branch : 1.7
Todd C. Miller [Tue, 30 Nov 2010 18:40:45 +0000 (13:40 -0500)]
Fix typo and editing goof.
--HG--
branch : 1.7
Todd C. Miller [Tue, 30 Nov 2010 16:59:49 +0000 (11:59 -0500)]
Make sure we don't dereference a NULL handle.
--HG--
branch : 1.7
Todd C. Miller [Wed, 24 Nov 2010 16:23:44 +0000 (11:23 -0500)]
Add support for RHEL 6 file modes that include a trailing dot on files with an SELinux security context
--HG--
branch : 1.7
Todd C. Miller [Mon, 22 Nov 2010 20:45:01 +0000 (15:45 -0500)]
fix typo; from Michael T Hunter
--HG--
branch : 1.7
Todd C. Miller [Mon, 22 Nov 2010 15:28:07 +0000 (10:28 -0500)]
In sudoedit mode, assume command line arguments are paths and
pass FNM_PATHNAME to fnmatch().
--HG--
branch : 1.7
Todd C. Miller [Sat, 20 Nov 2010 21:27:04 +0000 (16:27 -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.
--HG--
branch : 1.7
Todd C. Miller [Sat, 20 Nov 2010 21:23:56 +0000 (16:23 -0500)]
Fix SUDO_MAILDIR usage of AC_LANG_PROGRAM
--HG--
branch : 1.7
Todd C. Miller [Sat, 20 Nov 2010 15:46:38 +0000 (10:46 -0500)]
Avoid conflicts with system definitions in grp.h and pwd.h
--HG--
branch : 1.7
Todd C. Miller [Sat, 20 Nov 2010 15:37:11 +0000 (10:37 -0500)]
For Tru64, strip off beta version.
--HG--
branch : 1.7
Todd C. Miller [Sat, 20 Nov 2010 14:59:52 +0000 (09:59 -0500)]
Include stdio.h after zlib.h, not before. We need the large file defines
to come first.
--HG--
branch : 1.7
Todd C. Miller [Wed, 17 Nov 2010 23:55:09 +0000 (18:55 -0500)]
Enlarge the array of entry wrappers int blocks of 100 entries to
save on allocation time. From Andreas Mueller
--HG--
branch : 1.7
Todd C. Miller [Wed, 17 Nov 2010 12:30:55 +0000 (07:30 -0500)]
Add back call to sudo_ldap_timefilter() in sudo_ldap_build_pass2()
that was mistakenly dropped.
--HG--
branch : 1.7
Todd C. Miller [Tue, 16 Nov 2010 15:08:00 +0000 (10:08 -0500)]
Mention that sudo needs "ar" to build.
--HG--
branch : 1.7
Todd C. Miller [Tue, 16 Nov 2010 15:02:26 +0000 (10:02 -0500)]
Fail with a more useful error if "ar" is not found.
--HG--
branch : 1.7
Todd C. Miller [Sun, 14 Nov 2010 16:00:52 +0000 (11:00 -0500)]
Reorder things to avoid most of the extra prototypes.
--HG--
branch : 1.7
Todd C. Miller [Sun, 14 Nov 2010 15:52:17 +0000 (10:52 -0500)]
Inline sudo_ldap_result_get_entry(), it is always called in situations
where the bounds are already checked.
--HG--
branch : 1.7
Todd C. Miller [Sun, 14 Nov 2010 15:50:16 +0000 (10:50 -0500)]
Add user_matches and host_matches to struct ldap_result and set them
in sudo_ldap_result_get() which is where the user and host checks live.
When iterating through the ordered results, take the first match.
Remove allowed flag from struct ldap_entry_wrapper, we just use first match.
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Nov 2010 18:56:49 +0000 (13:56 -0500)]
Bump version and regen man pages
--HG--
branch : 1.7
Todd C. Miller [Sat, 13 Nov 2010 18:53:37 +0000 (13:53 -0500)]
Merge in ordered LDAP entry support from Andreas Mueller.
--HG--
branch : 1.7
Todd C. Miller [Thu, 11 Nov 2010 21:54:45 +0000 (16:54 -0500)]
Add timed entry support from Andreas Mueller.
--HG--
branch : 1.7
Todd C. Miller [Thu, 11 Nov 2010 21:09:34 +0000 (16:09 -0500)]
Use efree() not free() and remove malloc.h include since we never
directly call malloc() or free().
--HG--
branch : 1.7
Todd C. Miller [Wed, 10 Nov 2010 14:10:16 +0000 (09:10 -0500)]
Include config.h before any other includes to make sure we get the
right value for _FILE_OFFSET_BITS.
--HG--
branch : 1.7
Todd C. Miller [Tue, 9 Nov 2010 16:13:24 +0000 (11:13 -0500)]
set PSTAMP for Solaris and move the backend-specific bits to their
own %if [xxx] %endif blocks in %set.
--HG--
branch : 1.7
Todd C. Miller [Tue, 9 Nov 2010 15:56:11 +0000 (10:56 -0500)]
sync with git repo
--HG--
branch : 1.7
Todd C. Miller [Wed, 3 Nov 2010 17:17:29 +0000 (13:17 -0400)]
remove zlib/zconf.h for distclean
--HG--
branch : 1.7
Todd C. Miller [Wed, 3 Nov 2010 15:13:31 +0000 (11:13 -0400)]
regen man pages for 1.7.5
--HG--
branch : 1.7
Todd C. Miller [Wed, 3 Nov 2010 15:13:00 +0000 (11:13 -0400)]
regen
--HG--
branch : 1.7
Todd C. Miller [Wed, 3 Nov 2010 14:03:02 +0000 (10:03 -0400)]
Update 1.7.5 entries.
--HG--
branch : 1.7