Skip to content

Commit 3aa7142

Browse files
committed
Merge sudo 1.9.11 from tip.
--HG-- branch : 1.9
2 parents ae52df8 + fcb5867 commit 3aa7142

226 files changed

Lines changed: 35628 additions & 18459 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ lib/util/regress/harness
7272
logsrvd/sudo_logsrvd
7373
logsrvd/sudo_sendlog
7474
logsrvd/fuzz_[a-z]*
75+
logsrvd/logsrvd_conf_test
7576

7677
plugins/sudoers/cvtsudoers
7778
plugins/sudoers/sudoers

.hgignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Makefile$
4646
^lib/eventlog/check_wrap$
4747
^lib/eventlog/regress/logwrap/check_wrap.out$
4848

49-
^lib/iolog/check_iolog_(json|mkpath|path|timing)$
49+
^lib/iolog/check_iolog_(json|filter|mkpath|path|timing)$
5050
^lib/iolog/fuzz_iolog_(json|legacy|timing)$
5151
^lib/iolog/host_port_test$
5252

@@ -65,6 +65,7 @@ Makefile$
6565

6666
^logsrvd/sudo_(logsrvd|sendlog)$
6767
^logsrvd/fuzz_logsrvd_conf$
68+
^logsrvd/logsrvd_conf_test$
6869

6970
^plugins/sudoers/(cvtsudoers|sudoers|sudoreplay|testsudoers|tsdump|visudo|prologue|check_[a-z0-9_]+)$
7071
^plugins/sudoers/fuzz_(policy|sudoers(_ldif)?)$

ABOUT-NLS

Lines changed: 0 additions & 1406 deletions
This file was deleted.

INSTALL.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,9 @@ Defaults are listed in brackets after the description.
220220
--disable-hardening
221221
Disable the use of compiler/linker exploit mitigation options
222222
which are enabled by default. This includes compiling with
223-
_FORTIFY_SOURCE defined to 2, building with -fstack-protector
224-
and linking with -zrelro, where supported.
223+
_FORTIFY_SOURCE defined to 2, building with -fstack-protector,
224+
-fstack-clash-protection, -fcf-protection and linking with
225+
-zrelro, -znow, and -znoexecstack where supported.
225226

226227
--disable-ssp
227228
Disable use of the -fstack-protector compiler option.
@@ -374,6 +375,10 @@ Defaults are listed in brackets after the description.
374375
ldap_sasl_interactive_bind_s() function is present in the
375376
LDAP libraries.
376377

378+
--with-apparmor
379+
Enable support for the AppArmor Linux Security Module (LSM) on
380+
supported systems.
381+
377382
--with-logincap
378383
This adds support for login classes specified in `/etc/login.conf`.
379384
It is enabled by default on BSD/OS, Darwin, FreeBSD, OpenBSD, and

MANIFEST

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
ABOUT-NLS
21
ChangeLog
32
INSTALL.configure
43
INSTALL.md
@@ -401,6 +400,15 @@ logsrvd/regress/corpus/seed/logsrvd_conf/logsrvd.conf.6
401400
logsrvd/regress/corpus/seed/logsrvd_conf/logsrvd.conf.7
402401
logsrvd/regress/fuzz/fuzz_logsrvd_conf.c
403402
logsrvd/regress/fuzz/fuzz_logsrvd_conf.dict
403+
logsrvd/regress/logsrvd_conf/cacert.pem
404+
logsrvd/regress/logsrvd_conf/logsrvd_cert.pem
405+
logsrvd/regress/logsrvd_conf/logsrvd_conf_test.c
406+
logsrvd/regress/logsrvd_conf/logsrvd_dhparams.pem
407+
logsrvd/regress/logsrvd_conf/logsrvd_key.pem
408+
logsrvd/regress/logsrvd_conf/sudo_logsrvd.conf.1.in
409+
logsrvd/regress/logsrvd_conf/sudo_logsrvd.conf.2.in
410+
logsrvd/regress/logsrvd_conf/tls/sudo_logsrvd.conf.1.in
411+
logsrvd/regress/logsrvd_conf/tls/sudo_logsrvd.conf.2.in
404412
logsrvd/sendlog.c
405413
logsrvd/sendlog.h
406414
logsrvd/tls_client.c
@@ -1128,6 +1136,8 @@ po/it.mo
11281136
po/it.po
11291137
po/ja.mo
11301138
po/ja.po
1139+
po/ka.mo
1140+
po/ka.po
11311141
po/ko.mo
11321142
po/ko.po
11331143
po/nb.mo
@@ -1177,16 +1187,20 @@ scripts/mkpkg
11771187
scripts/pp
11781188
scripts/unanon
11791189
src/Makefile.in
1190+
src/apparmor.c
11801191
src/conversation.c
11811192
src/copy_file.c
11821193
src/edit_open.c
11831194
src/env_hooks.c
11841195
src/exec.c
11851196
src/exec_common.c
11861197
src/exec_intercept.c
1198+
src/exec_intercept.h
11871199
src/exec_monitor.c
11881200
src/exec_nopty.c
11891201
src/exec_preload.c
1202+
src/exec_ptrace.c
1203+
src/exec_ptrace.h
11901204
src/exec_pty.c
11911205
src/get_pty.c
11921206
src/hooks.c
@@ -1200,6 +1214,7 @@ src/openbsd.c
12001214
src/parse_args.c
12011215
src/preload.c
12021216
src/preserve_fds.c
1217+
src/regress/intercept/test_ptrace.c
12031218
src/regress/net_ifs/check_net_ifs.c
12041219
src/regress/noexec/check_noexec.c
12051220
src/regress/ttyname/check_ttyname.c
@@ -1217,6 +1232,7 @@ src/sudo_intercept_common.c
12171232
src/sudo_noexec.c
12181233
src/sudo_plugin_int.h
12191234
src/sudo_usage.h.in
1235+
src/suspend_nopty.c
12201236
src/tcsetpgrp_nobg.c
12211237
src/tgetpass.c
12221238
src/ttyname.c

NEWS

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,76 @@
1+
What's new in Sudo 1.9.11
2+
3+
* Fixed a crash in the Python module with Python 3.9.10 on some
4+
systems. Additionally, "make check" now passes for Python 3.9.10.
5+
6+
* Error messages sent via email now include more details, including
7+
the file name and the line number and column of the error.
8+
Multiple errors are sent in a single message. Previously, only
9+
the first error was included.
10+
11+
* Fixed logging of parse errors in JSON format. Previously,
12+
the JSON logger would not write entries unless the command and
13+
runuser were set. These may not be known at the time a parse
14+
error is encountered.
15+
16+
* Fixed a potential crash parsing sudoers lines larger than twice
17+
the value of LINE_MAX on systems that lack the getdelim() function.
18+
19+
* The tests run by "make check" now unset the LANGUAGE environment
20+
variable. Otherwise, localization strings will not match if
21+
LANGUAGE is set to a non-English locale. Bug #1025.
22+
23+
* The "starttime" test now passed when run under Debian faketime.
24+
Bug #1026.
25+
26+
* The Kerberos authentication module now honors the custom password
27+
prompt if one has been specified.
28+
29+
* The embedded copy of zlib has been updated to version 1.2.12.
30+
31+
* Updated the version of libtool used by sudo to version 2.4.7.
32+
33+
* Sudo now defines _TIME_BITS to 64 on systems that define __TIMESIZE
34+
in the header files (currently only GNU libc). This is required
35+
to allow the use of 64-bit time values on some 32-bit systems.
36+
37+
* Sudo's "intercept" and "log_subcmds" options no longer force the
38+
command to run in its own pseudo-terminal. It is now also
39+
possible to intercept the system(3) function.
40+
41+
* Fixed a bug in sudo_logsrvd when run in store-first relay mode
42+
where the commit point messages sent by the server were incorrect
43+
if the command was suspended or received a window size change
44+
event.
45+
46+
* Fixed a potential crash in sudo_logsrvd when the "tls_dhparams"
47+
configuration setting was used.
48+
49+
* The "intercept" and "log_subcmds" functionality can now use
50+
ptrace(2) on Linux systems that support seccomp(2) filtering.
51+
This has the advantage of working for both static and dynamic
52+
binaries and can work with sudo's SELinux RBAC mode. The following
53+
architectures are currently supported: i386, x86_64, aarch64,
54+
arm, mips (log_subcmds only), powerpc, riscv, and s390x. The
55+
default is to use ptrace(2) where possible; the new "intercept_type"
56+
sudoers setting can be used to explicitly set the type.
57+
58+
* New Georgian translation from translationproject.org.
59+
60+
* Fixed creating packages on CentOS Stream.
61+
62+
* Fixed a bug in the intercept and log_subcmds support where
63+
the execve(2) wrapper was using the current environment instead
64+
of the passed environment pointer. Bug #1030.
65+
66+
* Added AppArmor integration for Linux. A sudoers rule can now
67+
specify an APPARMOR_PROFILE option to run a command confined by
68+
the named AppArmor profile.
69+
70+
* Fixed parsing of the "server_log" setting in sudo_logsrvd.conf.
71+
Non-paths were being treated as paths and an actual path was
72+
treated as an error.
73+
174
What's new in Sudo 1.9.10
275

376
* Added new "log_passwords" and "passprompt_regex" sudoers options.

config.h.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@
5151
/* Define to 1 if you use AIX general authentication. */
5252
#undef HAVE_AIXAUTH
5353

54+
/* Define to 1 to enable AppArmor support. */
55+
#undef HAVE_APPARMOR
56+
5457
/* Define to 1 if you have the `arc4random' function. */
5558
#undef HAVE_ARC4RANDOM
5659

@@ -1386,6 +1389,9 @@
13861389
/* Define for large files, on AIX-style hosts. */
13871390
#undef _LARGE_FILES
13881391

1392+
/* Number of bits in a time_t, on hosts where this is settable. */
1393+
#undef _TIME_BITS
1394+
13891395
/* Define to __FUNCTION__ if your compiler supports __FUNCTION__ but not
13901396
__func__ */
13911397
#undef __func__

0 commit comments

Comments
 (0)