]> granicus.if.org Git - sudo/log
sudo
13 years agoconfigure will not add -O2 to CFLAGS if it is already defined to
Todd C. Miller [Wed, 16 Mar 2011 17:38:58 +0000 (13:38 -0400)]
configure will not add -O2 to CFLAGS if it is already defined to
add -O2 to the CFLAGS we pass in when PIE is being used.

13 years agoWarn about the dangers of log_input and mention iolog_file and iolog_dir
Todd C. Miller [Wed, 16 Mar 2011 17:26:27 +0000 (13:26 -0400)]
Warn about the dangers of log_input and mention iolog_file and iolog_dir
in the log_input and log_output descriptions.

13 years agosync with git version
Todd C. Miller [Wed, 16 Mar 2011 17:06:39 +0000 (13:06 -0400)]
sync with git version

13 years agoIt seems that h comes after i
Todd C. Miller [Wed, 16 Mar 2011 16:07:03 +0000 (12:07 -0400)]
It seems that h comes after i

13 years agoMove log_input and log_output to their proper, sorted, location.
Todd C. Miller [Wed, 16 Mar 2011 16:05:32 +0000 (12:05 -0400)]
Move log_input and log_output to their proper, sorted, location.
Document set_utmp and utmp_runas.

13 years agoSave the controlling tty process group before suspending so we can
Todd C. Miller [Wed, 16 Mar 2011 16:02:04 +0000 (12:02 -0400)]
Save the controlling tty process group before suspending so we can
restore it when we resume.  Fixes job control problems on Linux
caused by the previous attemp to fix resuming a shell when I/O
logging not enabled.

13 years agoFix printing of the remainder after a newline. Fixes "sudo -l" output
Todd C. Miller [Wed, 16 Mar 2011 14:26:10 +0000 (10:26 -0400)]
Fix printing of the remainder after a newline.  Fixes "sudo -l" output
corruption that could occur in some cases.

13 years agoAdd support for ut_exit
Todd C. Miller [Tue, 15 Mar 2011 20:18:33 +0000 (16:18 -0400)]
Add support for ut_exit

13 years agoAdd support for controlling whether utmp is updated and which user is
Todd C. Miller [Tue, 15 Mar 2011 19:53:49 +0000 (15:53 -0400)]
Add support for controlling whether utmp is updated and which user is
listed in the entry.

13 years agoFix typo; tupple vs. tuple
Todd C. Miller [Tue, 15 Mar 2011 19:52:18 +0000 (15:52 -0400)]
Fix typo; tupple vs. tuple

13 years agoFor legacy utmp, strip the /dev/ prefix before trying to determine
Todd C. Miller [Tue, 15 Mar 2011 19:51:44 +0000 (15:51 -0400)]
For legacy utmp, strip the /dev/ prefix before trying to determine
slot since the ttys file does not include the /dev/ prefix.

13 years agoAdd check for _PATH_UTMP
Todd C. Miller [Tue, 15 Mar 2011 15:56:49 +0000 (11:56 -0400)]
Add check for _PATH_UTMP

13 years agoAdapt check_iolog_path to sessid changes
Todd C. Miller [Mon, 14 Mar 2011 15:30:32 +0000 (11:30 -0400)]
Adapt check_iolog_path to sessid changes

13 years agoRedo utmp handling. If no getutent()/getutxent() is available,
Todd C. Miller [Mon, 14 Mar 2011 14:20:47 +0000 (10:20 -0400)]
Redo utmp handling.  If no getutent()/getutxent() is available,
assume a ttyslot-based utmp.  If getttyent() is available, use
that directly instead of ttyslot() so we don't have to do the
stdin dup2 dance.

13 years agoMove utmp handling into utmp.c
Todd C. Miller [Fri, 11 Mar 2011 20:54:12 +0000 (15:54 -0500)]
Move utmp handling into utmp.c

13 years agoUpdate copyright years.
Todd C. Miller [Fri, 11 Mar 2011 20:34:35 +0000 (15:34 -0500)]
Update copyright years.

13 years agoAdd "user_shell" boolean as a way to indicate to the plugin that
Todd C. Miller [Fri, 11 Mar 2011 20:02:13 +0000 (15:02 -0500)]
Add "user_shell" boolean as a way to indicate to the plugin that
the -s flag was given.

13 years agoMove sessid out of sudo_user.
Todd C. Miller [Fri, 11 Mar 2011 19:07:26 +0000 (14:07 -0500)]
Move sessid out of sudo_user.

13 years agoLog the TSID even if it is not a simple session ID.
Todd C. Miller [Fri, 11 Mar 2011 17:11:05 +0000 (12:11 -0500)]
Log the TSID even if it is not a simple session ID.

13 years agoDocument noexec in sample.sudo.conf and add back noexec_file section
Todd C. Miller [Fri, 11 Mar 2011 16:34:11 +0000 (11:34 -0500)]
Document noexec in sample.sudo.conf and add back noexec_file section
in sudoers with a note that it is deprecated.

13 years agoFix running commands as non-root on systems where setreuid() changes
Todd C. Miller [Fri, 11 Mar 2011 15:48:12 +0000 (10:48 -0500)]
Fix running commands as non-root on systems where setreuid() changes
the saved uid based on the effective uid we are changing to.

13 years agoMove noexec path into sudo.conf now that sudo itself handles noexec.
Todd C. Miller [Thu, 10 Mar 2011 21:12:33 +0000 (16:12 -0500)]
Move noexec path into sudo.conf now that sudo itself handles noexec.
Currently can be configured in sudoers too but is now undocumented
and will be removed in a future release.

13 years agoDocument "Path noexec ..." in sudo.conf.
Todd C. Miller [Thu, 10 Mar 2011 21:06:16 +0000 (16:06 -0500)]
Document "Path noexec ..." in sudo.conf.
No longer document noexec_file in sudoers, it will be removed in a future
release.

13 years agoMove noexec handling to sudo front-end where it is documented as being.
Todd C. Miller [Thu, 10 Mar 2011 20:11:49 +0000 (15:11 -0500)]
Move noexec handling to sudo front-end where it is documented as being.

13 years agoAdd support for disabling exec via solaris privileges.
Todd C. Miller [Thu, 10 Mar 2011 19:24:10 +0000 (14:24 -0500)]
Add support for disabling exec via solaris privileges.
Includes preparation for moving noexec support out of sudoers
and into front end as documented.

13 years agoOnly export the symbols corresponding to the plugin structs.
Todd C. Miller [Thu, 10 Mar 2011 17:12:14 +0000 (12:12 -0500)]
Only export the symbols corresponding to the plugin structs.

13 years agoInstall plugins manually instead of using libtool. This works
Todd C. Miller [Thu, 10 Mar 2011 15:57:56 +0000 (10:57 -0500)]
Install plugins manually instead of using libtool.  This works
around a problem on AIX where libtool will install a .a file
containing the .so file instead of the .so file itself.

13 years agoMove check into its own rule since some versions of make will run
Todd C. Miller [Thu, 10 Mar 2011 15:32:23 +0000 (10:32 -0500)]
Move check into its own rule since some versions of make will run
both targets as the default rule.

13 years agoUpdate to libtool 2.2.10
Todd C. Miller [Thu, 10 Mar 2011 15:31:27 +0000 (10:31 -0500)]
Update to libtool 2.2.10

13 years agoIn handle_signals(), restart the read() on EINTR to make sure we keep up
Todd C. Miller [Wed, 9 Mar 2011 16:28:51 +0000 (11:28 -0500)]
In handle_signals(), restart the read() on EINTR to make sure we keep up
with the signal pipe.  Don't return -1 on EAGAIN, it just means we have
emptied the pipe.

13 years agoReorder functions to quiet a compiler warning.
Todd C. Miller [Wed, 9 Mar 2011 16:22:34 +0000 (11:22 -0500)]
Reorder functions to quiet a compiler warning.

13 years agoUse the Sun Studio C compiler on Solaris if possible
Todd C. Miller [Wed, 9 Mar 2011 16:22:09 +0000 (11:22 -0500)]
Use the Sun Studio C compiler on Solaris if possible

13 years agoFix default setting of osversion variable.
Todd C. Miller [Tue, 8 Mar 2011 21:09:48 +0000 (16:09 -0500)]
Fix default setting of osversion variable.

13 years agoMake two login_class entris consistent.
Todd C. Miller [Tue, 8 Mar 2011 20:38:06 +0000 (15:38 -0500)]
Make two login_class entris consistent.

13 years agoAdd support for adding a utmp entry when allocating a new pty.
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.

13 years agoAvoid pulling in headers we don't need on Linux
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().

13 years agoAdd some more libs to SUDOERS_LIBS instead of relying on them to be
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.

13 years agoFix return value of "sudo -l command" when command is not allowed, broken
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.

13 years agoFix passing of login class back to sudo front end.
Todd C. Miller [Mon, 7 Mar 2011 21:55:08 +0000 (16:55 -0500)]
Fix passing of login class back to sudo front end.

13 years agoAdd --osversion flag to specify OS instead of running "pp --probeonly"
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"

13 years agoFix expr usage w/ GNU expr
Todd C. Miller [Mon, 7 Mar 2011 15:08:21 +0000 (10:08 -0500)]
Fix expr usage w/ GNU expr

13 years agoFix exit value for validate and list mode.
Todd C. Miller [Sun, 6 Mar 2011 20:52:40 +0000 (15:52 -0500)]
Fix exit value for validate and list mode.

13 years agoFix non-interactive mode with sudoers plugin.
Todd C. Miller [Sun, 6 Mar 2011 20:38:02 +0000 (15:38 -0500)]
Fix non-interactive mode with sudoers plugin.

13 years agosudoreplay can now find IDs other than %{seq} and display the session.
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.

13 years agoAdd support for replaying sessions when iolog_file is set to something
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}.

13 years agoIf we are killed by a signal, display the name of the signal that got us.
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.

13 years agoMove libs used for authentication from SUDO_LIBS to SUDOERS_LIBS
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.

13 years agoFix bug in skey/opie check that could cause a shell warning.
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.

13 years agoNo longer need sudo_getepw() stubs.
Todd C. Miller [Fri, 4 Mar 2011 13:08:22 +0000 (08:08 -0500)]
No longer need sudo_getepw() stubs.

13 years agoFix exit value of "sudo -l command" in sudoers module.
Todd C. Miller [Thu, 3 Mar 2011 14:38:15 +0000 (09:38 -0500)]
Fix exit value of "sudo -l command" in sudoers module.

13 years agoUse fgets() not fgetln() for portability.
Todd C. Miller [Wed, 2 Mar 2011 17:39:11 +0000 (12:39 -0500)]
Use fgets() not fgetln() for portability.

13 years agoDon't use the beta or release candidate version as the rpm release.
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.

13 years agoversion 1.8.0 SUDO_1_8_0
Todd C. Miller [Fri, 25 Feb 2011 19:57:18 +0000 (14:57 -0500)]
version 1.8.0

13 years agoupdate sudo 1.8 section
Todd C. Miller [Fri, 25 Feb 2011 18:39:28 +0000 (13:39 -0500)]
update sudo 1.8 section

13 years agofix test description
Todd C. Miller [Wed, 23 Feb 2011 20:39:24 +0000 (15:39 -0500)]
fix test description

13 years agoconvert test2 to use testsudoers
Todd C. Miller [Wed, 23 Feb 2011 20:26:13 +0000 (15:26 -0500)]
convert test2 to use testsudoers

13 years agoMove struct generic_plugin to sudo_plugin_int.h
Todd C. Miller [Wed, 23 Feb 2011 20:12:04 +0000 (15:12 -0500)]
Move struct generic_plugin to sudo_plugin_int.h

13 years agoAllow sudoers file name, mode, uid and gid to be specified in the
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.

13 years ago1.8.0rc1
Todd C. Miller [Mon, 21 Feb 2011 18:36:24 +0000 (13:36 -0500)]
1.8.0rc1

13 years agoadd help text to sudo, visudo and sudoreplay for the -h option
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

13 years agoavoid using "howmany" for a parameter name since it is a select-related macro
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

13 years agomention group_plugin when describing nonunix_group
Todd C. Miller [Sat, 19 Feb 2011 23:40:00 +0000 (18:40 -0500)]
mention group_plugin when describing nonunix_group

13 years agoAdd missing period at end of sentence
Todd C. Miller [Sat, 19 Feb 2011 23:39:27 +0000 (18:39 -0500)]
Add missing period at end of sentence

13 years agoadd localstatedir; closes bug 471
Todd C. Miller [Sat, 19 Feb 2011 13:29:21 +0000 (08:29 -0500)]
add localstatedir; closes bug 471

13 years agoThe howmany macro lives in sys/sysmacros.h on SVR5 systems
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

13 years agoadd missing AH_TEMPLATE for ENV_RESET
Todd C. Miller [Sat, 19 Feb 2011 13:22:32 +0000 (08:22 -0500)]
add missing AH_TEMPLATE for ENV_RESET

13 years agoSVR5 systems return non-zero for success on socketpair(),
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

13 years ago1.8.0b5
Todd C. Miller [Wed, 16 Feb 2011 17:22:56 +0000 (12:22 -0500)]
1.8.0b5

13 years agoregen
Todd C. Miller [Wed, 16 Feb 2011 17:22:38 +0000 (12:22 -0500)]
regen

13 years agoDocument that a sudo.conf file with no Pligin lines uses the default
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.

13 years agoIf sudo.conf contains no Plugin lines, use the default sudoers
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.

13 years agoAvoid printing empty "Runas and Command-specific defaults for user"
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.

13 years agoTruncate the buffer at buf.len before printing in the non-wordwrap case.
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.

13 years agoRemove extra newline when the tty width is very small or unavailable
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

13 years agoRemove unneeded variable.
Todd C. Miller [Fri, 11 Feb 2011 14:47:23 +0000 (09:47 -0500)]
Remove unneeded variable.

13 years agoPrefer getutxid over getutid
Todd C. Miller [Wed, 9 Feb 2011 20:11:52 +0000 (15:11 -0500)]
Prefer getutxid over getutid

13 years agoInclude utmp.h / utmpx.h before missing.h as apparently including it
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.

13 years ago#include "foo.h", not <foo.h> for local includes.
Todd C. Miller [Mon, 7 Feb 2011 15:51:43 +0000 (10:51 -0500)]
#include "foo.h", not <foo.h> for local includes.

13 years agoremove bogus XXX
Todd C. Miller [Mon, 7 Feb 2011 15:51:14 +0000 (10:51 -0500)]
remove bogus XXX

13 years agoFix typo
Todd C. Miller [Mon, 7 Feb 2011 15:39:58 +0000 (10:39 -0500)]
Fix typo

13 years agoreturn foo not return(foo)
Todd C. Miller [Mon, 7 Feb 2011 11:47:29 +0000 (06:47 -0500)]
return foo not return(foo)

13 years agoRemove duplicate FD_SET of signal_pipe[0]
Todd C. Miller [Sun, 6 Feb 2011 21:55:21 +0000 (16:55 -0500)]
Remove duplicate FD_SET of signal_pipe[0]

13 years agoUse "missing.h" not <missing.h> in generated code.
Todd C. Miller [Sat, 5 Feb 2011 20:03:00 +0000 (15:03 -0500)]
Use "missing.h" not <missing.h> in generated code.

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