Skip to content

Commit e06af48

Browse files
committed
sudo 1.8.31p2
--HG-- branch : 1.8
1 parent e74cbac commit e06af48

File tree

4 files changed

+52
-14
lines changed

4 files changed

+52
-14
lines changed

NEWS

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
What's new in Sudo 1.8.31p2
2+
3+
* Sudo command line options that take a value may only be specified
4+
once. This is to help guard against problems caused by poorly
5+
written scripts that invoke sudo with user-controlled input.
6+
Bug #924.
7+
8+
* When running a command in a pty, sudo will no longer try to
9+
suspend itself if the user's tty has been revoked (for instance
10+
when the parent ssh daemon is killed). This fixes a bug where
11+
sudo would continuously suspend the command (which would succeed),
12+
then suspend itself (which would fail due to the missing tty)
13+
and then resume the command.
14+
15+
* If sudo's event loop fails due to the tty being revoked, remove
16+
the user's tty events and restart the event loop (once). This
17+
fixes a problem when running "sudo reboot" in a pty on some
18+
systems. When the event loop exited unexpectedly, sudo would
19+
kill the command running in the pty, which in the case of "reboot",
20+
could lead to the system being in a half-rebooted state.
21+
22+
* Fixed a regression introduced in sudo 1.8.23 in the LDAP and
23+
SSSD back-ends where a missing sudoHost attribute was treated
24+
as an "ALL" wildcard value. A sudoRole with no sudoHost attribute
25+
is now ignored as it was prior to version 1.8.23.
26+
127
What's new in Sudo 1.8.31p1
228

329
* Sudo once again ignores a failure to restore the RLIMIT_CORE

configure

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.69 for sudo 1.8.31p1.
3+
# Generated by GNU Autoconf 2.69 for sudo 1.8.31p2.
44
#
55
# Report bugs to <https://bugzilla.sudo.ws/>.
66
#
@@ -590,8 +590,8 @@ MAKEFLAGS=
590590
# Identity of this package.
591591
PACKAGE_NAME='sudo'
592592
PACKAGE_TARNAME='sudo'
593-
PACKAGE_VERSION='1.8.31p1'
594-
PACKAGE_STRING='sudo 1.8.31p1'
593+
PACKAGE_VERSION='1.8.31p2'
594+
PACKAGE_STRING='sudo 1.8.31p2'
595595
PACKAGE_BUGREPORT='https://bugzilla.sudo.ws/'
596596
PACKAGE_URL=''
597597

@@ -825,6 +825,7 @@ infodir
825825
docdir
826826
oldincludedir
827827
includedir
828+
runstatedir
828829
localstatedir
829830
sharedstatedir
830831
sysconfdir
@@ -1042,6 +1043,7 @@ datadir='${datarootdir}'
10421043
sysconfdir='${prefix}/etc'
10431044
sharedstatedir='${prefix}/com'
10441045
localstatedir='${prefix}/var'
1046+
runstatedir='${localstatedir}/run'
10451047
includedir='${prefix}/include'
10461048
oldincludedir='/usr/include'
10471049
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
@@ -1294,6 +1296,15 @@ do
12941296
| -silent | --silent | --silen | --sile | --sil)
12951297
silent=yes ;;
12961298

1299+
-runstatedir | --runstatedir | --runstatedi | --runstated \
1300+
| --runstate | --runstat | --runsta | --runst | --runs \
1301+
| --run | --ru | --r)
1302+
ac_prev=runstatedir ;;
1303+
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1304+
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1305+
| --run=* | --ru=* | --r=*)
1306+
runstatedir=$ac_optarg ;;
1307+
12971308
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
12981309
ac_prev=sbindir ;;
12991310
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
@@ -1431,7 +1442,7 @@ fi
14311442
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
14321443
datadir sysconfdir sharedstatedir localstatedir includedir \
14331444
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1434-
libdir localedir mandir
1445+
libdir localedir mandir runstatedir
14351446
do
14361447
eval ac_val=\$$ac_var
14371448
# Remove trailing slashes.
@@ -1544,7 +1555,7 @@ if test "$ac_init_help" = "long"; then
15441555
# Omit some internal or obsolete options to make the list less imposing.
15451556
# This message is too long to be a string in the A/UX 3.1 sh.
15461557
cat <<_ACEOF
1547-
\`configure' configures sudo 1.8.31p1 to adapt to many kinds of systems.
1558+
\`configure' configures sudo 1.8.31p2 to adapt to many kinds of systems.
15481559

15491560
Usage: $0 [OPTION]... [VAR=VALUE]...
15501561

@@ -1584,6 +1595,7 @@ Fine tuning of the installation directories:
15841595
--sysconfdir=DIR read-only single-machine data [/etc]
15851596
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
15861597
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1598+
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
15871599
--libdir=DIR object code libraries [EPREFIX/lib]
15881600
--includedir=DIR C header files [PREFIX/include]
15891601
--oldincludedir=DIR C header files for non-gcc [/usr/include]
@@ -1609,7 +1621,7 @@ fi
16091621

16101622
if test -n "$ac_init_help"; then
16111623
case $ac_init_help in
1612-
short | recursive ) echo "Configuration of sudo 1.8.31p1:";;
1624+
short | recursive ) echo "Configuration of sudo 1.8.31p2:";;
16131625
esac
16141626
cat <<\_ACEOF
16151627

@@ -1875,7 +1887,7 @@ fi
18751887
test -n "$ac_init_help" && exit $ac_status
18761888
if $ac_init_version; then
18771889
cat <<\_ACEOF
1878-
sudo configure 1.8.31p1
1890+
sudo configure 1.8.31p2
18791891
generated by GNU Autoconf 2.69
18801892

18811893
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -2584,7 +2596,7 @@ cat >config.log <<_ACEOF
25842596
This file contains any messages produced by compilers while
25852597
running configure, to aid debugging if configure makes a mistake.
25862598

2587-
It was created by sudo $as_me 1.8.31p1, which was
2599+
It was created by sudo $as_me 1.8.31p2, which was
25882600
generated by GNU Autoconf 2.69. Invocation command line was
25892601

25902602
$ $0 $@
@@ -27556,7 +27568,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2755627568
# report actual input values of CONFIG_FILES etc. instead of their
2755727569
# values after options handling.
2755827570
ac_log="
27559-
This file was extended by sudo $as_me 1.8.31p1, which was
27571+
This file was extended by sudo $as_me 1.8.31p2, which was
2756027572
generated by GNU Autoconf 2.69. Invocation command line was
2756127573

2756227574
CONFIG_FILES = $CONFIG_FILES
@@ -27622,7 +27634,7 @@ _ACEOF
2762227634
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2762327635
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
2762427636
ac_cs_version="\\
27625-
sudo config.status 1.8.31p1
27637+
sudo config.status 1.8.31p2
2762627638
configured by $0, generated by GNU Autoconf 2.69,
2762727639
with options \\"\$ac_cs_config\\"
2762827640

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dnl ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1818
dnl OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1919
dnl
2020
AC_PREREQ([2.59])
21-
AC_INIT([sudo], [1.8.31p1], [https://bugzilla.sudo.ws/], [sudo])
21+
AC_INIT([sudo], [1.8.31p2], [https://bugzilla.sudo.ws/], [sudo])
2222
AC_CONFIG_HEADER([config.h pathnames.h])
2323
AC_CONFIG_SRCDIR([src/sudo.c])
2424
dnl

src/sudo.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ main(int argc, char *argv[], char *envp[])
217217
ok = policy_open(&policy_plugin, settings, user_info, envp);
218218
if (ok != 1) {
219219
if (ok == -2)
220-
usage(1);
220+
usage();
221221
else
222222
sudo_fatalx(U_("unable to initialize policy plugin"));
223223
}
@@ -255,7 +255,7 @@ main(int argc, char *argv[], char *envp[])
255255
sudo_debug_printf(SUDO_DEBUG_INFO, "policy plugin returns %d", ok);
256256
if (ok != 1) {
257257
if (ok == -2)
258-
usage(1);
258+
usage();
259259
exit(EXIT_FAILURE); /* plugin printed error message */
260260
}
261261
/* Reset nargv/nargc based on argv_out. */
@@ -276,7 +276,7 @@ main(int argc, char *argv[], char *envp[])
276276
iolog_unlink(plugin);
277277
break;
278278
case -2:
279-
usage(1);
279+
usage();
280280
break;
281281
default:
282282
sudo_fatalx(U_("error initializing I/O plugin %s"),

0 commit comments

Comments
 (0)