]>
granicus.if.org Git - sudo/log
Todd C. Miller [Tue, 8 Mar 2011 21:09:48 +0000 (16:09 -0500)]
Fix default setting of osversion variable.
Todd C. Miller [Tue, 8 Mar 2011 20:38:06 +0000 (15:38 -0500)]
Make two login_class entris consistent.
Todd C. Miller [Tue, 8 Mar 2011 20:37:40 +0000 (15:37 -0500)]
Add support for adding a utmp entry when allocating a new pty.
Requires the BSD login(3) or SYSV/POSIX getutent()/getutxent().
Currently only creates a new entry if the existing tty has
a utmp entry.
Todd C. Miller [Tue, 8 Mar 2011 20:34:34 +0000 (15:34 -0500)]
Avoid pulling in headers we don't need on Linux
For getutx?id(), call setutx?ent() first and always call endutx?ent().
Todd C. Miller [Tue, 8 Mar 2011 14:46:35 +0000 (09:46 -0500)]
Add some more libs to SUDOERS_LIBS instead of relying on them to be
pulled in by SUDO_LIBS.
Todd C. Miller [Tue, 8 Mar 2011 14:38:21 +0000 (09:38 -0500)]
Fix return value of "sudo -l command" when command is not allowed, broken
in [
c7097ea22111 ]. The default return value is now TRUE and a bad:
label is used when permission is denied. Also fixed missing permissions
restoration on certain errors. On error()/errorx(), the password and
group files are now closed before returning.
Todd C. Miller [Mon, 7 Mar 2011 21:55:08 +0000 (16:55 -0500)]
Fix passing of login class back to sudo front end.
Todd C. Miller [Mon, 7 Mar 2011 15:34:47 +0000 (10:34 -0500)]
Add --osversion flag to specify OS instead of running "pp --probeonly"
Todd C. Miller [Mon, 7 Mar 2011 15:08:21 +0000 (10:08 -0500)]
Fix expr usage w/ GNU expr
Todd C. Miller [Sun, 6 Mar 2011 20:52:40 +0000 (15:52 -0500)]
Fix exit value for validate and list mode.
Todd C. Miller [Sun, 6 Mar 2011 20:38:02 +0000 (15:38 -0500)]
Fix non-interactive mode with sudoers plugin.
Todd C. Miller [Sat, 5 Mar 2011 20:34:30 +0000 (15:34 -0500)]
sudoreplay can now find IDs other than %{seq} and display the session.
Todd C. Miller [Sat, 5 Mar 2011 01:10:44 +0000 (20:10 -0500)]
Add support for replaying sessions when iolog_file is set to something
other than %{seq}.
Todd C. Miller [Fri, 4 Mar 2011 21:12:40 +0000 (16:12 -0500)]
If we are killed by a signal, display the name of the signal that got us.
Todd C. Miller [Fri, 4 Mar 2011 13:26:48 +0000 (08:26 -0500)]
Move libs used for authentication from SUDO_LIBS to SUDOERS_LIBS
where they belong.
Todd C. Miller [Fri, 4 Mar 2011 13:22:35 +0000 (08:22 -0500)]
Fix bug in skey/opie check that could cause a shell warning.
Todd C. Miller [Fri, 4 Mar 2011 13:08:22 +0000 (08:08 -0500)]
No longer need sudo_getepw() stubs.
Todd C. Miller [Thu, 3 Mar 2011 14:38:15 +0000 (09:38 -0500)]
Fix exit value of "sudo -l command" in sudoers module.
Todd C. Miller [Wed, 2 Mar 2011 17:39:11 +0000 (12:39 -0500)]
Use fgets() not fgetln() for portability.
Todd C. Miller [Wed, 2 Mar 2011 17:28:05 +0000 (12:28 -0500)]
Don't use the beta or release candidate version as the rpm release.
Todd C. Miller [Fri, 25 Feb 2011 19:57:18 +0000 (14:57 -0500)]
version 1.8.0
Todd C. Miller [Fri, 25 Feb 2011 18:39:28 +0000 (13:39 -0500)]
update sudo 1.8 section
Todd C. Miller [Wed, 23 Feb 2011 20:39:24 +0000 (15:39 -0500)]
fix test description
Todd C. Miller [Wed, 23 Feb 2011 20:26:13 +0000 (15:26 -0500)]
convert test2 to use testsudoers
Todd C. Miller [Wed, 23 Feb 2011 20:12:04 +0000 (15:12 -0500)]
Move struct generic_plugin to sudo_plugin_int.h
Todd C. Miller [Wed, 23 Feb 2011 18:38:52 +0000 (13:38 -0500)]
Allow sudoers file name, mode, uid and gid to be specified in the
settings list. The sudo front end does not currently set these
but may in the future.
Todd C. Miller [Mon, 21 Feb 2011 18:36:24 +0000 (13:36 -0500)]
1.8.0rc1
Todd C. Miller [Mon, 21 Feb 2011 16:33:36 +0000 (11:33 -0500)]
add help text to sudo, visudo and sudoreplay for the -h option
Todd C. Miller [Sat, 19 Feb 2011 23:53:28 +0000 (18:53 -0500)]
avoid using "howmany" for a parameter name since it is a select-related macro
Todd C. Miller [Sat, 19 Feb 2011 23:40:00 +0000 (18:40 -0500)]
mention group_plugin when describing nonunix_group
Todd C. Miller [Sat, 19 Feb 2011 23:39:27 +0000 (18:39 -0500)]
Add missing period at end of sentence
Todd C. Miller [Sat, 19 Feb 2011 13:29:21 +0000 (08:29 -0500)]
add localstatedir; closes bug 471
Todd C. Miller [Sat, 19 Feb 2011 13:23:46 +0000 (08:23 -0500)]
The howmany macro lives in sys/sysmacros.h on SVR5 systems
Closes Bug 470
Todd C. Miller [Sat, 19 Feb 2011 13:22:32 +0000 (08:22 -0500)]
add missing AH_TEMPLATE for ENV_RESET
Todd C. Miller [Sat, 19 Feb 2011 13:13:17 +0000 (08:13 -0500)]
SVR5 systems return non-zero for success on socketpair(),
check for -1 instead. Closes Bug 469
Todd C. Miller [Wed, 16 Feb 2011 17:22:56 +0000 (12:22 -0500)]
1.8.0b5
Todd C. Miller [Wed, 16 Feb 2011 17:22:38 +0000 (12:22 -0500)]
regen
Todd C. Miller [Wed, 16 Feb 2011 17:22:31 +0000 (12:22 -0500)]
Document that a sudo.conf file with no Pligin lines uses the default
sudoers plugins.
Todd C. Miller [Wed, 16 Feb 2011 17:15:46 +0000 (12:15 -0500)]
If sudo.conf contains no Plugin lines, use the default sudoers
policy and I/O plugins.
Todd C. Miller [Mon, 14 Feb 2011 16:29:20 +0000 (11:29 -0500)]
Avoid printing empty "Runas and Command-specific defaults for user"
line.
Todd C. Miller [Mon, 14 Feb 2011 16:28:44 +0000 (11:28 -0500)]
Truncate the buffer at buf.len before printing in the non-wordwrap case.
Todd C. Miller [Mon, 14 Feb 2011 16:04:24 +0000 (11:04 -0500)]
Remove extra newline when the tty width is very small or unavailable
Todd C. Miller [Fri, 11 Feb 2011 14:47:23 +0000 (09:47 -0500)]
Remove unneeded variable.
Todd C. Miller [Wed, 9 Feb 2011 20:11:52 +0000 (15:11 -0500)]
Prefer getutxid over getutid
Todd C. Miller [Wed, 9 Feb 2011 20:09:57 +0000 (15:09 -0500)]
Include utmp.h / utmpx.h before missing.h as apparently including it
afterwards causes a compilation problem on GNU Hurd.
Todd C. Miller [Mon, 7 Feb 2011 15:51:43 +0000 (10:51 -0500)]
#include "foo.h", not <foo.h> for local includes.
Todd C. Miller [Mon, 7 Feb 2011 15:51:14 +0000 (10:51 -0500)]
remove bogus XXX
Todd C. Miller [Mon, 7 Feb 2011 15:39:58 +0000 (10:39 -0500)]
Fix typo
Todd C. Miller [Mon, 7 Feb 2011 11:47:29 +0000 (06:47 -0500)]
return foo not return(foo)
Todd C. Miller [Sun, 6 Feb 2011 21:55:21 +0000 (16:55 -0500)]
Remove duplicate FD_SET of signal_pipe[0]
Todd C. Miller [Sat, 5 Feb 2011 20:03:00 +0000 (15:03 -0500)]
Use "missing.h" not <missing.h> in generated code.
Todd C. Miller [Fri, 4 Feb 2011 19:44:47 +0000 (14:44 -0500)]
fix --with-iologdir=no
Todd C. Miller [Fri, 4 Feb 2011 19:33:54 +0000 (14:33 -0500)]
fix typo that broke --with-iologdir
Todd C. Miller [Thu, 3 Feb 2011 19:26:58 +0000 (14:26 -0500)]
Bump version to 1.8.0b4
Todd C. Miller [Thu, 3 Feb 2011 19:23:36 +0000 (14:23 -0500)]
sync
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
Todd C. Miller [Thu, 3 Feb 2011 18:07:01 +0000 (13:07 -0500)]
Add test for quoted group that contains escaped double quotes
Todd C. Miller [Thu, 3 Feb 2011 15:25:42 +0000 (10:25 -0500)]
Pass SIGUSR1/SIGUSR2 through to the child.
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.
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()
Todd C. Miller [Wed, 2 Feb 2011 19:24:48 +0000 (14:24 -0500)]
Remove obsolete comment
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.
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.
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.
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.
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.
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.
Todd C. Miller [Mon, 31 Jan 2011 19:38:59 +0000 (14:38 -0500)]
'make check' depends on visudo and testsudoers
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
Todd C. Miller [Sun, 30 Jan 2011 20:43:24 +0000 (15:43 -0500)]
Mention LDAP attribute compatibility status.
Todd C. Miller [Fri, 28 Jan 2011 22:56:25 +0000 (17:56 -0500)]
Mention phpQLAdmin
Todd C. Miller [Fri, 28 Jan 2011 21:52:25 +0000 (16:52 -0500)]
Add --disable-env-reset configure option.
Todd C. Miller [Fri, 28 Jan 2011 21:15:57 +0000 (16:15 -0500)]
Document that sudoers_locale also affects logging and email.
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".
Todd C. Miller [Thu, 27 Jan 2011 15:03:59 +0000 (10:03 -0500)]
Fix indentation
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.
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.
Todd C. Miller [Mon, 24 Jan 2011 20:35:44 +0000 (15:35 -0500)]
cosmetic change
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);"
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.
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.