| 1 |
What's new in Sudo 1.9.17p2 |
| 2 |
|
| 3 |
* Fixed a bug introduced in sudo 1.9.16 that could result in sudo |
| 4 |
sending SIGHUP to all processes on the system in certain rare |
| 5 |
cases. The bug could manifest if sudo is running a command in |
| 6 |
a pseudo-terminal, sudo terminates the command due to an internal |
| 7 |
error, and the user's terminal is revoked. GitHub issue #458. |
| 8 |
|
| 9 |
* Fixed a bug introduced in sudo 1.9.12 that caused sudo to abort |
| 10 |
when the "intercept" and "intercept_verify" options are enabled |
| 11 |
in sudoers and either the command line arguments or the environment |
| 12 |
contains a string larger than the page size (usually 4096). This |
| 13 |
only Linux affects systems that support the ptrace_readv_string() |
| 14 |
function. GitHub issue #453. |
| 15 |
|
| 16 |
* Fixed a bug in sudo's configure script introduced in sudo 1.9.17 |
| 17 |
that prevented mdoc-format man pages from being used on systems |
| 18 |
without the mandoc utility. Bug #1077. |
| 19 |
|
| 20 |
What's new in Sudo 1.9.17p1 |
| 21 |
|
| 22 |
* Fixed CVE-2025-32462. Sudo's -h (--host) option could be specified |
| 23 |
when running a command or editing a file. This could enable a |
| 24 |
local privilege escalation attack if the sudoers file allows the |
| 25 |
user to run commands on a different host. |
| 26 |
|
| 27 |
* Fixed CVE-2025-32463. An attacker can leverage sudo's -R |
| 28 |
(--chroot) option to run arbitrary commands as root, even if |
| 29 |
they are not listed in the sudoers file. The chroot support has |
| 30 |
been deprecated an will be removed entirely in a future release. |
| 31 |
|
| 32 |
What's new in Sudo 1.9.17 |
| 33 |
|
| 34 |
* Sudo now uses the NODEV macro consistently. Bug #1074. |
| 35 |
|
| 36 |
* Fixed a bug where the "ALL" command in a sudoers rule would |
| 37 |
override a previous NOSETENV tag. Command tags are inherited |
| 38 |
from previous Cmnds in a Cmnd_Spec_List. There is a special |
| 39 |
case for the SETENV tag with the "ALL" command, where SETENV is |
| 40 |
implied if no explicit SETENV or NOSETENV tag is specified. This |
| 41 |
special case did not take into account that a NOSETENV tag that |
| 42 |
was inherited should override this behavior. |
| 43 |
|
| 44 |
* If sudo is run via ssh without a terminal and a password is |
| 45 |
required, it now suggest using ssh's "-t" option. |
| 46 |
|
| 47 |
* Fixed the display of timeout values in the "sudo -V" output |
| 48 |
on systems without a C99-compliant snprintf() function. |
| 49 |
|
| 50 |
* Quieted a number of minor Coverity warnings. |
| 51 |
|
| 52 |
* Fixed a problem running sudo from a serial console on Linux when |
| 53 |
the command is run in a pseudo-terminal (the default). |
| 54 |
|
| 55 |
* Fixed a crash in sudo which could occur if there was a fatal |
| 56 |
error after the user was validated but before the command was |
| 57 |
actually run. |
| 58 |
|
| 59 |
* Fixed a number of man page style warnings. The "lint" make target |
| 60 |
in the docs directory will now run groff with warnings enabled |
| 61 |
if it is available. Bug #1075. |
| 62 |
|
| 63 |
* The "ignore_dot" sudoers setting is now on by default. There |
| 64 |
is now a "--disable-ignore-dot" configure option to disable it. |
| 65 |
The "--with-ignore-dot" configure option has been deprecated. |
| 66 |
|
| 67 |
* Fixed a problem with the "pwfeedback" option where an initial |
| 68 |
backspace would reduce the maximum length allowed for the password. |
| 69 |
GitHub issue #439. |
| 70 |
|
| 71 |
* Fixed minor grammar and spelling problems in the man pages. |
| 72 |
|
| 73 |
* Fixed a bug where a user could avoid entering a password for |
| 74 |
"sudo -l command" if they specified their own user or group name |
| 75 |
via the "-u" or "-g" options. |
| 76 |
|
| 77 |
* Avoid potential password guessing based on timing attacks on |
| 78 |
the strcmp() function on systems without PAM or a crypt() function |
| 79 |
where plaintext passwords are stored in the shadow password file. |
| 80 |
|
| 81 |
* Fixed a potential information leak where "sudo -l command" could |
| 82 |
be used to determine whether an executable exists in a directory |
| 83 |
that they do not have search access to. |
| 84 |
|
| 85 |
* Sudo uses TCSAFLUSH, not TCSADRAIN, when disabling echo once |
| 86 |
again. A long time ago sudo changed from using TCSAFLUSH to |
| 87 |
TCSADRAIN due to some systems having bugs related to TCSAFLUSH. |
| 88 |
That should no longer be a concern. Using TCSAFLUSH ensures |
| 89 |
that password input that has been received by the kernel, but |
| 90 |
not yet read by sudo, will be discarded and not echoed. |
| 91 |
|
| 92 |
* Added the SUDO_TTY environment variable if the user has a terminal. |
| 93 |
This can be used to find the user's original tty device when sudo |
| 94 |
runs the command in its own pseudo-terminal. GitHub issue #447. |
| 95 |
|
| 96 |
* New Cantonese translation for sudo. |
| 97 |
|
| 98 |
What's new in Sudo 1.9.16p2 |
| 99 |
|
| 100 |
* Sudo now passes the terminal device number to the policy plugin |
| 101 |
even if it cannot resolve it to a path name. This allows sudo |
| 102 |
to run without warnings in a chroot jail when the terminal device |
| 103 |
files are not present. GitHub issue #421. |
| 104 |
|
| 105 |
* On Linux systems, sudo will now attempt to use the symbolic links |
| 106 |
in /proc/self/fd/{0,1,2} when resolving the terminal device |
| 107 |
number. This can allow sudo to map a terminal device to its |
| 108 |
path name even when /dev/pts is not mounted in a chroot jail. |
| 109 |
|
| 110 |
* Fixed compilation errors with gcc and clang in C23 mode. |
| 111 |
C23 no longer supports functions with unspecified arguments. |
| 112 |
|
| 113 |
What's new in Sudo 1.9.16p1 |
| 114 |
|
| 115 |
* Fixed the test for cross-compiling when checking for C99 snprintf(). |
| 116 |
The changes made to the test in sudo 1.9.16 resulted in a different |
| 117 |
problem. GitHub issue #386. |
| 118 |
|
| 119 |
* Fixed the date used by the exit record in sudo-format log files. |
| 120 |
This was a regression introduced in sudo 1.9.16 and only affected |
| 121 |
file-based logs, not syslog. GitHub issue #405. |
| 122 |
|
| 123 |
* Fixed the root cause of the "unable to find terminal name for |
| 124 |
device" message when running sudo on AIX when no terminal is |
| 125 |
present. In sudo 1.9.16 this was turned from a debug message |
| 126 |
into a warning. GitHub issue #408 |
| 127 |
|
| 128 |
* When a duplicate alias is found in the sudoers file, the warning |
| 129 |
message now includes the file and line number of the previous |
| 130 |
definition. |
| 131 |
|
| 132 |
* Added support for the --with-secure-path-value=no configure |
| 133 |
option to allow packagers to ship the default sudoers file with |
| 134 |
the secure path line commented out. |
| 135 |
|
| 136 |
* Sudo no longer sends mail when a user runs "sudo -nv" or "sudo -nl", |
| 137 |
even if "mail_badpass" or "mail_always" are set. Sudo already |
| 138 |
avoids logging to a file or syslog in this case. Bug #1072. |
| 139 |
|
| 140 |
What's new in Sudo 1.9.16 |
| 141 |
|
| 142 |
* Added the "cmddenial_message" sudoers option to provide additional |
| 143 |
information to the user when a command is denied by the sudoers |
| 144 |
policy. The default message is still displayed. |
| 145 |
|
| 146 |
* The time stamp used for file-based logs is now more consistent |
| 147 |
with the time stamp produced by syslog. GitHub issues #327. |
| 148 |
|
| 149 |
* Sudo will now warn the user if it can detect the user's terminal |
| 150 |
but cannot determine the path to the terminal device. The sudoers |
| 151 |
time stamp file will now use the terminal device number directly. |
| 152 |
GitHub issue #329. |
| 153 |
|
| 154 |
* The embedded copy of zlib has been updated to version 1.3.1. |
| 155 |
|
| 156 |
* Improved error handling if generating the list of signals and signal |
| 157 |
names fails at build time. |
| 158 |
|
| 159 |
* Fixed a compilation issue on Linux systems without process_vm_readv(). |
| 160 |
|
| 161 |
* Fixed cross-compilation with WolfSSL. |
| 162 |
|
| 163 |
* Added a "json_compact" value for the sudoers "log_format" option |
| 164 |
which can be used when logging to a file. The existing "json" |
| 165 |
value has been aliased to "json_pretty". In a future release, |
| 166 |
"json" will be an alias for "json_compact". GitHub issue #357. |
| 167 |
|
| 168 |
* A new "pam_silent" sudoers option has been added which may be |
| 169 |
negated to avoid suppressing output from PAM authentication modules. |
| 170 |
GitHub issue #216. |
| 171 |
|
| 172 |
* Fixed several cvtsudoers JSON output problems. |
| 173 |
GitHub issues #369, #370, #371, #373, #381. |
| 174 |
|
| 175 |
* When sudo runs a command in a pseudo-terminal and the user's |
| 176 |
terminal is revoked, the pseudo-terminal's foreground process |
| 177 |
group will now receive SIGHUP before the terminal is revoked. |
| 178 |
This emulates the behavior of the session leader exiting and is |
| 179 |
consistent with what happens when, for example, an ssh session |
| 180 |
is closed. GitHub issue #367. |
| 181 |
|
| 182 |
* Fixed "make test" with Python 3.12. GitHub issue #374. |
| 183 |
|
| 184 |
* In schema.ActiveDirectory, fixed the quoting in the example command. |
| 185 |
GitHub issue #376. |
| 186 |
|
| 187 |
* Paths specified via a Chdir_Spec or Chroot_Spec in sudoers may |
| 188 |
now be double-quoted. |
| 189 |
|
| 190 |
* Sudo insults are now included by default, but disabled unless |
| 191 |
the --with-insults configure option is specified or the "insults" |
| 192 |
sudoers option is enabled. |
| 193 |
|
| 194 |
* The default sudoers file now enables the "secure_path" option by |
| 195 |
default and preserves the EDITOR, VISUAL, and SUDO_EDITOR environment |
| 196 |
variables when running visudo. The new --with-secure-path-value |
| 197 |
configure option can be used to set the value of "secure_path" in |
| 198 |
the default sudoers file. GitHub issue #387. |
| 199 |
|
| 200 |
* A sudoers schema for IBM Directory Server (aka IBM Tivoli Directory |
| 201 |
Server, IBM Security Directory Server, and IBM Security Verify |
| 202 |
Directory) is now included. |
| 203 |
|
| 204 |
* When cross-compiling sudo, the configure script now assumes that |
| 205 |
the snprintf() function is C99-compliant if the C compiler |
| 206 |
supports the C99 standard. Previously, configure would use |
| 207 |
sudo's own snprintf() when cross-compiling. GitHub issue #386. |
| 208 |
|
| 209 |
What's new in Sudo 1.9.15p5 |
| 210 |
|
| 211 |
* Fixed evaluation of the "lecture", "listpw", "verifypw", and |
| 212 |
"fdexec" sudoers Defaults settings when used without an explicit |
| 213 |
value. Previously, if specified without a value they were |
| 214 |
evaluated as boolean "false", even when the negation operator |
| 215 |
('!') was not present. |
| 216 |
|
| 217 |
* Fixed a bug introduced in sudo 1.9.14 that prevented LDAP |
| 218 |
netgroup queries using the NETGROUP_BASE setting from being |
| 219 |
performed. |
| 220 |
|
| 221 |
* Sudo will now transparently rename a user's lecture file from |
| 222 |
the older name-based path to the newer user-ID-based path. |
| 223 |
GitHub issue #342. |
| 224 |
|
| 225 |
* Fixed a bug introduced in sudo 1.9.15 that could cause a memory |
| 226 |
allocation failure if sysconf(_SC_LOGIN_NAME_MAX) fails. Bug #1066. |
| 227 |
|
| 228 |
What's new in Sudo 1.9.15p4 |
| 229 |
|
| 230 |
* Fixed a bug introduced in sudo 1.9.15 that could prevent a user's |
| 231 |
privileges from being listed by "sudo -l" if the sudoers entry |
| 232 |
in /etc/nsswitch.conf contains "[SUCCESS=return]". This did not |
| 233 |
affect the ability to run commands via sudo. Bug #1063. |
| 234 |
|
| 235 |
What's new in Sudo 1.9.15p3 |
| 236 |
|
| 237 |
* Always disable core dumps when sudo sends itself a fatal signal. |
| 238 |
Fixes a problem where sudo could potentially dump core dump when |
| 239 |
it re-sends the fatal signal to itself. This is only an issue |
| 240 |
if the command received a signal that would normally result in |
| 241 |
a core dump but the command did not actually dump core. |
| 242 |
|
| 243 |
* Fixed a bug matching a command with a relative path name when |
| 244 |
the sudoers rule uses shell globbing rules for the path name. |
| 245 |
Bug #1062. |
| 246 |
|
| 247 |
* Permit visudo to be run even if the local host name is not set. |
| 248 |
GitHub issue #332. |
| 249 |
|
| 250 |
* Fixed an editing error introduced in sudo 1.9.15 that could |
| 251 |
prevent sudoreplay from replaying sessions correctly. |
| 252 |
GitHub issue #334. |
| 253 |
|
| 254 |
* Fixed a bug introduced in sudo 1.9.15 where "sudo -l > /dev/null" |
| 255 |
could hang on Linux systems. GitHub issue #335. |
| 256 |
|
| 257 |
* Fixed a bug introduced in sudo 1.9.15 where Solaris privileges |
| 258 |
specified in sudoers were not applied to the command being run. |
| 259 |
|
| 260 |
What's new in Sudo 1.9.15p2 |
| 261 |
|
| 262 |
* Fixed a bug on BSD systems where sudo would not restore the |
| 263 |
terminal settings on exit if the terminal had parity enabled. |
| 264 |
GitHub issue #326. |
| 265 |
|
| 266 |
What's new in Sudo 1.9.15p1 |
| 267 |
|
| 268 |
* Fixed a bug introduced in sudo 1.9.15 that prevented LDAP-based |
| 269 |
sudoers from being able to read the ldap.conf file. |
| 270 |
GitHub issue #325. |
| 271 |
|
| 272 |
What's new in Sudo 1.9.15 |
| 273 |
|
| 274 |
* Fixed an undefined symbol problem on older versions of macOS |
| 275 |
when "intercept" or "log_subcmds" are enabled in sudoers. |
| 276 |
GitHub issue #276. |
| 277 |
|
| 278 |
* Fixed "make check" failure related to getpwent(3) wrapping |
| 279 |
on NetBSD. |
| 280 |
|
| 281 |
* Fixed the warning message for "sudo -l command" when the command |
| 282 |
is not permitted. There was a missing space between "list" and |
| 283 |
the actual command due to changes in sudo 1.9.14. |
| 284 |
|
| 285 |
* Fixed a bug where output could go to the wrong terminal if |
| 286 |
"use_pty" is enabled (the default) and the standard input, output |
| 287 |
or error is redirected to a different terminal. Bug #1056. |
| 288 |
|
| 289 |
* The visudo utility will no longer create an empty file when the |
| 290 |
specified sudoers file does not exist and the user exits the |
| 291 |
editor without making any changes. GitHub issue #294. |
| 292 |
|
| 293 |
* The AIX and Solaris sudo packages on www.sudo.ws now support |
| 294 |
"log_subcmds" and "intercept" with both 32-bit and 64-bit |
| 295 |
binaries. Previously, they only worked when running binaries |
| 296 |
with the same word size as the sudo binary. GitHub issue #289. |
| 297 |
|
| 298 |
* The sudoers source is now logged in the JSON event log. This |
| 299 |
makes it possible to tell which rule resulted in a match. |
| 300 |
|
| 301 |
* Running "sudo -ll command" now produces verbose output that |
| 302 |
includes matching rule as well as the path to the sudoers file |
| 303 |
the matching rule came from. For LDAP sudoers, the name of the |
| 304 |
matching sudoRole is printed instead. |
| 305 |
|
| 306 |
* The embedded copy of zlib has been updated to version 1.3. |
| 307 |
|
| 308 |
* The sudoers plugin has been modified to make it more resilient |
| 309 |
to ROWHAMMER attacks on authentication and policy matching. |
| 310 |
This addresses CVE-2023-42465. |
| 311 |
|
| 312 |
* The sudoers plugin now constructs the user time stamp file path |
| 313 |
name using the user-ID instead of the user name. This avoids a |
| 314 |
potential problem with user names that contain a path separator |
| 315 |
('/') being interpreted as part of the path name. A similar |
| 316 |
issue in sudo-rs has been assigned CVE-2023-42456. |
| 317 |
|
| 318 |
* A path separator ('/') in a user, group or host name is now |
| 319 |
replaced with an underbar character ('_') when expanding escapes |
| 320 |
in @include and @includedir directives as well as the "iolog_file" |
| 321 |
and "iolog_dir" sudoers Default settings. |
| 322 |
|
| 323 |
* The "intercept_verify" sudoers option is now only applied when |
| 324 |
the "intercept" option is set in sudoers. Previously, it was |
| 325 |
also applied when "log_subcmds" was enabled. Sudo 1.9.14 |
| 326 |
contained an incorrect fix for this. Bug #1058. |
| 327 |
|
| 328 |
* Changes to terminal settings are now performed atomically, where |
| 329 |
possible. If the command is being run in a pseudo-terminal and |
| 330 |
the user's terminal is already in raw mode, sudo will not change |
| 331 |
the user's terminal settings. This prevents concurrent sudo |
| 332 |
processes from restoring the terminal settings to the wrong values. |
| 333 |
GitHub issue #312. |
| 334 |
|
| 335 |
* Reverted a change from sudo 1.9.4 that resulted in PAM session |
| 336 |
modules being called with the environment of the command to be |
| 337 |
run instead of the environment of the invoking user. |
| 338 |
GitHub issue #318. |
| 339 |
|
| 340 |
* New Indonesian translation from translationproject.org. |
| 341 |
|
| 342 |
* The sudo_logsrvd server will now raise its open file descriptor |
| 343 |
limit to the maximum allowed value when it starts up. Each |
| 344 |
connection can require up to nine open file descriptors so the |
| 345 |
default soft limit may be too low. |
| 346 |
|
| 347 |
* Better log message when rejecting a command if the "intercept" |
| 348 |
option is enabled and the "intercept_allow_setid" option is |
| 349 |
disabled. Previously, "command not allowed" would be logged and |
| 350 |
the user had no way of knowing what the actual problem was. |
| 351 |
|
| 352 |
* Sudo will now log the invoking user's environment as "submitenv" |
| 353 |
in the JSON logs. The command's environment ("runenv") is no |
| 354 |
longer logged for commands rejected by the sudoers file or an |
| 355 |
approval plugin. |
| 356 |
|
| 357 |
What's new in Sudo 1.9.14p3 |
| 358 |
|
| 359 |
* Fixed a crash with Python 3.12 when the sudo Python plugin is |
| 360 |
unloaded. This only affects "make check" for the Python plugin. |
| 361 |
|
| 362 |
* Adapted the sudo Python plugin test output to match Python 3.12. |
| 363 |
|
| 364 |
What's new in Sudo 1.9.14p2 |
| 365 |
|
| 366 |
* Fixed a crash on Linux systems introduced in version 1.9.14 when |
| 367 |
running a command with a NULL argv[0] if "log_subcmds" or |
| 368 |
"intercept" is enabled in sudoers. |
| 369 |
|
| 370 |
* Fixed a problem with "stair-stepped" output when piping or |
| 371 |
redirecting the output of a sudo command that takes user input. |
| 372 |
|
| 373 |
* Fixed a bug introduced in sudo 1.9.14 that affects matching |
| 374 |
sudoers rules containing a Runas_Spec with an empty Runas user. |
| 375 |
These rules should only match when sudo's -g option is used but |
| 376 |
were matching even without the -g option. GitHub issue #290. |
| 377 |
|
| 378 |
What's new in Sudo 1.9.14p1 |
| 379 |
|
| 380 |
* Fixed an invalid free bug in sudo_logsrvd that was introduced |
| 381 |
in version 1.9.14 which could cause sudo_logsrvd to crash. |
| 382 |
|
| 383 |
* The sudoers plugin no longer tries to send the terminal name |
| 384 |
to the log server when no terminal is present. This bug was |
| 385 |
introduced in version 1.9.14. |
| 386 |
|
| 387 |
What's new in Sudo 1.9.14 |
| 388 |
|
| 389 |
* Fixed a bug where if the "intercept" or "log_subcmds" sudoers |
| 390 |
option was enabled and a sub-command was run where the first |
| 391 |
entry of the argument vector didn't match the command being run. |
| 392 |
This resulted in commands like "sudo su -" being killed due to |
| 393 |
the mismatch. Bug #1050. |
| 394 |
|
| 395 |
* The sudoers plugin now canonicalizes command path names before |
| 396 |
matching (where possible). This fixes a bug where sudo could |
| 397 |
execute the wrong path if there are multiple symbolic links with |
| 398 |
the same target and the same base name in sudoers that a user is |
| 399 |
allowed to run. GitHub issue #228. |
| 400 |
|
| 401 |
* Improved command matching when a chroot is specified in sudoers. |
| 402 |
The sudoers plugin will now change the root directory id needed |
| 403 |
before performing command matching. Previously, the root directory |
| 404 |
was simply prepended to the path that was being processed. |
| 405 |
|
| 406 |
* When NETGROUP_BASE is set in the ldap.conf file, sudo will now |
| 407 |
perform its own netgroup lookups of the host name instead of |
| 408 |
using the system innetgr(3) function. This guarantees that user |
| 409 |
and host netgroup lookups are performed using the same LDAP |
| 410 |
server (or servers). |
| 411 |
|
| 412 |
* Fixed a bug introduced in sudo 1.9.13 that resulted in a missing |
| 413 |
" ; " separator between environment variables and the command |
| 414 |
in log entries. |
| 415 |
|
| 416 |
* The visudo utility now displays a warning when it ignores a file |
| 417 |
in an include dir such as /etc/sudoers.d. |
| 418 |
|
| 419 |
* When running a command in a pseudo-terminal, sudo will initialize |
| 420 |
the terminal settings even if it is the background process. |
| 421 |
Previously, sudo only initialized the pseudo-terminal when running |
| 422 |
in the foreground. This fixes an issue where a program that |
| 423 |
checks the window size would read the wrong value when sudo was |
| 424 |
running in the background. |
| 425 |
|
| 426 |
* Fixed a bug where only the first two digits of the TSID field |
| 427 |
being was logged. Bug #1046. |
| 428 |
|
| 429 |
* The "use_pty" sudoers option is now enabled by default. To |
| 430 |
restore the historic behavior where a command is run in the |
| 431 |
user's terminal, add "Defaults !use_pty" to the sudoers file. |
| 432 |
GitHub issue #258. |
| 433 |
|
| 434 |
* Sudo's "-b" option now works when the command is run in a |
| 435 |
pseudo-terminal. |
| 436 |
|
| 437 |
* When disabling core dumps, sudo now only modifies the soft limit |
| 438 |
and leaves the hard limit as-is. This avoids problems on Linux |
| 439 |
when sudo does not have CAP_SYS_RESOURCE, which may be the case |
| 440 |
when run inside a container. GitHub issue #42. |
| 441 |
|
| 442 |
* Sudo configuration file paths have been converted to colon-separated |
| 443 |
lists of paths. This makes it possible to have configuration |
| 444 |
files on a read-only file system while still allowing for local |
| 445 |
modifications in a different (writable) directory. The new |
| 446 |
--enable-adminconf configure option can be used to specify a |
| 447 |
directory that is searched for configuration files in preference |
| 448 |
to the sysconfdir (which is usually /etc). |
| 449 |
|
| 450 |
* The NETGROUP_QUERY ldap.conf parameter can now be disabled for |
| 451 |
LDAP servers that do not support querying the nisNetgroup object |
| 452 |
by its nisNetgroupTriple attribute, while still allowing sudo to |
| 453 |
query the LDAP server directly to determine netgroup membership. |
| 454 |
|
| 455 |
* Fixed a long-standing bug where a sudoers rule without an explicit |
| 456 |
runas list allowed the user to run a command as root and any |
| 457 |
group instead of just one of the groups that root is a member |
| 458 |
of. For example, a rule such as "myuser ALL = ALL" would permit |
| 459 |
"sudo -u root -g othergroup" even if root did not belong to |
| 460 |
"othergroup". |
| 461 |
|
| 462 |
* Fixed a bug where a sudoers rule with an explicit runas list |
| 463 |
allowed a user to run sudo commands as themselves. For example, |
| 464 |
a rule such as "myuser ALL = (root) ALL", "myuser" should only |
| 465 |
allow commands to be run as root (optionally using one of root's |
| 466 |
groups). However, the rule also allowed the user to run |
| 467 |
"sudo -u myuser -g myuser command". |
| 468 |
|
| 469 |
* Fixed a bug that prevented the user from specifying a group on |
| 470 |
the command line via "sudo -g" if the rule's Runas_Spec contained |
| 471 |
a Runas_Alias. |
| 472 |
|
| 473 |
* Sudo now requires a C compiler that conforms to ISO C99 or higher |
| 474 |
to build. |
| 475 |
|
| 476 |
What's new in Sudo 1.9.13p3 |
| 477 |
|
| 478 |
* Fixed a bug introduced in sudo 1.9.13 that caused a syntax error |
| 479 |
when "list" was used as a user or host name. GitHub issue #246. |
| 480 |
|
| 481 |
* Fixed a bug that could cause sudo to hang when running a command |
| 482 |
in a pseudo-terminal when there is still input buffered after a |
| 483 |
command has exited. |
| 484 |
|
| 485 |
* Fixed "sudo -U otheruser -l command". This is a regression in |
| 486 |
sudo 1.9.13. GitHub issue #248. |
| 487 |
|
| 488 |
* Fixed "sudo -l command args" when matching a command in sudoers |
| 489 |
with command line arguments. This is a regression in sudo 1.9.13. |
| 490 |
GitHub issue #249. |
| 491 |
|
| 492 |
What's new in Sudo 1.9.13p2 |
| 493 |
|
| 494 |
* Fixed the --enable-static-sudoers option, broken in sudo 1.9.13. |
| 495 |
GitHub issue #245. |
| 496 |
|
| 497 |
* Fixed a potential double-free bug when matching a sudoers rule |
| 498 |
that contains a per-command chroot directive (CHROOT=dir). This |
| 499 |
bug was introduced in sudo 1.9.8. |
| 500 |
|
| 501 |
What's new in Sudo 1.9.13p1 |
| 502 |
|
| 503 |
* Fixed a typo in the configure script that resulted in a line |
| 504 |
like "]: command not found" in the output. GitHub issue #238. |
| 505 |
|
| 506 |
* Corrected the order of the C23 [[noreturn]] attribute in function |
| 507 |
prototypes. This fixes a build error with GCC 13. GitHub issue |
| 508 |
#239. |
| 509 |
|
| 510 |
* The "check" make target misbehaved when there was more than |
| 511 |
one version of the UTF-8 C locale in the output of "locale -a". |
| 512 |
GitHub issue #241. |
| 513 |
|
| 514 |
* Removed a dependency on the AC_SYS_YEAR2038 macro in configure.ac. |
| 515 |
This was added in autoconf 2.72 but sudo's configure.ac only |
| 516 |
required autoconf 2.70. |
| 517 |
|
| 518 |
* Relaxed the autoconf version requirement to version 2.69. |
| 519 |
|
| 520 |
What's new in Sudo 1.9.13 |
| 521 |
|
| 522 |
* Fixed a bug running relative commands via sudo when "log_subcmds" |
| 523 |
is enabled. GitHub issue #194. |
| 524 |
|
| 525 |
* Fixed a signal handling bug when running sudo commands in a shell |
| 526 |
script. Signals were not being forwarded to the command when |
| 527 |
the sudo process was not run in its own process group. |
| 528 |
|
| 529 |
* Fixed a bug in cvtsudoers' LDIF parsing when the file ends without |
| 530 |
a newline and a backslash is the last character of the file. |
| 531 |
|
| 532 |
* Fixed a potential use-after-free bug with cvtsudoers filtering. |
| 533 |
GitHub issue #198. |
| 534 |
|
| 535 |
* Added a reminder to the default lecture that the password will |
| 536 |
not echo. This line is only displayed when the pwfeedback option |
| 537 |
is disabled. GitHub issue #195. |
| 538 |
|
| 539 |
* Fixed potential memory leaks in error paths. GitHub issues #199, |
| 540 |
#202. |
| 541 |
|
| 542 |
* Fixed potential NULL dereferences on memory allocation failure. |
| 543 |
GitHub issues #204, #211. |
| 544 |
|
| 545 |
* Sudo now uses C23-style attributes in function prototypes instead |
| 546 |
of gcc-style attributes if supported. |
| 547 |
|
| 548 |
* Added a new "list" pseudo-command in sudoers to allow a user to |
| 549 |
list another user's privileges. Previously, only root or a user |
| 550 |
with the ability to run any command as either root or the target |
| 551 |
user on the current host could use the -U option. This also |
| 552 |
includes a fix to the log entry when a user lacks permission to |
| 553 |
run "sudo -U otheruser -l command". Previously, the logs would |
| 554 |
indicate that the user tried to run the actual command, now the |
| 555 |
log entry includes the list operation. |
| 556 |
|
| 557 |
* JSON logging now escapes control characters if they happen to |
| 558 |
appear in the command or environment. |
| 559 |
|
| 560 |
* New Albanian translation from translationproject.org. |
| 561 |
|
| 562 |
* Regular expressions in sudoers or logsrvd.conf may no longer |
| 563 |
contain consecutive repetition operators. This is implementation- |
| 564 |
specific behavior according to POSIX, but some implementations |
| 565 |
will allocate excessive amounts of memory. This mainly affects |
| 566 |
the fuzzers. |
| 567 |
|
| 568 |
* Sudo now builds AIX-style shared libraries and dynamic shared |
| 569 |
objects by default instead of svr4-style. This means that the |
| 570 |
default sudo plugins are now .a (archive) files that contain a |
| 571 |
.so shared object file instead of bare .so files. This was done |
| 572 |
to improve compatibility with the AIX Freeware ecosystem, |
| 573 |
specifically, the AIX Freeware build of OpenSSL. Sudo will still |
| 574 |
load svr4-style .so plugins and if a .so file is requested, |
| 575 |
either via sudo.conf or the sudoers file, and only the .a file |
| 576 |
is present, sudo will convert the path from plugin.so to |
| 577 |
plugin.a(plugin.so) when loading it. This ensures compatibility |
| 578 |
with existing configurations. To restore the old, pre-1.9.13 |
| 579 |
behavior, run configure using the --with-aix-soname=svr4 option. |
| 580 |
|
| 581 |
* Sudo no longer checks the ownership and mode of the plugins that |
| 582 |
it loads. Plugins are configured via either the sudo.conf or |
| 583 |
sudoers file which are trusted configuration files. These checks |
| 584 |
suffered from time-of-check versus time-of-use race conditions and |
| 585 |
complicate loading plugins that are not simple paths. Ownership |
| 586 |
and mode checks are still performed when loading the sudo.conf |
| 587 |
and sudoers files, which do not suffer from race conditions. |
| 588 |
The sudo.conf "developer_mode" setting is no longer used. |
| 589 |
|
| 590 |
* Control characters in sudo log messages and "sudoreplay -l" |
| 591 |
output are now escaped in octal format. Space characters in the |
| 592 |
command path are also escaped. Command line arguments that |
| 593 |
contain spaces are surrounded by single quotes and any literal |
| 594 |
single quote or backslash characters are escaped with a backslash. |
| 595 |
This makes it possible to distinguish multiple command line |
| 596 |
arguments from a single argument that contains spaces. |
| 597 |
|
| 598 |
* Improved support for DragonFly BSD which uses a different struct |
| 599 |
procinfo than either FreeBSD or 4.4BSD. |
| 600 |
|
| 601 |
* Fixed a compilation error on Linux arm systems running older |
| 602 |
kernels that may not define EM_ARM in linux/elf-em.h. |
| 603 |
GitHub issue #232. |
| 604 |
|
| 605 |
* Fixed a compilation error when LDFLAGS contains -Wl,--no-undefined. |
| 606 |
Sudo will now link using -Wl,--no-undefined by default if possible. |
| 607 |
GitHub issue #234. |
| 608 |
|
| 609 |
* Fixed a bug executing a command with a very long argument vector |
| 610 |
when "log_subcmds" or "intercept" is enabled on a system where |
| 611 |
"intercept_type" is set to "trace". GitHub issue #194. |
| 612 |
|
| 613 |
* When sudo is configured to run a command in a pseudo-terminal |
| 614 |
but the standard input is not connected to a terminal, the command |
| 615 |
will now be run as a background process. This works around a |
| 616 |
problem running sudo commands in the background from a shell |
| 617 |
script where changing the terminal to raw mode could interfere |
| 618 |
with the interactive shell that ran the script. |
| 619 |
GitHub issue #237. |
| 620 |
|
| 621 |
* A missing include file in sudoers is no longer a fatal error |
| 622 |
unless the error_recovery plugin argument has been set to false. |
| 623 |
|
| 624 |
What's new in Sudo 1.9.12p2 |
| 625 |
|
| 626 |
* Fixed a compilation error on Linux/aarch64. GitHub issue #197. |
| 627 |
|
| 628 |
* Fixed a potential crash introduced in the fix for GitHub issue #134. |
| 629 |
If a user's sudoers entry did not have any RunAs user's set, |
| 630 |
running "sudo -U otheruser -l" would dereference a NULL pointer. |
| 631 |
|
| 632 |
* Fixed a bug introduced in sudo 1.9.12 that could prevent sudo |
| 633 |
from creating a I/O files when the "iolog_file" sudoers setting |
| 634 |
contains six or more Xs. |
| 635 |
|
| 636 |
* Fixed a compilation issue on AIX with the native compiler. |
| 637 |
GitHub issue #231. |
| 638 |
|
| 639 |
* Fixed CVE-2023-22809, a flaw in sudo's -e option (aka sudoedit) |
| 640 |
that could allow a malicious user with sudoedit privileges to |
| 641 |
edit arbitrary files. |
| 642 |
|
| 643 |
What's new in Sudo 1.9.12p1 |
| 644 |
|
| 645 |
* Sudo's configure script now does a better job of detecting when |
| 646 |
the -fstack-clash-protection compiler option does not work. |
| 647 |
GitHub issue #191. |
| 648 |
|
| 649 |
* Fixed CVE-2022-43995, a potential out-of-bounds write for passwords |
| 650 |
smaller than 8 characters when passwd authentication is enabled. |
| 651 |
This does not affect configurations that use other authentication |
| 652 |
methods such as PAM, AIX authentication or BSD authentication. |
| 653 |
|
| 654 |
* Fixed a build error with some configurations compiling host_port.c. |
| 655 |
|
| 656 |
What's new in Sudo 1.9.12 |
| 657 |
|
| 658 |
* Fixed a bug in the ptrace-based intercept mode where the current |
| 659 |
working directory could include garbage at the end. |
| 660 |
|
| 661 |
* Fixed a compilation error on systems that lack the stdint.h |
| 662 |
header. Bug #1035 |
| 663 |
|
| 664 |
* Fixed a bug when logging the command's exit status in intercept |
| 665 |
mode. The wrong command could be logged with the exit status. |
| 666 |
|
| 667 |
* For ptrace-based intercept mode, sudo will now attempt to |
| 668 |
verify that the command path name, arguments and environment |
| 669 |
have not changed from the time when they were authorized by the |
| 670 |
security policy. The new "intercept_verify" sudoers setting can |
| 671 |
be used to control this behavior. |
| 672 |
|
| 673 |
* Fixed running commands with a relative path (e.g., ./foo) in |
| 674 |
intercept mode. Previously, this would fail if sudo's current |
| 675 |
working directory was different from that of the command. |
| 676 |
|
| 677 |
* Sudo now supports passing the execve(2) system call the NULL |
| 678 |
pointer for the `argv` and/or `envp` arguments when in intercept |
| 679 |
mode. Linux treats a NULL pointer like an empty array. |
| 680 |
|
| 681 |
* The sudoers LDAP schema now allows sudoUser, sudoRunasUser and |
| 682 |
sudoRunasGroup to include UTF-8 characters, not just 7-bit ASCII. |
| 683 |
|
| 684 |
* Fixed a problem with "sudo -i" on SELinux when the target user's |
| 685 |
home directory is not searchable by sudo. GitHub issue #160. |
| 686 |
|
| 687 |
* Neovim has been added to the list of visudo editors that support |
| 688 |
passing the line number on the command line. |
| 689 |
|
| 690 |
* Fixed a bug in sudo's SHA384 and SHA512 message digest padding. |
| 691 |
|
| 692 |
* Added a new "-N" (--no-update) command line option to sudo which |
| 693 |
can be used to prevent sudo from updating the user's cached |
| 694 |
credentials. It is now possible to determine whether or not a |
| 695 |
user's cached credentials are currently valid by running: |
| 696 |
|
| 697 |
$ sudo -Nnv |
| 698 |
|
| 699 |
and checking the exit value. One use case for this is to indicate |
| 700 |
in a shell prompt that sudo is "active" for the user. |
| 701 |
|
| 702 |
* PAM approval modules are no longer invoked when running sub-commands |
| 703 |
in intercept mode unless the "intercept_authenticate" option is set. |
| 704 |
There is a substantial performance penalty for calling into PAM |
| 705 |
for each command run. PAM approval modules are still called for |
| 706 |
the initial command. |
| 707 |
|
| 708 |
* Intercept mode on Linux now uses process_vm_readv(2) and |
| 709 |
process_vm_writev(2) if available. |
| 710 |
|
| 711 |
* The XDG_CURRENT_DESKTOP environment variable is now preserved |
| 712 |
by default. This makes it possible for graphical applications |
| 713 |
to choose the correct theme when run via sudo. |
| 714 |
|
| 715 |
* On 64-bit systems, if sudo fails to load a sudoers group plugin, |
| 716 |
it will use system-specific heuristics to try to locate a 64-bit |
| 717 |
version of the plugin. |
| 718 |
|
| 719 |
* The cvtsudoers manual now documents the JSON and CSV output |
| 720 |
formats. GitHub issue #172. |
| 721 |
|
| 722 |
* Fixed a bug where sub-commands were not being logged to a remote |
| 723 |
log server when log_subcmds was enabled. GitHub issue #174. |
| 724 |
|
| 725 |
* The new log_stdin, log_stdout, log_stderr, log_ttyin, and log_ttyout |
| 726 |
sudoers settings can be used to support more fine-grained I/O logging. |
| 727 |
The sudo front-end no longer allocates a pseudo-terminal when running |
| 728 |
a command if the I/O logging plugin requests logging of stdin, stdout, |
| 729 |
or stderr but not terminal input/output. |
| 730 |
|
| 731 |
* Quieted a libgcrypt run-time initialization warning. |
| 732 |
This fixes Debian bug #1019428 and Ubuntu bug #1397663. |
| 733 |
|
| 734 |
* Fixed a bug in visudo that caused literal backslashes to be removed |
| 735 |
from the EDITOR environment variable. GitHub issue #179. |
| 736 |
|
| 737 |
* The sudo Python plugin now implements the "find_spec" method instead |
| 738 |
of the deprecated "find_module". This fixes a test failure when |
| 739 |
a newer version of setuptools that doesn't include "find_module" is |
| 740 |
found on the system. |
| 741 |
|
| 742 |
* Fixed a bug introduced in sudo 1.9.9 where sudo_logsrvd created |
| 743 |
the process ID file, usually /var/run/sudo/sudo_logsrvd.pid, as |
| 744 |
a directory instead of a plain file. The same bug could result |
| 745 |
in I/O log directories that end in six or more X's being created |
| 746 |
literally in addition to the name being used as a template for |
| 747 |
the mkdtemp(3) function. |
| 748 |
|
| 749 |
* Fixed a long-standing bug where a sudoers rule with a command |
| 750 |
line argument of "", which indicates the command may be run with |
| 751 |
no arguments, would also match a literal "" on the command line. |
| 752 |
GitHub issue #182. |
| 753 |
|
| 754 |
* Added the -I option to visudo which only edits the main sudoers |
| 755 |
file. Include files are not edited unless a syntax error is found. |
| 756 |
|
| 757 |
* Fixed "sudo -l -U otheruser" output when the runas list is empty. |
| 758 |
Previously, sudo would list the invoking user instead of the |
| 759 |
list user. GitHub issue #183. |
| 760 |
|
| 761 |
* Fixed the display of command tags and options in "sudo -l" output |
| 762 |
when the RunAs user or group changes. A new line is started for |
| 763 |
RunAs changes which means we need to display the command tags |
| 764 |
and options again. GitHub issue #184. |
| 765 |
|
| 766 |
* The sesh helper program now uses getopt_long(3) to parse the |
| 767 |
command line options. |
| 768 |
|
| 769 |
* The embedded copy of zlib has been updated to version 1.2.13. |
| 770 |
|
| 771 |
* Fixed a bug that prevented event log data from being sent to the |
| 772 |
log server when I/O logging was not enabled. This only affected |
| 773 |
systems without PAM or configurations where the pam_session and |
| 774 |
pam_setcred options were disabled in the sudoers file. |
| 775 |
|
| 776 |
* Fixed a bug where "sudo -l" output included a carriage return |
| 777 |
after the newline. This is only needed when displaying to a |
| 778 |
terminal in raw mode. Bug #1042. |
| 779 |
|
| 780 |
What's new in Sudo 1.9.11p3 |
| 781 |
|
| 782 |
* Fixed "connection reset" errors on AIX when running shell scripts |
| 783 |
with the "intercept" or "log_subcmds" sudoers options enabled. |
| 784 |
Bug #1034. |
| 785 |
|
| 786 |
* Fixed very slow execution of shell scripts when the "intercept" |
| 787 |
or "log_subcmds" sudoers options are set on systems that enable |
| 788 |
Nagle's algorithm on the loopback device, such as AIX. |
| 789 |
Bug #1034. |
| 790 |
|
| 791 |
What's new in Sudo 1.9.11p2 |
| 792 |
|
| 793 |
* Fixed a compilation error on Linux/x86_64 with the x32 ABI. |
| 794 |
|
| 795 |
* Fixed a regression introduced in 1.9.11p1 that caused a warning |
| 796 |
when logging to sudo_logsrvd if the command returned no output. |
| 797 |
|
| 798 |
What's new in Sudo 1.9.11p1 |
| 799 |
|
| 800 |
* Correctly handle EAGAIN in the I/O read/right events. This fixes |
| 801 |
a hang seen on some systems when piping a large amount of data |
| 802 |
through sudo, such as via rsync. Bug #963. |
| 803 |
|
| 804 |
* Changes to avoid implementation or unspecified behavior when |
| 805 |
bit shifting signed values in the protobuf library. |
| 806 |
|
| 807 |
* Fixed a compilation error on Linux/aarch64. |
| 808 |
|
| 809 |
* Fixed the configure check for seccomp(2) support on Linux. |
| 810 |
|
| 811 |
* Corrected the EBNF specification for tags in the sudoers manual |
| 812 |
page. GitHub issue #153. |
| 813 |
|
| 814 |
What's new in Sudo 1.9.11 |
| 815 |
|
| 816 |
* Fixed a crash in the Python module with Python 3.9.10 on some |
| 817 |
systems. Additionally, "make check" now passes for Python 3.9.10. |
| 818 |
|
| 819 |
* Error messages sent via email now include more details, including |
| 820 |
the file name and the line number and column of the error. |
| 821 |
Multiple errors are sent in a single message. Previously, only |
| 822 |
the first error was included. |
| 823 |
|
| 824 |
* Fixed logging of parse errors in JSON format. Previously, |
| 825 |
the JSON logger would not write entries unless the command and |
| 826 |
runuser were set. These may not be known at the time a parse |
| 827 |
error is encountered. |
| 828 |
|
| 829 |
* Fixed a potential crash parsing sudoers lines larger than twice |
| 830 |
the value of LINE_MAX on systems that lack the getdelim() function. |
| 831 |
|
| 832 |
* The tests run by "make check" now unset the LANGUAGE environment |
| 833 |
variable. Otherwise, localization strings will not match if |
| 834 |
LANGUAGE is set to a non-English locale. Bug #1025. |
| 835 |
|
| 836 |
* The "starttime" test now passed when run under Debian faketime. |
| 837 |
Bug #1026. |
| 838 |
|
| 839 |
* The Kerberos authentication module now honors the custom password |
| 840 |
prompt if one has been specified. |
| 841 |
|
| 842 |
* The embedded copy of zlib has been updated to version 1.2.12. |
| 843 |
|
| 844 |
* Updated the version of libtool used by sudo to version 2.4.7. |
| 845 |
|
| 846 |
* Sudo now defines _TIME_BITS to 64 on systems that define __TIMESIZE |
| 847 |
in the header files (currently only GNU libc). This is required |
| 848 |
to allow the use of 64-bit time values on some 32-bit systems. |
| 849 |
|
| 850 |
* Sudo's "intercept" and "log_subcmds" options no longer force the |
| 851 |
command to run in its own pseudo-terminal. It is now also |
| 852 |
possible to intercept the system(3) function. |
| 853 |
|
| 854 |
* Fixed a bug in sudo_logsrvd when run in store-first relay mode |
| 855 |
where the commit point messages sent by the server were incorrect |
| 856 |
if the command was suspended or received a window size change |
| 857 |
event. |
| 858 |
|
| 859 |
* Fixed a potential crash in sudo_logsrvd when the "tls_dhparams" |
| 860 |
configuration setting was used. |
| 861 |
|
| 862 |
* The "intercept" and "log_subcmds" functionality can now use |
| 863 |
ptrace(2) on Linux systems that support seccomp(2) filtering. |
| 864 |
This has the advantage of working for both static and dynamic |
| 865 |
binaries and can work with sudo's SELinux RBAC mode. The following |
| 866 |
architectures are currently supported: i386, x86_64, aarch64, |
| 867 |
arm, mips (log_subcmds only), powerpc, riscv, and s390x. The |
| 868 |
default is to use ptrace(2) where possible; the new "intercept_type" |
| 869 |
sudoers setting can be used to explicitly set the type. |
| 870 |
|
| 871 |
* New Georgian translation from translationproject.org. |
| 872 |
|
| 873 |
* Fixed creating packages on CentOS Stream. |
| 874 |
|
| 875 |
* Fixed a bug in the intercept and log_subcmds support where |
| 876 |
the execve(2) wrapper was using the current environment instead |
| 877 |
of the passed environment pointer. Bug #1030. |
| 878 |
|
| 879 |
* Added AppArmor integration for Linux. A sudoers rule can now |
| 880 |
specify an APPARMOR_PROFILE option to run a command confined by |
| 881 |
the named AppArmor profile. |
| 882 |
|
| 883 |
* Fixed parsing of the "server_log" setting in sudo_logsrvd.conf. |
| 884 |
Non-paths were being treated as paths and an actual path was |
| 885 |
treated as an error. |
| 886 |
|
| 887 |
What's new in Sudo 1.9.10 |
| 888 |
|
| 889 |
* Added new "log_passwords" and "passprompt_regex" sudoers options. |
| 890 |
If "log_passwords" is disabled, sudo will attempt to prevent passwords |
| 891 |
from being logged. If sudo detects any of the regular expressions in |
| 892 |
the "passprompt_regex" list in the terminal output, sudo will log '*' |
| 893 |
characters instead of the terminal input until a newline or carriage |
| 894 |
return is found in the input or an output character is received. |
| 895 |
|
| 896 |
* Added new "log_passwords" and "passprompt_regex" settings to |
| 897 |
sudo_logsrvd that operate like the sudoers options when logging |
| 898 |
terminal input. |
| 899 |
|
| 900 |
* Fixed several few bugs in the cvtsudoers utility when merging |
| 901 |
multiple sudoers sources. |
| 902 |
|
| 903 |
* Fixed a bug in sudo_logsrvd when parsing the sudo_logsrvd.conf |
| 904 |
file, where the "retry_interval" in the [relay] section was not |
| 905 |
being recognized. |
| 906 |
|
| 907 |
* Restored the pre-1.9.9 behavior of not performing authentication |
| 908 |
when sudo's -n option is specified. A new "noninteractive_auth" |
| 909 |
sudoers option has been added to enable PAM authentication in |
| 910 |
non-interactive mode. GitHub issue #131. |
| 911 |
|
| 912 |
* On systems with /proc, if the /proc/self/stat (Linux) or |
| 913 |
/proc/pid/psinfo (other systems) file is missing or invalid, |
| 914 |
sudo will now check file descriptors 0-2 to determine the user's |
| 915 |
terminal. Bug #1020. |
| 916 |
|
| 917 |
* Fixed a compilation problem on Debian kFreeBSD. Bug #1021. |
| 918 |
|
| 919 |
* Fixed a crash in sudo_logsrvd when running in relay mode if |
| 920 |
an alert message is received. |
| 921 |
|
| 922 |
* Fixed an issue that resulting in "problem with defaults entries" |
| 923 |
email to be sent if a user ran sudo when the sudoers entry in |
| 924 |
the nsswitch.conf file includes "sss" but no sudo provider is |
| 925 |
configured in /etc/sssd/sssd.conf. Bug #1022. |
| 926 |
|
| 927 |
* Updated the warning displayed when the invoking user is not |
| 928 |
allowed to run sudo. If sudo has been configured to send mail |
| 929 |
on failed attempts (see the mail_* flags in sudoers), it will |
| 930 |
now print "This incident has been reported to the administrator." |
| 931 |
If the "mailto" or "mailerpath" sudoers settings are disabled, |
| 932 |
the message will not be printed and no mail will be sent. |
| 933 |
GitHub issue #48. |
| 934 |
|
| 935 |
* Fixed a bug where the user-specified command timeout was not |
| 936 |
being honored if the sudoers rule did not also specify a timeout. |
| 937 |
|
| 938 |
* Added support for using POSIX extended regular expressions in |
| 939 |
sudoers rules. A command and/or arguments in sudoers are treated |
| 940 |
as a regular expression if they start with a '^' character and |
| 941 |
end with a '$'. The command and arguments are matched separately, |
| 942 |
either one (or both) may be a regular expression. |
| 943 |
Bug #578, GitHub issue #15. |
| 944 |
|
| 945 |
* A user may now only run "sudo -U otheruser -l" if they have a |
| 946 |
"sudo ALL" privilege where the RunAs user contains either "root" |
| 947 |
or "otheruser". Previously, having "sudo ALL" was sufficient, |
| 948 |
regardless of the RunAs user. GitHub issue #134. |
| 949 |
|
| 950 |
* The sudo lecture is now displayed immediately before the password |
| 951 |
prompt. As a result, sudo will no longer display the lecture |
| 952 |
unless the user needs to enter a password. Authentication methods |
| 953 |
that don't interact with the user via a terminal do not trigger |
| 954 |
the lecture. |
| 955 |
|
| 956 |
* Sudo now uses its own closefrom() emulation on Linux systems. |
| 957 |
The glibc version may not work in a chroot jail where /proc is |
| 958 |
not available. If close_range(2) is present, it will be used |
| 959 |
in preference to /proc/self/fd. |
| 960 |
|
| 961 |
What's new in Sudo 1.9.9 |
| 962 |
|
| 963 |
* Sudo can now be built with OpenSSL 3.0 without generating warnings |
| 964 |
about deprecated OpenSSL APIs. |
| 965 |
|
| 966 |
* A digest can now be specified along with the "ALL" command in |
| 967 |
the LDAP and SSSD back-ends. Sudo 1.9.0 introduced support for |
| 968 |
this in the sudoers file but did not include corresponding changes |
| 969 |
for the other back-ends. |
| 970 |
|
| 971 |
* visudo now only warns about an undefined alias or a cycle in an |
| 972 |
alias once for each alias. |
| 973 |
|
| 974 |
* The sudoRole cn was truncated by a single character in warning messages. |
| 975 |
GitHub issue #115. |
| 976 |
|
| 977 |
* The cvtsudoers utility has new --group-file and --passwd-file options |
| 978 |
to use a custom passwd or group file when the --match-local option is |
| 979 |
also used. |
| 980 |
|
| 981 |
* The cvtsudoers utility can now filter or match based on a command. |
| 982 |
|
| 983 |
* The cvtsudoers utility can now produce output in csv (comma-separated |
| 984 |
value) format. This can be used to help generate entitlement reports. |
| 985 |
|
| 986 |
* Fixed a bug in sudo_logsrvd that could result in the connection being |
| 987 |
dropped for very long command lines. |
| 988 |
|
| 989 |
* Fixed a bug where sudo_logsrvd would not accept a restore point |
| 990 |
of zero. |
| 991 |
|
| 992 |
* Fixed a bug in visudo where the value of the "editor" setting was not |
| 993 |
used if it did not match the user's EDITOR environment variable. |
| 994 |
This was only a problem if the "env_editor" setting was not enabled. |
| 995 |
Bug #1000. |
| 996 |
|
| 997 |
* Sudo now builds with the -fcf-protection compiler option and the |
| 998 |
"-z now" linker option if supported. |
| 999 |
|
| 1000 |
* The output of "sudoreplay -l" now more closely matches the |
| 1001 |
traditional sudo log format. |
| 1002 |
|
| 1003 |
* The sudo_sendlog utility will now use the full contents of the log.json |
| 1004 |
file, if present. This makes it possible to send sudo-format I/O logs |
| 1005 |
that use the newer log.json format to sudo_logsrvd without losing any |
| 1006 |
information. |
| 1007 |
|
| 1008 |
* Fixed compilation of the arc4random_buf() replacement on systems with |
| 1009 |
arc4random() but no arc4random_buf(). Bug #1008. |
| 1010 |
|
| 1011 |
* Sudo now uses its own getentropy() by default on Linux. The GNU libc |
| 1012 |
version of getentropy() will fail on older kernels that don't support |
| 1013 |
the getrandom() system call. |
| 1014 |
|
| 1015 |
* It is now possible to build sudo with WolfSSL's OpenSSL compatibility |
| 1016 |
layer by using the --enable-wolfssl configure option. |
| 1017 |
|
| 1018 |
* Fixed a bug related to Daylight Saving Time when parsing timestamps |
| 1019 |
in Generalized Time format. This affected the NOTBEFORE and |
| 1020 |
NOTAFTER options in sudoers. Bug #1006 |
| 1021 |
|
| 1022 |
* Added the -O and -P options to visudo, which can be used to check |
| 1023 |
or set the owner and permissions. This can be used in conjunction |
| 1024 |
with the -c option to check that the sudoers file ownership and |
| 1025 |
permissions are correct. Bug #1007. |
| 1026 |
|
| 1027 |
* It is now possible to set resource limits in the sudoers file itself. |
| 1028 |
The special values "default" and "user" refer to the default system |
| 1029 |
limit and invoking user limit respectively. The core dump size limit |
| 1030 |
is now set to 0 by default unless overridden by the sudoers file. |
| 1031 |
|
| 1032 |
* The cvtsudoers utility can now merge multiple sudoers sources into |
| 1033 |
a single, combined sudoers file. If there are conflicting entries, |
| 1034 |
cvtsudoers will attempt to resolve them but manual intervention |
| 1035 |
may be required. The merging of sudoers rules is currently fairly |
| 1036 |
simplistic but will be improved in a future release. |
| 1037 |
|
| 1038 |
* Sudo was parsing but not applying the "deref" and "tls_reqcert" |
| 1039 |
ldap.conf settings. This meant the options were effectively |
| 1040 |
ignored which broke dereferencing of aliases in LDAP. Bug #1013. |
| 1041 |
|
| 1042 |
* Clarified in the sudo man page that the security policy may |
| 1043 |
override the user's PATH environment variable. Bug #1014. |
| 1044 |
|
| 1045 |
* When sudo is run in non-interactive mode (with the -n option), it |
| 1046 |
will now attempt PAM authentication and only exit with an error |
| 1047 |
if user interaction is required. This allows PAM modules that |
| 1048 |
don't interact with the user to succeed. Previously, sudo |
| 1049 |
would not attempt authentication if the -n option was specified. |
| 1050 |
Bug #956 and GitHub issue #83. |
| 1051 |
|
| 1052 |
* Fixed a regression introduced in version 1.9.1 when sudo is |
| 1053 |
built with the --with-fqdn configure option. The local host |
| 1054 |
name was being resolved before the sudoers file was processed, |
| 1055 |
making it impossible to disable DNS lookups by negating the |
| 1056 |
"fqdn" sudoers option. Bug #1016. |
| 1057 |
|
| 1058 |
* Added support for negated sudoUser attributes in the LDAP and |
| 1059 |
SSSD sudoers back ends. A matching sudoUser that is negated |
| 1060 |
will cause the sudoRole containing it to be ignored. |
| 1061 |
|
| 1062 |
* Fixed a bug where the stack resource limit could be set to a |
| 1063 |
value smaller than that of the invoking user and not be reset |
| 1064 |
before the command was run. Bug #1017. |
| 1065 |
|
| 1066 |
What's new in Sudo 1.9.8p2 |
| 1067 |
|
| 1068 |
* Fixed a potential out-of-bounds read with "sudo -i" when the |
| 1069 |
target user's shell is bash. This is a regression introduced |
| 1070 |
in sudo 1.9.8. Bug #998. |
| 1071 |
|
| 1072 |
* sudo_logsrvd now only sends a log ID for first command of a session. |
| 1073 |
There is no need to send the log ID for each sub-command. |
| 1074 |
|
| 1075 |
* Fixed a few minor memory leaks in intercept mode. |
| 1076 |
|
| 1077 |
* Fixed a problem with sudo_logsrvd in relay mode if "store_first" |
| 1078 |
was enabled when handling sub-commands. A new zero-length journal |
| 1079 |
file was created for each sub-command instead of simply using |
| 1080 |
the existing journal file. |
| 1081 |
|
| 1082 |
* Fixed a bug where sudoedit would fail if one of the directories |
| 1083 |
in the path to be edited had the immutable flag set (BSD, Linux |
| 1084 |
or macOS). GitHub issue #122. |
| 1085 |
|
| 1086 |
What's new in Sudo 1.9.8p1 |
| 1087 |
|
| 1088 |
* Fixed support for passing a prompt (sudo -p) or a login class |
| 1089 |
(sudo -c) on the command line. This is a regression introduced |
| 1090 |
in sudo 1.9.8. Bug #993. |
| 1091 |
|
| 1092 |
* Fixed a crash with "sudo ALL" rules in the LDAP and SSSD back-ends. |
| 1093 |
This is a regression introduced in sudo 1.9.8. Bug #994. |
| 1094 |
|
| 1095 |
* Fixed a compilation error when the --enable-static-sudoers configure |
| 1096 |
option was specified. This is a regression introduced in sudo |
| 1097 |
1.9.8 caused by a symbol clash with the intercept and log server |
| 1098 |
protobuf functions. |
| 1099 |
|
| 1100 |
What's new in Sudo 1.9.8 |
| 1101 |
|
| 1102 |
* It is now possible to transparently intercepting sub-commands |
| 1103 |
executed by the original command run via sudo. Intercept support |
| 1104 |
is implemented using LD_PRELOAD (or the equivalent supported by |
| 1105 |
the system) and so has some limitations. The two main limitations |
| 1106 |
are that only dynamic executables are supported and only the |
| 1107 |
execl, execle, execlp, execv, execve, execvp, and execvpe library |
| 1108 |
functions are currently intercepted. Its main use case is to |
| 1109 |
support restricting privileged shells run via sudo. |
| 1110 |
|
| 1111 |
To support this, there is a new "intercept" Defaults setting and |
| 1112 |
an INTERCEPT command tag that can be used in sudoers. For example: |
| 1113 |
|
| 1114 |
Cmnd_Alias SHELLS=/bin/bash, /bin/sh, /bin/csh, /bin/ksh, /bin/zsh |
| 1115 |
Defaults!SHELLS intercept |
| 1116 |
|
| 1117 |
would cause sudo to run the listed shells in intercept mode. |
| 1118 |
This can also be set on a per-rule basis. For example: |
| 1119 |
|
| 1120 |
Cmnd_Alias SHELLS=/bin/bash, /bin/sh, /bin/csh, /bin/ksh, /bin/zsh |
| 1121 |
chuck ALL = INTERCEPT: SHELLS |
| 1122 |
|
| 1123 |
would only apply intercept mode to user "chuck" when running one |
| 1124 |
of the listed shells. |
| 1125 |
|
| 1126 |
In intercept mode, sudo will not prompt for a password before |
| 1127 |
running a sub-command and will not allow a set-user-ID or |
| 1128 |
set-group-ID program to be run by default. The new |
| 1129 |
intercept_authenticate and intercept_allow_setid sudoers settings |
| 1130 |
can be used to change this behavior. |
| 1131 |
|
| 1132 |
* The new "log_subcmds" sudoers setting can be used to log additional |
| 1133 |
commands run in a privileged shell. It uses the same mechanism as |
| 1134 |
the intercept support described above and has the same limitations. |
| 1135 |
|
| 1136 |
* The new "log_exit_status" sudoers setting can be used to log |
| 1137 |
the exit status commands run via sudo. This is also a corresponding |
| 1138 |
"log_exit" setting in the sudo_logsrvd.conf eventlog stanza. |
| 1139 |
|
| 1140 |
* Support for logging sudo_logsrvd errors via syslog or to a file. |
| 1141 |
Previously, most sudo_logsrvd errors were only visible in the |
| 1142 |
debug log. |
| 1143 |
|
| 1144 |
* Better diagnostics when there is a TLS certificate validation error. |
| 1145 |
|
| 1146 |
* Using the "+=" or "-=" operators in a Defaults setting that takes |
| 1147 |
a string, not a list, now produces a warning from sudo and a |
| 1148 |
syntax error from inside visudo. |
| 1149 |
|
| 1150 |
* Fixed a bug where the "iolog_mode" setting in sudoers and sudo_logsrvd |
| 1151 |
had no effect when creating I/O log parent directories if the I/O log |
| 1152 |
file name ended with the string "XXXXXX". |
| 1153 |
|
| 1154 |
* Fixed a bug in the sudoers custom prompt code where the size |
| 1155 |
parameter that was passed to the strlcpy() function was incorrect. |
| 1156 |
No overflow was possible since the correct amount of memory was |
| 1157 |
already pre-allocated. |
| 1158 |
|
| 1159 |
* The mksigname and mksiglist helper programs are now built with |
| 1160 |
the host compiler, not the target compiler, when cross-compiling. |
| 1161 |
Bug #989. |
| 1162 |
|
| 1163 |
* Fixed compilation error when the --enable-static-sudoers configure |
| 1164 |
option was specified. This was due to a typo introduced in sudo |
| 1165 |
1.9.7. GitHub PR #113. |
| 1166 |
|
| 1167 |
What's new in Sudo 1.9.7p2 |
| 1168 |
|
| 1169 |
* When formatting JSON output, octal numbers are now stored as |
| 1170 |
strings, not numbers. The JSON spec does not actually support |
| 1171 |
octal numbers with a '0' prefix. |
| 1172 |
|
| 1173 |
* Fixed a compilation issue on Solaris 9. |
| 1174 |
|
| 1175 |
* Sudo now can handle the getgroups() function returning a different |
| 1176 |
number of groups for subsequent invocations. GitHub PR #106. |
| 1177 |
|
| 1178 |
* When loading a Python plugin, python_plugin.so now verifies |
| 1179 |
that the module loaded matches the one we tried to load. This |
| 1180 |
allows sudo to display a more useful error message when trying |
| 1181 |
to load a plugin with a name that conflicts with a Python module |
| 1182 |
installed in the system location. |
| 1183 |
|
| 1184 |
* Sudo no longer sets the open files resource limit to "unlimited" |
| 1185 |
while it runs. This avoids a problem where sudo's closefrom() |
| 1186 |
emulation would need to close a very large number of descriptors |
| 1187 |
on systems without a way to determine which ones are actually open. |
| 1188 |
|
| 1189 |
* Sudo now includes a configure check for va_copy or __va_copy and |
| 1190 |
only defines its own version if the configure test fails. |
| 1191 |
|
| 1192 |
* Fixed a bug in sudo's utmp file handling which prevented old |
| 1193 |
entries from being reused. As a result, the utmp (or utmpx) |
| 1194 |
file was appended to unnecessarily. GitHub PR #108. |
| 1195 |
|
| 1196 |
* Fixed a bug introduced in sudo 1.9.7 that prevented sudo_logsrvd |
| 1197 |
from accepting TLS connections when OpenSSL is used. Bug #988. |
| 1198 |
|
| 1199 |
What's new in Sudo 1.9.7p1 |
| 1200 |
|
| 1201 |
* Fixed an SELinux sudoedit bug when the edited temporary file |
| 1202 |
could not be opened. The sesh helper would still be run even |
| 1203 |
when there are no temporary files available to install. |
| 1204 |
|
| 1205 |
* Fixed a compilation problem on FreeBSD. |
| 1206 |
|
| 1207 |
* The sudo_noexec.so file is now built as a module on all systems |
| 1208 |
other than macOS. This makes it possible to use other libtool |
| 1209 |
implementations such as slibtool. On macOS shared libraries and |
| 1210 |
modules are not interchangeable and the version of libtool shipped |
| 1211 |
with sudo must be used. |
| 1212 |
|
| 1213 |
* Fixed a few bugs in the getgrouplist() emulation on Solaris when |
| 1214 |
reading from the local group file. |
| 1215 |
|
| 1216 |
* Fixed a bug in sudo_logsrvd that prevented periodic relay server |
| 1217 |
connection retries from occurring in "store_first" mode. |
| 1218 |
|
| 1219 |
* Disabled the nss_search()-based getgrouplist() emulation on HP-UX |
| 1220 |
due to a crash when the group source is set to "compat" in |
| 1221 |
/etc/nsswitch.conf. This is probably due to a mismatch between |
| 1222 |
include/compat/nss_dbdefs.h and what HP-UX uses internally. On |
| 1223 |
HP-UX we now just cycle through groups the slow way using |
| 1224 |
getgrent(). Bug #978. |
| 1225 |
|
| 1226 |
What's new in Sudo 1.9.7 |
| 1227 |
|
| 1228 |
* The "fuzz" Makefile target now runs all the fuzzers for 8192 |
| 1229 |
passes (can be overridden via the FUZZ_RUNS variable). This makes |
| 1230 |
it easier to run the fuzzers in-tree. To run a fuzzer indefinitely, |
| 1231 |
set FUZZ_RUNS=-1, e.g., "make FUZZ_RUNS=-1 fuzz". |
| 1232 |
|
| 1233 |
* Fixed fuzzing on FreeBSD where the ld.lld linker returns an |
| 1234 |
error by default when a symbol is multiply-defined. |
| 1235 |
|
| 1236 |
* Added support for determining local IPv6 addresses on systems |
| 1237 |
that lack the getifaddrs() function. This now works on AIX, |
| 1238 |
HP-UX and Solaris (at least). Bug #969. |
| 1239 |
|
| 1240 |
* Fixed a bug introduced in sudo 1.9.6 that caused "sudo -V" to |
| 1241 |
report a usage error. Also, when invoked as sudoedit, sudo now |
| 1242 |
allows a more restricted set of options that matches the usage |
| 1243 |
statement and documentation. GitHub issue #95. |
| 1244 |
|
| 1245 |
* Fixed a crash in sudo_sendlog when the specified certificate |
| 1246 |
or key does not exist or is invalid. Bug #970 |
| 1247 |
|
| 1248 |
* Fixed a compilation error when sudo is configured with the |
| 1249 |
--disable-log-client option. |
| 1250 |
|
| 1251 |
* Sudo's limited support for SUCCESS=return entries in nsswitch.conf |
| 1252 |
is now documented. Bug #971. |
| 1253 |
|
| 1254 |
* Sudo now requires autoconf 2.70 or higher to regenerate the |
| 1255 |
configure script. Bug #972. |
| 1256 |
|
| 1257 |
* sudo_logsrvd now has a relay mode which can be used to create |
| 1258 |
a hierarchy of log servers. By default, when a relay server is |
| 1259 |
defined, messages from the client are forwarded immediately to |
| 1260 |
the relay. However, if the "store_first" setting is enabled, |
| 1261 |
the log will be stored locally until the command completes and |
| 1262 |
then relayed. Bug #965. |
| 1263 |
|
| 1264 |
* Sudo now links with OpenSSL by default if it is available unless |
| 1265 |
the --disable-openssl configure option is used or both the |
| 1266 |
--disable-log-client and --disable-log-server configure options |
| 1267 |
are specified. |
| 1268 |
|
| 1269 |
* Fixed configure's Python version detection when the version minor |
| 1270 |
number is more than a single digit, for example Python 3.10. |
| 1271 |
|
| 1272 |
* The sudo Python module tests now pass for Python 3.10. |
| 1273 |
|
| 1274 |
* Sudo will now avoid changing the datasize resource limit |
| 1275 |
as long as the existing value is at least 1GB. This works around |
| 1276 |
a problem on 64-bit HP-UX where it is not possible to exactly |
| 1277 |
restore the original datasize limit. Bug #973. |
| 1278 |
|
| 1279 |
* Fixed a race condition that could result in a hang when sudo is |
| 1280 |
executed by a process where the SIGCHLD handler is set to SIG_IGN. |
| 1281 |
This fixes the bug described by GitHub PR #98. |
| 1282 |
|
| 1283 |
* Fixed an out-of-bounds read in sudoedit and visudo when the |
| 1284 |
EDITOR, VISUAL or SUDO_EDITOR environment variables end in an |
| 1285 |
unescaped backslash. Also fixed the handling of quote characters |
| 1286 |
that are escaped by a backslash. GitHub issue #99. |
| 1287 |
|
| 1288 |
* Fixed a bug that prevented the "log_server_verify" sudoers option |
| 1289 |
from taking effect. |
| 1290 |
|
| 1291 |
* The sudo_sendlog utility has a new -s option to cause it to stop |
| 1292 |
sending I/O records after a user-specified elapsed time. This |
| 1293 |
can be used to test the I/O log restart functionality of sudo_logsrvd. |
| 1294 |
|
| 1295 |
* Fixed a crash introduced in sudo 1.9.4 in sudo_logsrvd when |
| 1296 |
attempting to restart an interrupted I/O log transfer. |
| 1297 |
|
| 1298 |
* The TLS connection timeout in the sudoers log client was previously |
| 1299 |
hard-coded to 10 seconds. It now uses the value of log_server_timeout. |
| 1300 |
|
| 1301 |
* The configure script now outputs a summary of the user-configurable |
| 1302 |
options at the end, separate from output of configure script tests. |
| 1303 |
Bug #820. |
| 1304 |
|
| 1305 |
* Corrected the description of which groups may be specified via the |
| 1306 |
-g option in the Runas_Spec section. Bug #975. |
| 1307 |
|
| 1308 |
What's new in Sudo 1.9.6p1 |
| 1309 |
|
| 1310 |
* Fixed a regression introduced in sudo 1.9.6 that resulted in an |
| 1311 |
error message instead of a usage message when sudo is run with |
| 1312 |
no arguments. |
| 1313 |
|
| 1314 |
What's new in Sudo 1.9.6 |
| 1315 |
|
| 1316 |
* Fixed a sudo_sendlog compilation problem with the AIX xlC compiler. |
| 1317 |
|
| 1318 |
* Fixed a regression introduced in sudo 1.9.4 where the |
| 1319 |
--disable-root-mailer configure option had no effect. |
| 1320 |
|
| 1321 |
* Added a --disable-leaks configure option that avoids some |
| 1322 |
memory leaks on exit that would otherwise occur. This is intended |
| 1323 |
to be used with development tools that measure memory leaks. It |
| 1324 |
is not safe to use in production at this time. |
| 1325 |
|
| 1326 |
* Plugged some memory leaks identified by oss-fuzz and ASAN. |
| 1327 |
|
| 1328 |
* Fixed the handling of sudoOptions for an LDAP sudoRole that |
| 1329 |
contains multiple sudoCommands. Previously, some of the options |
| 1330 |
would only be applied to the first sudoCommand. |
| 1331 |
|
| 1332 |
* Fixed a potential out of bounds read in the parsing of NOTBEFORE |
| 1333 |
and NOTAFTER sudoers command options (and their LDAP equivalents). |
| 1334 |
|
| 1335 |
* The parser used for reading I/O log JSON files is now more |
| 1336 |
resilient when processing invalid JSON. |
| 1337 |
|
| 1338 |
* Fixed typos that prevented "make uninstall" from working. |
| 1339 |
GitHub issue #87. |
| 1340 |
|
| 1341 |
* Fixed a regression introduced in sudo 1.9.4 where the last line |
| 1342 |
in a sudoers file might not have a terminating NUL character |
| 1343 |
added if no newline was present. |
| 1344 |
|
| 1345 |
* Integrated oss-fuzz and LLVM's libFuzzer with sudo. The new |
| 1346 |
--enable-fuzzer configure option can be combined with the |
| 1347 |
--enable-sanitizer option to build sudo with fuzzing support. |
| 1348 |
Multiple fuzz targets are available for fuzzing different parts |
| 1349 |
of sudo. Fuzzers are built and tested via "make fuzz" or as part |
| 1350 |
of "make check" (even when sudo is not built with fuzzing support). |
| 1351 |
Fuzzing support currently requires the LLVM clang compiler (not gcc). |
| 1352 |
|
| 1353 |
* Fixed the --enable-static-sudoers configure option. |
| 1354 |
GitHub issue #92. |
| 1355 |
|
| 1356 |
* Fixed a potential out of bounds read sudo when is run by a user |
| 1357 |
with more groups than the value of "max_groups" in sudo.conf. |
| 1358 |
|
| 1359 |
* Added an "admin_flag" sudoers option to make the use of the |
| 1360 |
~/.sudo_as_admin_successful file configurable on systems where |
| 1361 |
sudo is build with the --enable-admin-flag configure option. |
| 1362 |
This mostly affects Ubuntu and its derivatives. GitHub issue #56. |
| 1363 |
|
| 1364 |
* The "max_groups" setting in sudo.conf is now limited to 1024. |
| 1365 |
This setting is obsolete and should no longer be needed. |
| 1366 |
|
| 1367 |
* Fixed a bug in the tilde expansion of "CHROOT=dir" and "CWD=dir" |
| 1368 |
sudoers command options. A path "~/foo" was expanded to |
| 1369 |
"/home/userfoo" instead of "/home/user/foo". This also affects |
| 1370 |
the runchroot and runcwd Defaults settings. |
| 1371 |
|
| 1372 |
* Fixed a bug on systems without a native getdelim(3) function |
| 1373 |
where very long lines could cause parsing of the sudoers file |
| 1374 |
to end prematurely. Bug #960. |
| 1375 |
|
| 1376 |
* Fixed a potential integer overflow when converting the |
| 1377 |
timestamp_timeout and passwd_timeout sudoers settings to a |
| 1378 |
timespec struct. |
| 1379 |
|
| 1380 |
* The default for the "group_source" setting in sudo.conf is now |
| 1381 |
"dynamic" on macOS. Recent versions of macOS do not reliably |
| 1382 |
return all of a user's non-local groups via getgroups(2), even |
| 1383 |
when _DARWIN_UNLIMITED_GETGROUPS is defined. Bug #946. |
| 1384 |
|
| 1385 |
* Fixed a potential use-after-free in the PAM conversation function. |
| 1386 |
Bug #967. |
| 1387 |
|
| 1388 |
* Fixed potential redefinition of sys/stat.h macros in sudo_compat.h. |
| 1389 |
Bug #968. |
| 1390 |
|
| 1391 |
What's new in Sudo 1.9.5p2 |
| 1392 |
|
| 1393 |
* Fixed sudo's setprogname(3) emulation on systems that don't |
| 1394 |
provide it. |
| 1395 |
|
| 1396 |
* Fixed a problem with the sudoers log server client where a partial |
| 1397 |
write to the server could result the sudo process consuming large |
| 1398 |
amounts of CPU time due to a cycle in the buffer queue. Bug #954. |
| 1399 |
|
| 1400 |
* Added a missing dependency on libsudo_util in libsudo_eventlog. |
| 1401 |
Fixes a link error when building sudo statically. |
| 1402 |
|
| 1403 |
* The user's KRB5CCNAME environment variable is now preserved when |
| 1404 |
performing PAM authentication. This fixes GSSAPI authentication |
| 1405 |
when the user has a non-default ccache. |
| 1406 |
|
| 1407 |
* When invoked as sudoedit, the same set of command line options |
| 1408 |
are now accepted as for "sudo -e". The -H and -P options are |
| 1409 |
now rejected for sudoedit and "sudo -e" which matches the sudo |
| 1410 |
1.7 behavior. This is part of the fix for CVE-2021-3156. |
| 1411 |
|
| 1412 |
* Fixed a potential buffer overflow when unescaping backslashes |
| 1413 |
in the command's arguments. Normally, sudo escapes special |
| 1414 |
characters when running a command via a shell (sudo -s or sudo |
| 1415 |
-i). However, it was also possible to run sudoedit with the -s |
| 1416 |
or -i flags in which case no escaping had actually been done, |
| 1417 |
making a buffer overflow possible. This fixes CVE-2021-3156. |
| 1418 |
|
| 1419 |
What's new in Sudo 1.9.5p1 |
| 1420 |
|
| 1421 |
* Fixed a regression introduced in sudo 1.9.5 where the editor run |
| 1422 |
by sudoedit was set-user-ID root unless SELinux RBAC was in use. |
| 1423 |
The editor is now run with the user's real and effective user-IDs. |
| 1424 |
|
| 1425 |
What's new in Sudo 1.9.5 |
| 1426 |
|
| 1427 |
* Fixed a crash introduced in 1.9.4 when running "sudo -i" as an |
| 1428 |
unknown user. This is related to but distinct from Bug #948. |
| 1429 |
|
| 1430 |
* If the "lecture_file" setting is enabled in sudoers, it must now |
| 1431 |
refer to a regular file or a symbolic link to a regular file. |
| 1432 |
|
| 1433 |
* Fixed a potential use-after-free bug in sudo_logsrvd when the |
| 1434 |
server shuts down if there are existing connections from clients |
| 1435 |
that are only logging events and not session I/O data. |
| 1436 |
|
| 1437 |
* Fixed a buffer size mismatch when serializing the list of IP |
| 1438 |
addresses for configured network interfaces. This bug is not |
| 1439 |
actually exploitable since the allocated buffer is large enough |
| 1440 |
to hold the list of addresses. |
| 1441 |
|
| 1442 |
* If sudo is executed with a name other than "sudo" or "sudoedit", |
| 1443 |
it will now fall back to "sudo" as the program name. This affects |
| 1444 |
warning, help and usage messages as well as the matching of Debug |
| 1445 |
lines in the /etc/sudo.conf file. Previously, it was possible |
| 1446 |
for the invoking user to manipulate the program name by setting |
| 1447 |
argv[0] to an arbitrary value when executing sudo. |
| 1448 |
|
| 1449 |
* Sudo now checks for failure when setting the close-on-exec flag |
| 1450 |
on open file descriptors. This should never fail but, if it |
| 1451 |
were to, there is the possibility of a file descriptor leak to |
| 1452 |
a child process (such as the command sudo runs). |
| 1453 |
|
| 1454 |
* Fixed CVE-2021-23239, a potential information leak in sudoedit |
| 1455 |
that could be used to test for the existence of directories not |
| 1456 |
normally accessible to the user in certain circumstances. When |
| 1457 |
creating a new file, sudoedit checks to make sure the parent |
| 1458 |
directory of the new file exists before running the editor. |
| 1459 |
However, a race condition exists if the invoking user can replace |
| 1460 |
(or create) the parent directory. If a symbolic link is created |
| 1461 |
in place of the parent directory, sudoedit will run the editor |
| 1462 |
as long as the target of the link exists. If the target of the |
| 1463 |
link does not exist, an error message will be displayed. The |
| 1464 |
race condition can be used to test for the existence of an |
| 1465 |
arbitrary directory. However, it _cannot_ be used to write to |
| 1466 |
an arbitrary location. |
| 1467 |
|
| 1468 |
* Fixed CVE-2021-23240, a flaw in the temporary file handling of |
| 1469 |
sudoedit's SELinux RBAC support. On systems where SELinux is |
| 1470 |
enabled, a user with sudoedit permissions may be able to set the |
| 1471 |
owner of an arbitrary file to the user-ID of the target user. |
| 1472 |
On Linux kernels that support "protected symlinks", setting |
| 1473 |
/proc/sys/fs/protected_symlinks to 1 will prevent the bug from |
| 1474 |
being exploited. For more information see |
| 1475 |
https://www.sudo.ws/alerts/sudoedit_selinux.html. |
| 1476 |
|
| 1477 |
* Added writability checks for sudoedit when SELinux RBAC is in use. |
| 1478 |
This makes sudoedit behavior consistent regardless of whether |
| 1479 |
or not SELinux RBAC is in use. Previously, the "sudoedit_checkdir" |
| 1480 |
setting had no effect for RBAC entries. |
| 1481 |
|
| 1482 |
* A new sudoers option "selinux" can be used to disable sudo's |
| 1483 |
SELinux RBAC support. |
| 1484 |
|
| 1485 |
* Quieted warnings from PVS Studio, clang analyzer, and cppcheck. |
| 1486 |
Added suppression annotations for PVS Studio false positives. |
| 1487 |
|
| 1488 |
What's new in Sudo 1.9.4p2 |
| 1489 |
|
| 1490 |
* Fixed a bug introduced in sudo 1.9.4p1 which could lead to a crash |
| 1491 |
if the sudoers file contains a runas user-specific Defaults entry. |
| 1492 |
Bug #951. |
| 1493 |
|
| 1494 |
What's new in Sudo 1.9.4p1 |
| 1495 |
|
| 1496 |
* Sudo on macOS now supports users with more than 16 groups without |
| 1497 |
needing to set "group_source" to "dynamic" in /etc/sudo.conf. |
| 1498 |
Previously, only the first 15 were used when matching group-based |
| 1499 |
rules in sudoers. Bug #946. |
| 1500 |
|
| 1501 |
* Fixed a regression introduced in version 1.9.4 where sudo would |
| 1502 |
not build when configured using the --without-sendmail option. |
| 1503 |
Bug #947. |
| 1504 |
|
| 1505 |
* Fixed a problem where if I/O logging was disabled and sudo was |
| 1506 |
unable to connect to sudo_logsrvd, the command would still be |
| 1507 |
allowed to run even when the "ignore_logfile_errors" sudoers |
| 1508 |
option was enabled. |
| 1509 |
|
| 1510 |
* Fixed a crash introduced in version 1.9.4 when attempting to run |
| 1511 |
a command as a non-existent user. Bug #948. |
| 1512 |
|
| 1513 |
* The installed sudo.conf file now has the default sudoers Plugin |
| 1514 |
lines commented out. This fixes a potential conflict when there |
| 1515 |
is both a system-installed version of sudo and a user-installed |
| 1516 |
version. GitHub issue #75. |
| 1517 |
|
| 1518 |
* Fixed a regression introduced in sudo 1.9.4 where sudo would run |
| 1519 |
the command as a child process even when a pseudo-terminal was |
| 1520 |
not in use and the "pam_session" and "pam_setcred" options were |
| 1521 |
disabled. GitHub issue #76. |
| 1522 |
|
| 1523 |
* Fixed a regression introduced in sudo 1.8.9 where the "closefrom" |
| 1524 |
sudoers option could not be set to a value of 3. Bug #950. |
| 1525 |
|
| 1526 |
What's new in Sudo 1.9.4 |
| 1527 |
|
| 1528 |
* The sudoers parser will now detect when an upper-case reserved |
| 1529 |
word is used when declaring an alias. Now instead of "syntax |
| 1530 |
error, unexpected CHROOT, expecting ALIAS" the message will be |
| 1531 |
"syntax error, reserved word CHROOT used as an alias name". |
| 1532 |
Bug #941. |
| 1533 |
|
| 1534 |
* Better handling of sudoers files without a final newline. |
| 1535 |
The parser now adds a newline at end-of-file automatically which |
| 1536 |
removes the need for special cases in the parser. |
| 1537 |
|
| 1538 |
* Fixed a regression introduced in sudo 1.9.1 in the sssd back-end |
| 1539 |
where an uninitialized pointer could be freed on an error path. |
| 1540 |
GitHub issue #67. |
| 1541 |
|
| 1542 |
* The core logging code is now shared between sudo_logsrvd and |
| 1543 |
the sudoers plugin. |
| 1544 |
|
| 1545 |
* JSON log entries sent to syslog now use "minimal" JSON which |
| 1546 |
skips all non-essential white space. |
| 1547 |
|
| 1548 |
* The sudoers plugin can now produce JSON-formatted logs. The |
| 1549 |
"log_format" sudoers option can be used to select sudo or json |
| 1550 |
format logs. The default is sudo format logs. |
| 1551 |
|
| 1552 |
* The sudoers plugin and visudo now display the column number in |
| 1553 |
syntax error messages in addition to the line number. Bug #841. |
| 1554 |
|
| 1555 |
* If I/O logging is not enabled but "log_servers" is set, the |
| 1556 |
sudoers plugin will now log accept events to sudo_logsrvd. |
| 1557 |
Previously, the accept event was only sent when I/O logging was |
| 1558 |
enabled. The sudoers plugin now sends reject and alert events too. |
| 1559 |
|
| 1560 |
* The sudo logsrv protocol has been extended to allow an AlertMessage |
| 1561 |
to contain an optional array of InfoMessage, as AcceptMessage |
| 1562 |
and RejectMessage already do. |
| 1563 |
|
| 1564 |
* Fixed a bug in sudo_logsrvd where receipt of SIGHUP would result |
| 1565 |
in duplicate entries in the debug log when debugging was enabled. |
| 1566 |
|
| 1567 |
* The visudo utility now supports EDITOR environment variables |
| 1568 |
that use single or double quotes in the command arguments. |
| 1569 |
Bug #942. |
| 1570 |
|
| 1571 |
* The PAM session modules now run when sudo is set-user-ID root, |
| 1572 |
which allows a module to determine the original user-ID. |
| 1573 |
Bug #944. |
| 1574 |
|
| 1575 |
* Fixed a regression introduced in sudo 1.8.24 in the LDAP back-end |
| 1576 |
where sudoNotBefore and sudoNotAfter were applied even when the |
| 1577 |
SUDOERS_TIMED setting was not present in ldap.conf. Bug #945. |
| 1578 |
|
| 1579 |
* Sudo packages for macOS 11 now contain universal binaries that |
| 1580 |
support both Intel and Apple Silicon CPUs. |
| 1581 |
|
| 1582 |
* For sudo_logsrvd, an empty value for the "pid_file" setting in |
| 1583 |
sudo_logsrvd.conf will now disable the process ID file. |
| 1584 |
|
| 1585 |
What's new in Sudo 1.9.3p1 |
| 1586 |
|
| 1587 |
* Fixed a regression introduced in sudo 1.9.3 where the configure |
| 1588 |
script would not detect the crypt(3) function if it was present |
| 1589 |
in the C library, not an additional library. |
| 1590 |
|
| 1591 |
* Fixed a regression introduced in sudo 1.8.23 with shadow passwd |
| 1592 |
file authentication on OpenBSD. BSD authentication was not |
| 1593 |
affected. |
| 1594 |
|
| 1595 |
* Sudo now logs when a user-specified command-line option is |
| 1596 |
rejected by a sudoers rule. Previously, these conditions were |
| 1597 |
written to the audit log, but the default sudo log file. Affected |
| 1598 |
command line arguments include -C (--close-from), -D (--chdir), |
| 1599 |
-R (--chroot), -g (--group) and -u (--user). |
| 1600 |
|
| 1601 |
What's new in Sudo 1.9.3 |
| 1602 |
|
| 1603 |
* sudoedit will now prompt the user before overwriting an existing |
| 1604 |
file with one that is zero-length after editing. Bug #922. |
| 1605 |
|
| 1606 |
* Fixed building the Python plugin on systems with a compiler that |
| 1607 |
doesn't support symbol hiding. |
| 1608 |
|
| 1609 |
* Sudo now uses a linker script to hide symbols even when the |
| 1610 |
compiler supports symbol hiding. This should make it easier to |
| 1611 |
detect omissions in the symbol exports file, regardless of the |
| 1612 |
platform. |
| 1613 |
|
| 1614 |
* Fixed the libssl dependency in Debian packages for older releases |
| 1615 |
that use libssl1.0.0. |
| 1616 |
|
| 1617 |
* Sudo and visudo now provide more detailed messages when a syntax |
| 1618 |
error is detected in sudoers. The offending line and token are |
| 1619 |
now displayed. If the parser was generated by GNU bison, |
| 1620 |
additional information about what token was expected is also |
| 1621 |
displayed. Bug #841. |
| 1622 |
|
| 1623 |
* Sudoers rules must now end in either a newline or the end-of-file. |
| 1624 |
Previously, it was possible to have multiple rules on a single |
| 1625 |
line, separated by white space. The use of an end-of-line |
| 1626 |
terminator makes it possible to display accurate error messages. |
| 1627 |
|
| 1628 |
* Sudo no longer refuses to run if a syntax error in the sudoers |
| 1629 |
file is encountered. The entry with the syntax error will be |
| 1630 |
discarded and sudo will continue to parse the file. This makes |
| 1631 |
recovery from a syntax error less painful on systems where sudo |
| 1632 |
is the primary method of superuser access. The historic behavior |
| 1633 |
can be restored by add "error_recovery=false" to the sudoers |
| 1634 |
plugin's optional arguments in sudo.conf. Bug #618. |
| 1635 |
|
| 1636 |
* Fixed the sample_approval plugin's symbol exports file for systems |
| 1637 |
where the compiler doesn't support symbol hiding. |
| 1638 |
|
| 1639 |
* Fixed a regression introduced in sudo 1.9.1 where arguments to |
| 1640 |
the "sudoers_policy" plugin in sudo.conf were not being applied. |
| 1641 |
The sudoers file is now parsed by the "sudoers_audit" plugin, |
| 1642 |
which is loaded implicitly when "sudoers_policy" is listed in |
| 1643 |
sudo.conf. Starting with sudo 1.9.3, if there are plugin arguments |
| 1644 |
for "sudoers_policy" but "sudoers_audit" is not listed, those |
| 1645 |
arguments will be applied to "sudoers_audit" instead. |
| 1646 |
|
| 1647 |
* The user's resource limits are now passed to sudo plugins in |
| 1648 |
the user_info[] list. A plugin cannot determine the limits |
| 1649 |
itself because sudo changes the limits while it runs to prevent |
| 1650 |
resource starvation. |
| 1651 |
|
| 1652 |
* It is now possible to set the working directory or change the |
| 1653 |
root directory on a per-command basis using the CWD and CHROOT |
| 1654 |
options. CWD and CHROOT are now reserved words in sudoers--they |
| 1655 |
can no longer be used as alias names. There are also new Defaults |
| 1656 |
settings, runchroot and runcwd, that can be used to set the |
| 1657 |
working directory or root directory on a more global basis. |
| 1658 |
|
| 1659 |
* New -D (--chdir) and -R (--chroot) command line options can be |
| 1660 |
used to set the working directory or root directory if the sudoers |
| 1661 |
file allows it. This functionality is not enabled by default |
| 1662 |
and must be explicitly enabled in the sudoers file. |
| 1663 |
|
| 1664 |
* Fixed a regression introduced in sudo 1.9.1 where the sudoers_audit |
| 1665 |
symbol could not be resolved when sudo is configured with the |
| 1666 |
--enable-static-sudoers option. Bug #936 and GitHub issue #61. |
| 1667 |
|
| 1668 |
What's new in Sudo 1.9.2 |
| 1669 |
|
| 1670 |
* Fixed package builds on RedHat Enterprise Linux 8. |
| 1671 |
|
| 1672 |
* The configure script now uses pkg-config to find the openssl |
| 1673 |
cflags and libs where possible. |
| 1674 |
|
| 1675 |
* The contents of the log.json I/O log file is now documented in |
| 1676 |
the sudoers manual. |
| 1677 |
|
| 1678 |
* The sudoers plugin now properly exports the sudoers_audit symbol |
| 1679 |
on systems where the compiler lacks symbol visibility controls. |
| 1680 |
This caused a regression in 1.9.1 where a successful sudo command |
| 1681 |
was not logged due to the missing audit plugin. Bug #931. |
| 1682 |
|
| 1683 |
* Fixed a regression introduced in 1.9.1 that can result in crash |
| 1684 |
when there is a syntax error in the sudoers file. Bug #934. |
| 1685 |
|
| 1686 |
What's new in Sudo 1.9.1 |
| 1687 |
|
| 1688 |
* Fixed an AIX-specific problem when I/O logging was enabled. |
| 1689 |
The terminal device was not being properly set to raw mode. |
| 1690 |
Bug #927. |
| 1691 |
|
| 1692 |
* Corrected handling of sudo_logsrvd connections without associated |
| 1693 |
I/O log data. This fixes support for RejectMessage as well as |
| 1694 |
AcceptMessage when the expect_iobufs flag is not set. |
| 1695 |
|
| 1696 |
* Added an "iolog_path" entry to the JSON-format event log produced |
| 1697 |
by sudo_logsrvd. Previously, it was only possible to determine |
| 1698 |
the I/O log file an event belonged to using sudo-format logs. |
| 1699 |
|
| 1700 |
* Fixed the bundle IDs for sudo-logsrvd and sudo-python macOS packages. |
| 1701 |
|
| 1702 |
* I/O log files produced by the sudoers plugin now clear the write |
| 1703 |
bits on the I/O log timing file when the log is complete. This |
| 1704 |
is consistent with how sudo_logsrvd indicates that a log is |
| 1705 |
complete. |
| 1706 |
|
| 1707 |
* The sudoreplay utility has a new "-F" (follow) command line |
| 1708 |
option to allow replaying a session that is still in progress, |
| 1709 |
similar to "tail -f". |
| 1710 |
|
| 1711 |
* The @include and @includedir directives can be used in sudoers |
| 1712 |
instead of #include and #includedir. In addition, include paths |
| 1713 |
may now have embedded white space by either using a double-quoted |
| 1714 |
string or escaping the space characters with a backslash. |
| 1715 |
|
| 1716 |
* Fixed some Solaris 11.4 compilation errors. |
| 1717 |
|
| 1718 |
* When running a command in a pty, sudo will no longer try to |
| 1719 |
suspend itself if the user's tty has been revoked (for instance |
| 1720 |
when the parent ssh daemon is killed). This fixes a bug where |
| 1721 |
sudo would continuously suspend the command (which would succeed), |
| 1722 |
then suspend itself (which would fail due to the missing tty) |
| 1723 |
and then resume the command. |
| 1724 |
|
| 1725 |
* If sudo's event loop fails due to the tty being revoked, remove |
| 1726 |
the user's tty events and restart the event loop (once). This |
| 1727 |
fixes a problem when running "sudo reboot" in a pty on some |
| 1728 |
systems. When the event loop exited unexpectedly, sudo would |
| 1729 |
kill the command running in the pty, which in the case of "reboot", |
| 1730 |
could lead to the system being in a half-rebooted state. |
| 1731 |
|
| 1732 |
* Fixed a regression introduced in sudo 1.8.23 in the LDAP and |
| 1733 |
SSSD back-ends where a missing sudoHost attribute was treated |
| 1734 |
as an "ALL" wildcard value. A sudoRole with no sudoHost attribute |
| 1735 |
is now ignored as it was prior to version 1.8.23. |
| 1736 |
|
| 1737 |
* The audit plugin API has been changed slightly. The sudo front-end |
| 1738 |
now audits an accept event itself after all approval plugins are |
| 1739 |
run and the I/O logging plugins (if any) are opened. This makes |
| 1740 |
it possible for an audit plugin to only log a single overall |
| 1741 |
accept event if desired. |
| 1742 |
|
| 1743 |
* The sudoers plugin can now be loaded as an audit plugin. Logging |
| 1744 |
of successful commands is now performed in the audit plugin's |
| 1745 |
accept function. As a result, commands are now only logged if |
| 1746 |
allowed by sudoers and all approval plugins. Commands rejected |
| 1747 |
by an approval plugin are now also logged by the sudoers plugin. |
| 1748 |
|
| 1749 |
* Romanian translation for sudo and sudoers from translationproject.org. |
| 1750 |
|
| 1751 |
* Fixed a regression introduced in sudo 1.9.0 where sudoedit did |
| 1752 |
not remove its temporary files after installing them. Bug #929. |
| 1753 |
|
| 1754 |
* Fixed a regression introduced in sudo 1.9.0 where the iolog_file |
| 1755 |
setting in sudoers and sudo_logsrvd.conf caused an error if the |
| 1756 |
file name ended in six or more X's. |
| 1757 |
|
| 1758 |
What's new in Sudo 1.9.0 |
| 1759 |
|
| 1760 |
* Fixed a test failure in the strsig_test regress test on FreeBSD. |
| 1761 |
|
| 1762 |
* The maximum length of a conversation reply has been increased |
| 1763 |
from 255 to 1023 characters. This allows for longer user passwords. |
| 1764 |
Bug #860. |
| 1765 |
|
| 1766 |
* Sudo now includes a logging daemon, sudo_logsrvd, which can be |
| 1767 |
used to implement centralized logging of I/O logs. TLS connections |
| 1768 |
are supported when sudo is configured with the --enable-openssl |
| 1769 |
option. For more information, see the sudo_logsrvd, logsrvd.conf |
| 1770 |
and sudo_logsrv.proto manuals as well as the log_servers setting |
| 1771 |
in the sudoers manual. |
| 1772 |
|
| 1773 |
The --disable-log-server and --disable-log-client configure |
| 1774 |
options can be used to disable building the I/O log server and/or |
| 1775 |
remote I/O log support in the sudoers plugin. |
| 1776 |
|
| 1777 |
* The new sudo_sendlog utility can be used to test sudo_logsrvd |
| 1778 |
or send existing sudo I/O logs to a centralized server. |
| 1779 |
|
| 1780 |
* It is now possible to write sudo plugins in Python 3 when sudo |
| 1781 |
is configured with the --enable-python option. See the |
| 1782 |
sudo_plugin_python manual for details. |
| 1783 |
|
| 1784 |
Sudo 1.9.0 comes with several Python example plugins that get |
| 1785 |
installed sudo's examples directory. |
| 1786 |
|
| 1787 |
The sudo blog article "What's new in sudo 1.9: Python" |
| 1788 |
(https://blog.sudo.ws/posts/2020/01/whats-new-in-sudo-1.9-python/) |
| 1789 |
includes a simple tutorial on writing python plugins. |
| 1790 |
|
| 1791 |
* Sudo now supports an "audit" plugin type. An audit plugin |
| 1792 |
receives accept, reject, exit and error messages and can be used |
| 1793 |
to implement custom logging that is independent of the underlying |
| 1794 |
security policy. Multiple audit plugins may be specified in |
| 1795 |
the sudo.conf file. A sample audit plugin is included that |
| 1796 |
writes logs in JSON format. |
| 1797 |
|
| 1798 |
* Sudo now supports an "approval" plugin type. An approval plugin |
| 1799 |
is run only after the main security policy (such as sudoers) accepts |
| 1800 |
a command to be run. The approval policy may perform additional |
| 1801 |
checks, potentially interacting with the user. Multiple approval |
| 1802 |
plugins may be specified in the sudo.conf file. Only if all |
| 1803 |
approval plugins succeed will the command be allowed. |
| 1804 |
|
| 1805 |
* Sudo's -S command line option now causes the sudo conversation |
| 1806 |
function to write to the standard output or standard error instead |
| 1807 |
of the terminal device. |
| 1808 |
|
| 1809 |
* Fixed a bug where if a #include or #includedir directive was the |
| 1810 |
last line in sudoers and there was no final newline character, it |
| 1811 |
was silently ignored. Bug #917. |
| 1812 |
|
| 1813 |
* It is now possible to use "Cmd_Alias" instead of "Cmnd_Alias" for |
| 1814 |
people who find the former more natural. |
| 1815 |
|
| 1816 |
* The new "pam_ruser" and "pam_rhost" sudoers settings can be used |
| 1817 |
to enable or disable setting the PAM remote user and/or host |
| 1818 |
values during PAM session setup. |
| 1819 |
|
| 1820 |
* More than one SHA-2 digest may now be specified for a single |
| 1821 |
command. Multiple digests must be separated by a comma. |
| 1822 |
|
| 1823 |
* It is now possible to specify a SHA-2 digest in conjunction with |
| 1824 |
the "ALL" reserved word in a command specification. This allows |
| 1825 |
one to give permission to run any command that matches the |
| 1826 |
specified digest, regardless of its path. |
| 1827 |
|
| 1828 |
* Sudo and sudo_logsrvd now create an extended I/O log info file |
| 1829 |
in JSON format that contains additional information about the |
| 1830 |
command that was run, such as the host name. The sudoreplay |
| 1831 |
utility uses this file in preference to the legacy log file. |
| 1832 |
|
| 1833 |
* The sudoreplay utility can now match on a host name in list mode. |
| 1834 |
The list output also now includes the host name if one is present |
| 1835 |
in the log file. |
| 1836 |
|
| 1837 |
* For "sudo -i", if the target user's home directory does not |
| 1838 |
exist, sudo will now warn about the problem but run the command |
| 1839 |
in the current working directory. Previously, this was a fatal |
| 1840 |
error. Debian bug #598519. |
| 1841 |
|
| 1842 |
* The command line arguments in the SUDO_COMMAND environment |
| 1843 |
variable are now truncated at 4096 characters. This avoids an |
| 1844 |
"Argument list too long" error when executing a command with a |
| 1845 |
large number of arguments. Bug #923 (Debian bug #596631). |
| 1846 |
|
| 1847 |
* Sudo now properly ends the PAM transaction when the user |
| 1848 |
authenticates successfully but sudoers denies the command. |
| 1849 |
Debian bug #669687. |
| 1850 |
|
| 1851 |
* The sudoers grammar in the manual now indicates that "sudoedit" |
| 1852 |
requires one or more arguments. Debian bug #571621. |
| 1853 |
|
| 1854 |
* When copying the edited files to the original path, sudoedit now |
| 1855 |
allocates any additional space needed before writing. Previously, |
| 1856 |
it could truncate the destination file if the file system was |
| 1857 |
full. Bug #922. |
| 1858 |
|
| 1859 |
* Fixed an issue where PAM session modules could be called with |
| 1860 |
the wrong user name when multiple users in the passwd database |
| 1861 |
share the same user-ID. Debian bug #734752. |
| 1862 |
|
| 1863 |
* Sudo command line options that take a value may only be specified |
| 1864 |
once. This is to help guard against problems caused by poorly |
| 1865 |
written scripts that invoke sudo with user-controlled input. |
| 1866 |
Bug #924. |
| 1867 |
|
| 1868 |
What's new in Sudo 1.8.31p1 |
| 1869 |
|
| 1870 |
* Sudo once again ignores a failure to restore the RLIMIT_CORE |
| 1871 |
resource limit, as it did prior to version 1.8.29. Linux |
| 1872 |
containers don't allow RLIMIT_CORE to be set back to RLIM_INFINITY |
| 1873 |
if we set the limit to zero, even for root, which resulted in a |
| 1874 |
warning from sudo. |
| 1875 |
|
| 1876 |
What's new in Sudo 1.8.31 |
| 1877 |
|
| 1878 |
* Fixed CVE-2019-18634, a buffer overflow when the "pwfeedback" |
| 1879 |
sudoers option is enabled on systems with uni-directional pipes. |
| 1880 |
|
| 1881 |
* The "sudoedit_checkdir" option now treats a user-owned directory |
| 1882 |
as writable, even if it does not have the write bit set at the |
| 1883 |
time of check. Symbolic links will no longer be followed by |
| 1884 |
sudoedit in any user-owned directory. Bug #912 |
| 1885 |
|
| 1886 |
* Fixed sudoedit on macOS 10.15 and above where the root file system |
| 1887 |
is mounted read-only. Bug #913. |
| 1888 |
|
| 1889 |
* Fixed a crash introduced in sudo 1.8.30 when suspending sudo |
| 1890 |
at the password prompt. Bug #914. |
| 1891 |
|
| 1892 |
* Fixed compilation on systems where the mmap MAP_ANON flag |
| 1893 |
is not available. Bug #915. |
| 1894 |
|
| 1895 |
What's new in Sudo 1.8.30 |
| 1896 |
|
| 1897 |
* Fixed a warning on macOS introduced in sudo 1.8.29 when sudo |
| 1898 |
attempts to set the open file limit to unlimited. Bug #904. |
| 1899 |
|
| 1900 |
* Sudo now closes file descriptors before changing uids. This |
| 1901 |
prevents a non-root process from interfering with sudo's ability |
| 1902 |
to close file descriptors on systems that support the prlimit(2) |
| 1903 |
system call. |
| 1904 |
|
| 1905 |
* Sudo now treats an attempt to run "sudo sudoedit" as simply |
| 1906 |
"sudoedit". If the sudoers file contains a fully-qualified path |
| 1907 |
to sudoedit, sudo will now treat it simply as "sudoedit" (with |
| 1908 |
no path). Visudo will now treat a fully-qualified path |
| 1909 |
to sudoedit as an error. Bug #871. |
| 1910 |
|
| 1911 |
* Fixed a bug introduced in sudo 1.8.28 where sudo would warn about |
| 1912 |
a missing /etc/environment file on AIX and Linux when PAM is not |
| 1913 |
enabled. Bug #907 |
| 1914 |
|
| 1915 |
* Fixed a bug on Linux introduced in sudo 1.8.29 that prevented |
| 1916 |
the askpass program from running due to an unlimited stack size |
| 1917 |
resource limit. Bug #908. |
| 1918 |
|
| 1919 |
* If a group provider plugin has optional arguments, the argument list |
| 1920 |
passed to the plugin is now NULL terminated as per the documentation. |
| 1921 |
|
| 1922 |
* The user's time stamp file is now only updated if both authentication |
| 1923 |
and approval phases succeed. This is consistent with the behavior |
| 1924 |
of sudo prior to version 1.8.23. Bug #910 |
| 1925 |
|
| 1926 |
* The new allow_unknown_runas_id sudoers setting can be used to |
| 1927 |
enable or disable the use of unknown user or group IDs. Previously, |
| 1928 |
sudo would always allow unknown user or group IDs if the sudoers |
| 1929 |
entry permitted it, including via the "ALL" alias. As of sudo |
| 1930 |
1.8.30, the admin must explicitly enable support for unknown IDs. |
| 1931 |
|
| 1932 |
* The new runas_check_shell sudoers setting can be used to require |
| 1933 |
that the runas user have a shell listed in the /etc/shells file. |
| 1934 |
On many systems, users such as "bin", do not have a valid shell |
| 1935 |
and this flag can be used to prevent commands from being run as |
| 1936 |
those users. |
| 1937 |
|
| 1938 |
* Fixed a problem restoring the SELinux tty context during reboot |
| 1939 |
if mctransd is killed before sudo finishes. GitHub issue #17. |
| 1940 |
|
| 1941 |
* Fixed an intermittent warning on NetBSD when sudo restores the |
| 1942 |
initial stack size limit. |
| 1943 |
|
| 1944 |
What's new in Sudo 1.8.29 |
| 1945 |
|
| 1946 |
* The cvtsudoers command will now reject non-LDIF input when converting |
| 1947 |
from LDIF format to sudoers or JSON formats. |
| 1948 |
|
| 1949 |
* The new log_allowed and log_denied sudoers settings make it possible |
| 1950 |
to disable logging and auditing of allowed and/or denied commands. |
| 1951 |
|
| 1952 |
* The umask is now handled differently on systems with PAM or login.conf. |
| 1953 |
If the umask is explicitly set in sudoers, that value is used regardless |
| 1954 |
of what PAM or login.conf may specify. However, if the umask is not |
| 1955 |
explicitly set in sudoers, PAM or login.conf may now override the default |
| 1956 |
sudoers umask. Bug #900. |
| 1957 |
|
| 1958 |
* For "make install", the sudoers file is no longer checked for syntax |
| 1959 |
errors when DESTDIR is set. The default sudoers file includes the |
| 1960 |
contents of /etc/sudoers.d which may not be readable as non-root. |
| 1961 |
Bug #902. |
| 1962 |
|
| 1963 |
* Sudo now sets most resource limits to their maximum value to avoid |
| 1964 |
problems caused by insufficient resources, such as an inability to |
| 1965 |
allocate memory or open files and pipes. |
| 1966 |
|
| 1967 |
* Fixed a regression introduced in sudo 1.8.28 where sudo would refuse |
| 1968 |
to run if the parent process was not associated with a session. |
| 1969 |
This was due to sudo passing a session ID of -1 to the plugin. |
| 1970 |
|
| 1971 |
What's new in Sudo 1.8.28p1 |
| 1972 |
|
| 1973 |
* The fix for Bug #869 caused "sudo -v" to prompt for a password |
| 1974 |
when "verifypw" is set to "all" (the default) and all of the |
| 1975 |
user's sudoers entries are marked with NOPASSWD. Bug #901. |
| 1976 |
|
| 1977 |
What's new in Sudo 1.8.28 |
| 1978 |
|
| 1979 |
* Sudo will now only set PAM_TTY to the empty string when no |
| 1980 |
terminal is present on Solaris and Linux. This workaround is |
| 1981 |
only needed on those systems which may have PAM modules that |
| 1982 |
misbehave when PAM_TTY is not set. |
| 1983 |
|
| 1984 |
* The mailerflags sudoers option now has a default value even if |
| 1985 |
sendmail support was disabled at configure time. Fixes a crash |
| 1986 |
when the mailerpath sudoers option is set but mailerflags is not. |
| 1987 |
Bug #878. |
| 1988 |
|
| 1989 |
* Sudo will now filter out last login messages on HP-UX unless it |
| 1990 |
a shell is being run via "sudo -s" or "sudo -i". Otherwise, |
| 1991 |
when trusted mode is enabled, these messages will be displayed |
| 1992 |
for each command. |
| 1993 |
|
| 1994 |
* On AIX, when the user's password has expired and PAM is not in use, |
| 1995 |
sudo will now allow the user to change their password. |
| 1996 |
Bug #883. |
| 1997 |
|
| 1998 |
* Sudo has a new -B command line option that will ring the terminal |
| 1999 |
bell when prompting for a password. |
| 2000 |
|
| 2001 |
* Sudo no longer refuses to prompt for a password when it cannot |
| 2002 |
determine the user's terminal as long as it can open /dev/tty. |
| 2003 |
This allows sudo to function on systems where /proc is unavailable, |
| 2004 |
such as when running in a chroot environment. |
| 2005 |
|
| 2006 |
* The "env_editor" sudoers flag is now on by default. This makes |
| 2007 |
source builds more consistent with the packages generated by |
| 2008 |
sudo's mkpkg script. |
| 2009 |
|
| 2010 |
* Sudo no longer ships with pre-formatted copies of the manual pages. |
| 2011 |
These were included for systems like IRIX that don't ship with an |
| 2012 |
nroff utility. There are now multiple Open Source nroff replacements |
| 2013 |
so this should no longer be an issue. |
| 2014 |
|
| 2015 |
* Fixed a bad interaction with configure's --prefix and |
| 2016 |
--disable-shared options. Bug #886. |
| 2017 |
|
| 2018 |
* More verbose error message when a password is required and no terminal |
| 2019 |
is present. Bug #828. |
| 2020 |
|
| 2021 |
* Command tags, such as NOPASSWD, are honored when a user tries to run a |
| 2022 |
command that is allowed by sudoers but which does not actually |
| 2023 |
exist on the file system. Bug #888. |
| 2024 |
|
| 2025 |
* Asturian translation for sudoers from translationproject.org. |
| 2026 |
|
| 2027 |
* I/O log timing files now store signal suspend and resume information |
| 2028 |
in the form of a signal name instead of a number. |
| 2029 |
|
| 2030 |
* Fixed a bug introduced in 1.8.24 that prevented sudo from honoring |
| 2031 |
the value of "ipa_hostname" from sssd.conf, if specified, when |
| 2032 |
matching the host name. |
| 2033 |
|
| 2034 |
* Fixed a bug introduced in 1.8.21 that prevented the core dump |
| 2035 |
resource limit set in the pam_limits module from taking effect. |
| 2036 |
Bug #894. |
| 2037 |
|
| 2038 |
* Fixed parsing of double-quoted Defaults group and netgroup bindings. |
| 2039 |
|
| 2040 |
* The user ID is now used when matching sudoUser attributes in LDAP. |
| 2041 |
Previously, the user name, group name and group IDs were used |
| 2042 |
when matching but not the user ID. |
| 2043 |
|
| 2044 |
* Sudo now writes PAM messages to the user's terminal, if available, |
| 2045 |
instead of the standard output or standard error. This prevents |
| 2046 |
PAM output from being intermixed with that of the command when |
| 2047 |
output is sent to a file or pipe. Bug #895. |
| 2048 |
|
| 2049 |
* Sudoedit now honors the umask and umask_override settings in sudoers. |
| 2050 |
Previously, the user's umask was used as-is. |
| 2051 |
|
| 2052 |
* Fixed a bug where the terminal's file context was not restored |
| 2053 |
when using SELinux RBAC. Bug #898. |
| 2054 |
|
| 2055 |
* Fixed CVE-2019-14287, a bug where a sudo user may be able to |
| 2056 |
run a command as root when the Runas specification explicitly |
| 2057 |
disallows root access as long as the ALL keyword is listed first. |
| 2058 |
|
| 2059 |
What's new in Sudo 1.8.27 |
| 2060 |
|
| 2061 |
* On HP-UX, sudo will now update the utmps file when running a command |
| 2062 |
in a pseudo-tty. Previously, only the utmp and utmpx files were |
| 2063 |
updated. |
| 2064 |
|
| 2065 |
* Nanosecond precision file time stamps are now supported in HP-UX. |
| 2066 |
|
| 2067 |
* Fixes and clarifications to the sudo plugin documentation. |
| 2068 |
|
| 2069 |
* The sudo manuals no longer require extensive post-processing to |
| 2070 |
hide system-specific features. Conditionals in the roff source |
| 2071 |
are now used instead. This fixes corruption of the sudo manual |
| 2072 |
on systems without BSD login classes. Bug #861. |
| 2073 |
|
| 2074 |
* If an I/O logging plugin is configured but the plugin does not |
| 2075 |
actually log any I/O, sudo will no longer force the command to |
| 2076 |
be run in a pseudo-tty. |
| 2077 |
|
| 2078 |
* The fix for bug #843 in sudo 1.8.24 was incomplete. If the |
| 2079 |
user's password was expired or needed to be updated, but no sudo |
| 2080 |
password was required, the PAM handle was freed too early, |
| 2081 |
resulting in a failure when processing PAM session modules. |
| 2082 |
|
| 2083 |
* In visudo, it is now possible to specify the path to sudoers |
| 2084 |
without using the -f option. Bug #864. |
| 2085 |
|
| 2086 |
* Fixed a bug introduced in sudo 1.8.22 where the utmp (or utmpx) |
| 2087 |
file would not be updated when a command was run in a pseudo-tty. |
| 2088 |
Bug #865. |
| 2089 |
|
| 2090 |
* Sudo now sets the silent flag when opening the PAM session except |
| 2091 |
when running a shell via "sudo -s" or "sudo -i". This prevents |
| 2092 |
the pam_lastlog module from printing the last login information |
| 2093 |
for each sudo command. Bug #867. |
| 2094 |
|
| 2095 |
* Fixed the default AIX hard resource limit for the maximum number |
| 2096 |
of files a user may have open. If no hard limit for "nofiles" |
| 2097 |
is explicitly set in /etc/security/limits, the default should |
| 2098 |
be "unlimited". Previously, the default hard limit was 8196. |
| 2099 |
|
| 2100 |
What's new in Sudo 1.8.26 |
| 2101 |
|
| 2102 |
* Fixed a bug in cvtsudoers when converting to JSON format when |
| 2103 |
alias expansion is enabled. Bug #853. |
| 2104 |
|
| 2105 |
* Sudo no long sets the USERNAME environment variable when running |
| 2106 |
commands. This is a non-standard environment variable that was |
| 2107 |
set on some older Linux systems. |
| 2108 |
|
| 2109 |
* Sudo now treats the LOGNAME and USER environment variables (as |
| 2110 |
well as the LOGIN variable on AIX) as a single unit. If one is |
| 2111 |
preserved or removed from the environment using env_keep, env_check |
| 2112 |
or env_delete, so is the other. |
| 2113 |
|
| 2114 |
* Added support for OpenLDAP's TLS_REQCERT setting in ldap.conf. |
| 2115 |
|
| 2116 |
* Sudo now logs when the command was suspended and resumed in the |
| 2117 |
I/O logs. This information is used by sudoreplay to skip the |
| 2118 |
time suspended when replaying the session unless the new -S flag |
| 2119 |
is used. |
| 2120 |
|
| 2121 |
* Fixed documentation problems found by the igor utility. Bug #854. |
| 2122 |
|
| 2123 |
* Sudo now prints a warning message when there is an error or end |
| 2124 |
of file while reading the password instead of exiting silently. |
| 2125 |
|
| 2126 |
* Fixed a bug in the sudoers LDAP back-end parsing the command_timeout, |
| 2127 |
role, type, privs and limitprivs sudoOptions. This also affected |
| 2128 |
cvtsudoers conversion from LDIF to sudoers or JSON. |
| 2129 |
|
| 2130 |
* Fixed a bug that prevented timeout settings in sudoers from |
| 2131 |
functioning unless a timeout was also specified on the command |
| 2132 |
line. |
| 2133 |
|
| 2134 |
* Asturian translation for sudo from translationproject.org. |
| 2135 |
|
| 2136 |
* When generating LDIF output, cvtsudoers can now be configured |
| 2137 |
to pad the sudoOrder increment such that the start order is used |
| 2138 |
as a prefix. Bug #856. |
| 2139 |
|
| 2140 |
* Fixed a bug introduced in sudo 1.8.25 that prevented sudo from |
| 2141 |
properly setting the user's groups on AIX. Bug #857. |
| 2142 |
|
| 2143 |
* If the user specifies a group via sudo's -g option that matches |
| 2144 |
any of the target user's groups, it is now allowed even if no |
| 2145 |
groups are present in the Runas_Spec. Previously, it was only |
| 2146 |
allowed if it matched the target user's primary group. |
| 2147 |
|
| 2148 |
* The sudoers LDAP back-end now supports negated sudoRunAsUser and |
| 2149 |
sudoRunAsGroup entries. |
| 2150 |
|
| 2151 |
* Sudo now provides a proper error message when the "fqdn" sudoers |
| 2152 |
option is set and it is unable to resolve the local host name. |
| 2153 |
Bug #859. |
| 2154 |
|
| 2155 |
* Portuguese translation for sudo and sudoers from translationproject.org. |
| 2156 |
|
| 2157 |
* Sudo now includes sudoers LDAP schema for the on-line configuration |
| 2158 |
supported by OpenLDAP. |
| 2159 |
|
| 2160 |
What's new in Sudo 1.8.25p1 |
| 2161 |
|
| 2162 |
* Fixed a bug introduced in sudo 1.8.25 that caused a crash on |
| 2163 |
systems that have the poll() function but not the ppoll() function. |
| 2164 |
Bug #851. |
| 2165 |
|
| 2166 |
What's new in Sudo 1.8.25 |
| 2167 |
|
| 2168 |
* Fixed a bug introduced in sudo 1.8.20 that broke formatting of |
| 2169 |
I/O log timing file entries on systems without a C99-compatible |
| 2170 |
snprintf() function. Our replacement snprintf() doesn't support |
| 2171 |
floating point so we can't use the "%f" format directive. |
| 2172 |
|
| 2173 |
* I/O log timing file entries now use a monotonic timer and include |
| 2174 |
nanosecond precision. A monotonic timer that does not increment |
| 2175 |
while the system is sleeping is used where available. |
| 2176 |
|
| 2177 |
* Fixed a bug introduced in sudo 1.8.24 where sudoNotAfter in the LDAP |
| 2178 |
back-end was not being properly parsed. Bug #845. |
| 2179 |
|
| 2180 |
* When sudo runs a command in a pseudo-terminal, the follower |
| 2181 |
device is now closed in the main process immediately after |
| 2182 |
starting the monitor process. This removes the need for an |
| 2183 |
AIX-specific workaround that was added in sudo 1.8.24. |
| 2184 |
|
| 2185 |
* Added support for monotonic timers on HP-UX. |
| 2186 |
|
| 2187 |
* Fixed a bug displaying timeout values the "sudo -V" output. |
| 2188 |
The value displayed was 3600 times the actual value. Bug #846. |
| 2189 |
|
| 2190 |
* Fixed a build issue on AIX 7.1 BOS levels that include memset_s() |
| 2191 |
and define rsize_t in string.h. Bug #847. |
| 2192 |
|
| 2193 |
* The testsudoers utility now supports querying an LDIF-format |
| 2194 |
policy. |
| 2195 |
|
| 2196 |
* Sudo now sets the LOGIN environment variable to the same value as |
| 2197 |
LOGNAME on AIX systems. Bug #848. |
| 2198 |
|
| 2199 |
* Fixed a regression introduced in sudo 1.8.24 where the LDAP and |
| 2200 |
SSSD back-ends evaluated the rules in reverse sudoOrder. Bug #849. |
| 2201 |
|
| 2202 |
What's new in Sudo 1.8.24 |
| 2203 |
|
| 2204 |
* The LDAP and SSS back-ends now use the same rule evaluation code |
| 2205 |
as the sudoers file back-end. This builds on the work in sudo |
| 2206 |
1.8.23 where the formatting functions for "sudo -l" output were |
| 2207 |
shared. The handling of negated commands in SSS and LDAP is |
| 2208 |
unchanged. |
| 2209 |
|
| 2210 |
* Fixed a regression introduced in 1.8.23 where "sudo -i" could |
| 2211 |
not be used in conjunction with --preserve-env=VARIABLE. Bug #835. |
| 2212 |
|
| 2213 |
* cvtsudoers can now parse base64-encoded attributes in LDIF files. |
| 2214 |
|
| 2215 |
* Random insults are now more random. |
| 2216 |
|
| 2217 |
* Fixed the noexec wordexp(3) test on FreeBSD. |
| 2218 |
|
| 2219 |
* Added SUDO_CONV_PREFER_TTY flag for conversation function to |
| 2220 |
tell sudo to try writing to /dev/tty first. Can be used in |
| 2221 |
conjunction with SUDO_CONV_INFO_MSG and SUDO_CONV_ERROR_MSG. |
| 2222 |
|
| 2223 |
* Sudo now supports an arbitrary number of groups per user on |
| 2224 |
Solaris. Previously, only the first 64 groups were found. |
| 2225 |
This should remove the need to set "max_groups" in sudo.conf. |
| 2226 |
|
| 2227 |
* Fixed typos in the OpenLDAP sudo schema. Bugs #839 and #840. |
| 2228 |
|
| 2229 |
* Fixed a race condition when building with parallel make. |
| 2230 |
Bug #842. |
| 2231 |
|
| 2232 |
* Fixed a duplicate free when netgroup_base in ldap.conf is set |
| 2233 |
to an invalid value. |
| 2234 |
|
| 2235 |
* Fixed a bug introduced in sudo 1.8.23 on AIX that could prevent |
| 2236 |
local users and groups from being resolved properly on systems |
| 2237 |
that have users stored in NIS, LDAP or AD. |
| 2238 |
|
| 2239 |
* Added a workaround for an AIX bug exposed by a change in sudo |
| 2240 |
1.8.23 that prevents the terminal mode from being restored when |
| 2241 |
I/O logging is enabled. |
| 2242 |
|
| 2243 |
* On systems using PAM, sudo now ignores the PAM_NEW_AUTHTOK_REQD |
| 2244 |
and PAM_AUTHTOK_EXPIRED errors from PAM account management if |
| 2245 |
authentication is disabled for the user. This fixes a regression |
| 2246 |
introduced in sudo 1.8.23. Bug #843. |
| 2247 |
|
| 2248 |
* Fixed an ambiguity in the sudoers manual in the description and |
| 2249 |
definition of User, Runas, Host, and Cmnd Aliases. Bug #834. |
| 2250 |
|
| 2251 |
* Fixed a bug that resulted in only the first window size change |
| 2252 |
event being logged. |
| 2253 |
|
| 2254 |
* Fixed a bug on HP-UX systems introduced in sudo 1.8.22 that |
| 2255 |
caused sudo to prompt for a password every time when tty-based |
| 2256 |
time stamp files were in use. |
| 2257 |
|
| 2258 |
* Fixed a compilation problem on systems that define O_PATH or |
| 2259 |
O_SEARCH in fnctl.h but do not define O_DIRECTORY. Bug #844. |
| 2260 |
|
| 2261 |
What's new in Sudo 1.8.23 |
| 2262 |
|
| 2263 |
* PAM account management modules and BSD auth approval modules are |
| 2264 |
now run even when no password is required. |
| 2265 |
|
| 2266 |
* For kernel-based time stamps, if no terminal is present, fall |
| 2267 |
back to parent-pid style time stamps. |
| 2268 |
|
| 2269 |
* The new cvtsudoers utility replaces both the "sudoers2ldif" script |
| 2270 |
and the "visudo -x" functionality. It can read a file in either |
| 2271 |
sudoers or LDIF format and produce JSON, LDIF or sudoers output. |
| 2272 |
It is also possible to filter the generated output file by user, |
| 2273 |
group or host name. |
| 2274 |
|
| 2275 |
* The file, ldap and sss sudoers back-ends now share a common set |
| 2276 |
of formatting functions for "sudo -l" output, which is also used |
| 2277 |
by the cvtsudoers utility. |
| 2278 |
|
| 2279 |
* The /run directory is now used in preference to /var/run if it |
| 2280 |
exists. Bug #822. |
| 2281 |
|
| 2282 |
* More accurate descriptions of the --with-rundir and --with-vardir |
| 2283 |
configure options. Bug #823. |
| 2284 |
|
| 2285 |
* The setpassent() and setgroupent() functions are now used on systems |
| 2286 |
that support them to keep the passwd and group database open. |
| 2287 |
Sudo performs a lot of passwd and group lookups so it can be |
| 2288 |
beneficial to avoid opening and closing the files each time. |
| 2289 |
|
| 2290 |
* The new case_insensitive_user and case_insensitive_group sudoers |
| 2291 |
options can be used to control whether sudo does case-sensitive |
| 2292 |
matching of users and groups in sudoers. Case insensitive |
| 2293 |
matching is now the default. |
| 2294 |
|
| 2295 |
* Fixed a bug on some systems where sudo could hang on command |
| 2296 |
exit when I/O logging was enabled. Bug #826. |
| 2297 |
|
| 2298 |
* Fixed the build-time process start time test on Linux when the |
| 2299 |
test is run from within a container. Bug #829. |
| 2300 |
|
| 2301 |
* When determining which temporary directory to use, sudoedit now |
| 2302 |
checks the directory for writability before using it. Previously, |
| 2303 |
sudoedit only performed an existence check. Bug #827. |
| 2304 |
|
| 2305 |
* Sudo now includes an optional set of Monty Python-inspired insults. |
| 2306 |
|
| 2307 |
* Fixed the execution of scripts with an associated digest (checksum) |
| 2308 |
in sudoers on FreeBSD systems. FreeBSD does not have a proper |
| 2309 |
/dev/fd directory mounted by default and its fexecve(2) is not |
| 2310 |
fully POSIX compliant when executing scripts. Bug #831. |
| 2311 |
|
| 2312 |
* Chinese (Taiwan) translation for sudo from translationproject.org. |
| 2313 |
|
| 2314 |
What's new in Sudo 1.8.22 |
| 2315 |
|
| 2316 |
* Commands run in the background from a script run via sudo will |
| 2317 |
no longer receive SIGHUP when the parent exits and I/O logging |
| 2318 |
is enabled. Bug #502 |
| 2319 |
|
| 2320 |
* A particularly offensive insult is now disabled by default. |
| 2321 |
Bug #804 |
| 2322 |
|
| 2323 |
* The description of "sudo -i" now correctly documents that |
| 2324 |
the "env_keep" and "env_check" sudoers options are applied to |
| 2325 |
the environment. Bug #806 |
| 2326 |
|
| 2327 |
* Fixed a crash when the system's host name is not set. |
| 2328 |
Bug #807 |
| 2329 |
|
| 2330 |
* The sudoers2ldif script now handles #include and #includedir |
| 2331 |
directives. |
| 2332 |
|
| 2333 |
* Fixed a bug where sudo would silently exit when the command was |
| 2334 |
not allowed by sudoers and the "passwd_tries" sudoers option |
| 2335 |
was set to a value less than one. |
| 2336 |
|
| 2337 |
* Fixed a bug with the "listpw" and "verifypw" sudoers options and |
| 2338 |
multiple sudoers sources. If the option is set to "all", a |
| 2339 |
password should be required unless none of a user's sudoers |
| 2340 |
entries from any source require authentication. |
| 2341 |
|
| 2342 |
* Fixed a bug with the "listpw" and "verifypw" sudoers options in |
| 2343 |
the LDAP and SSSD back-ends. If the option is set to "any", and |
| 2344 |
the entry contained multiple rules, only the first matching rule |
| 2345 |
was checked. If an entry contained more than one matching rule |
| 2346 |
and the first rule required authentication but a subsequent rule |
| 2347 |
did not, sudo would prompt for a password when it should not have. |
| 2348 |
|
| 2349 |
* When running a command as the invoking user (not root), sudo |
| 2350 |
would execute the command with the same group vector it was |
| 2351 |
started with. Sudo now executes the command with a new group |
| 2352 |
vector based on the group database which is consistent with |
| 2353 |
how su(1) operates. |
| 2354 |
|
| 2355 |
* Fixed a double free in the SSSD back-end that could occur when |
| 2356 |
ipa_hostname is present in sssd.conf and is set to an unqualified |
| 2357 |
host name. |
| 2358 |
|
| 2359 |
* When I/O logging is enabled, sudo will now write to the terminal |
| 2360 |
even when it is a background process. Previously, sudo would |
| 2361 |
only write to the tty when it was the foreground process when |
| 2362 |
I/O logging was enabled. If the TOSTOP terminal flag is set, |
| 2363 |
sudo will suspend the command (and then itself) with the SIGTTOU |
| 2364 |
signal. |
| 2365 |
|
| 2366 |
* A new "authfail_message" sudoers option that overrides the |
| 2367 |
default "N incorrect password attempt(s)". |
| 2368 |
|
| 2369 |
* An empty sudoRunAsUser attribute in the LDAP and SSSD back-ends |
| 2370 |
will now match the invoking user. This is more consistent with |
| 2371 |
how an empty runas user in the sudoers file is treated. |
| 2372 |
|
| 2373 |
* Documented that in check mode, visudo does not check the owner/mode |
| 2374 |
on files specified with the -f flag. Bug #809. |
| 2375 |
|
| 2376 |
* It is now an error to specify the runas user as an empty string |
| 2377 |
on the command line. Previously, an empty runas user was treated |
| 2378 |
the same as an unspecified runas user. Bug #817. |
| 2379 |
|
| 2380 |
* When "timestamp_type" option is set to "tty" and a terminal is |
| 2381 |
present, the time stamp record will now include the start time |
| 2382 |
of the session leader. When the "timestamp_type" option is set |
| 2383 |
to "ppid" or when no terminal is available, the start time of |
| 2384 |
the parent process is used instead. This significantly reduces |
| 2385 |
the likelihood of a time stamp record being reused when a user |
| 2386 |
logs out and back in again. Bug #818. |
| 2387 |
|
| 2388 |
* The sudoers time stamp file format is now documented in the new |
| 2389 |
sudoers_timestamp manual. |
| 2390 |
|
| 2391 |
* The "timestamp_type" option now takes a "kernel" value on OpenBSD |
| 2392 |
systems. This causes the tty-based time stamp to be stored in |
| 2393 |
the kernel instead of on the file system. If no tty is present, |
| 2394 |
the time stamp is considered to be invalid. |
| 2395 |
|
| 2396 |
* Visudo will now use the SUDO_EDITOR environment variable (if |
| 2397 |
present) in addition to VISUAL and EDITOR. |
| 2398 |
|
| 2399 |
What's new in Sudo 1.8.21p2 |
| 2400 |
|
| 2401 |
* Fixed a bug introduced in version 1.8.21 which prevented sudo |
| 2402 |
from using the PAM-supplied prompt. Bug #799 |
| 2403 |
|
| 2404 |
* Fixed a bug introduced in version 1.8.21 which could result in |
| 2405 |
sudo hanging when running commands that exit quickly. Bug #800 |
| 2406 |
|
| 2407 |
* Fixed a bug introduced in version 1.8.21 which prevented the |
| 2408 |
command from being run when the password was read via an external |
| 2409 |
program using the askpass interface. Bug #801 |
| 2410 |
|
| 2411 |
What's new in Sudo 1.8.21p1 |
| 2412 |
|
| 2413 |
* On systems that support both PAM and SIGINFO, the main sudo |
| 2414 |
process will no longer forward SIGINFO to the command if the |
| 2415 |
signal was generated from the keyboard. The command will have |
| 2416 |
already received SIGINFO since it is part of the same process |
| 2417 |
group so there's no need for sudo to forward it. This is |
| 2418 |
consistent with the handling of SIGINT, SIGQUIT and SIGTSTP. |
| 2419 |
Bug #796 |
| 2420 |
|
| 2421 |
* If SUDOERS_SEARCH_FILTER in ldap.conf does not specify a value, |
| 2422 |
the LDAP search expression used when looking up netgroups and |
| 2423 |
non-Unix groups had a syntax error if a group plugin was not |
| 2424 |
specified. |
| 2425 |
|
| 2426 |
* "sudo -U otheruser -l" will now have an exit value of 0 even |
| 2427 |
if "otheruser" has no sudo privileges. The exit value when a |
| 2428 |
user attempts to lists their own privileges or when a command |
| 2429 |
is specified is unchanged. |
| 2430 |
|
| 2431 |
* Fixed a regression introduced in sudo 1.8.21 where sudoreplay |
| 2432 |
playback would hang for I/O logs that contain terminal input. |
| 2433 |
|
| 2434 |
* Sudo 1.8.18 contained an incomplete fix for the matching of |
| 2435 |
entries in the LDAP and SSSD back-ends when a sudoRunAsGroup is |
| 2436 |
specified but no sudoRunAsUser is present in the sudoRole. |
| 2437 |
|
| 2438 |
What's new in Sudo 1.8.21 |
| 2439 |
|
| 2440 |
* The path that sudo uses to search for terminal devices can now |
| 2441 |
be configured via the new "devsearch" Path setting in sudo.conf. |
| 2442 |
|
| 2443 |
* It is now possible to preserve bash shell functions in the |
| 2444 |
environment when the "env_reset" sudoers setting is disabled by |
| 2445 |
removing the "*=()*" pattern from the env_delete list. |
| 2446 |
|
| 2447 |
* A change made in sudo 1.8.15 inadvertently caused sudoedit to |
| 2448 |
send itself SIGHUP instead of exiting when the editor returns |
| 2449 |
an error or the file was not modified. |
| 2450 |
|
| 2451 |
* Sudoedit now uses an exit code of zero if the file was not |
| 2452 |
actually modified. Previously, sudoedit treated a lack of |
| 2453 |
modifications as an error. |
| 2454 |
|
| 2455 |
* When running a command in a pseudo-tty (pty), sudo now copies a |
| 2456 |
subset of the terminal flags to the new pty. Previously, all |
| 2457 |
flags were copied, even those not appropriate for a pty. |
| 2458 |
|
| 2459 |
* Fixed a problem with debug logging in the sudoers I/O logging |
| 2460 |
plugin. |
| 2461 |
|
| 2462 |
* Window size change events are now logged to the policy plugin. |
| 2463 |
On xterm and compatible terminals, sudoreplay is now capable of |
| 2464 |
resizing the terminal to match the size of the terminal the |
| 2465 |
command was run on. The new -R option can be used to disable |
| 2466 |
terminal resizing. |
| 2467 |
|
| 2468 |
* Fixed a bug in visudo where a newly added file was not checked |
| 2469 |
for syntax errors. Bug #791. |
| 2470 |
|
| 2471 |
* Fixed a bug in visudo where if a syntax error in an include |
| 2472 |
directory (like /etc/sudoers.d) was detected, the edited version |
| 2473 |
was left as a temporary file instead of being installed. |
| 2474 |
|
| 2475 |
* On PAM systems, sudo will now treat "username's Password:" as |
| 2476 |
a standard password prompt. As a result, the SUDO_PROMPT |
| 2477 |
environment variable will now override "username's Password:" |
| 2478 |
as well as the more common "Password:". Previously, the |
| 2479 |
"passprompt_override" Defaults setting would need to be set for |
| 2480 |
SUDO_PROMPT to override a prompt of "username's Password:". |
| 2481 |
|
| 2482 |
* A new "syslog_pid" sudoers setting has been added to include |
| 2483 |
sudo's process ID along with the process name when logging via |
| 2484 |
syslog. Bug #792. |
| 2485 |
|
| 2486 |
* Fixed a bug introduced in sudo 1.8.18 where a command would |
| 2487 |
not be terminated when the I/O logging plugin returned an error |
| 2488 |
to the sudo front-end. |
| 2489 |
|
| 2490 |
* A new "timestamp_type" sudoers setting has been added that replaces |
| 2491 |
the "tty_tickets" option. In addition to tty and global time stamp |
| 2492 |
records, it is now possible to use the parent process ID to restrict |
| 2493 |
the time stamp to commands run by the same process, usually the shell. |
| 2494 |
Bug #793. |
| 2495 |
|
| 2496 |
* The --preserve-env command line option has been extended to accept |
| 2497 |
a comma-separated list of environment variables to preserve. |
| 2498 |
Bug #279. |
| 2499 |
|
| 2500 |
* Friulian translation for sudo from translationproject.org. |
| 2501 |
|
| 2502 |
What's new in Sudo 1.8.20p2 |
| 2503 |
|
| 2504 |
* Fixed a bug parsing /proc/pid/stat on Linux when the process |
| 2505 |
name contains newlines. This is not exploitable due to the /dev |
| 2506 |
traversal changes in sudo 1.8.20p1. |
| 2507 |
|
| 2508 |
What's new in Sudo 1.8.20p1 |
| 2509 |
|
| 2510 |
* Fixed "make check" when using OpenSSL or GNU crypt. |
| 2511 |
Bug #787. |
| 2512 |
|
| 2513 |
* Fixed CVE-2017-1000367, a bug parsing /proc/pid/stat on Linux |
| 2514 |
when the process name contains spaces. Since the user has control |
| 2515 |
over the command name, this could potentially be used by a user |
| 2516 |
with sudo access to overwrite an arbitrary file on systems with |
| 2517 |
SELinux enabled. Also stop performing a breadth-first traversal |
| 2518 |
of /dev when looking for the device; only a hard-coded list of |
| 2519 |
directories are checked, |
| 2520 |
|
| 2521 |
What's new in Sudo 1.8.20 |
| 2522 |
|
| 2523 |
* Added support for SASL_MECH in ldap.conf. Bug #764 |
| 2524 |
|
| 2525 |
* Added support for digest matching when the command is a glob-style |
| 2526 |
pattern or a directory. Previously, only explicit path matches |
| 2527 |
supported digest checks. |
| 2528 |
|
| 2529 |
* New "fdexec" Defaults option to control whether a command |
| 2530 |
is executed by path or by open file descriptor. |
| 2531 |
|
| 2532 |
* The embedded copy of zlib has been upgraded to version 1.2.11. |
| 2533 |
|
| 2534 |
* Fixed a bug that prevented sudoers include files with a relative |
| 2535 |
path starting with the letter 'i' from being opened. Bug #776. |
| 2536 |
|
| 2537 |
* Added support for command timeouts in sudoers. The command will |
| 2538 |
be terminated if the timeout expires. |
| 2539 |
|
| 2540 |
* The SELinux role and type are now displayed in the "sudo -l" |
| 2541 |
output for the LDAP and SSSD back-ends, just as they are in the |
| 2542 |
sudoers back-end. |
| 2543 |
|
| 2544 |
* A new command line option, -T, can be used to specify a command |
| 2545 |
timeout as long as the user-specified timeout is not longer than |
| 2546 |
the timeout specified in sudoers. This option may only be |
| 2547 |
used when the "user_command_timeouts" flag is enabled in sudoers. |
| 2548 |
|
| 2549 |
* Added NOTBEFORE and NOTAFTER command options to the sudoers |
| 2550 |
back-end similar to what is already available in the LDAP back-end. |
| 2551 |
|
| 2552 |
* Sudo can now optionally use the SHA2 functions in OpenSSL or GNU |
| 2553 |
crypt instead of the SHA2 implementation bundled with sudo. |
| 2554 |
|
| 2555 |
* Fixed a compilation error on systems without the stdbool.h header |
| 2556 |
file. Bug #778. |
| 2557 |
|
| 2558 |
* Fixed a compilation error in the standalone Kerberos V authentication |
| 2559 |
module. Bug #777. |
| 2560 |
|
| 2561 |
* Added the iolog_flush flag to sudoers which causes I/O log data |
| 2562 |
to be written immediately to disk instead of being buffered. |
| 2563 |
|
| 2564 |
* I/O log files are now created with group ID 0 by default unless |
| 2565 |
the "iolog_user" or "iolog_group" options are set in sudoers. |
| 2566 |
|
| 2567 |
* It is now possible to store I/O log files on an NFS-mounted |
| 2568 |
file system where uid 0 is remapped to an unprivileged user. |
| 2569 |
The "iolog_user" option must be set to a non-root user and the |
| 2570 |
top-level I/O log directory must exist and be owned by that user. |
| 2571 |
|
| 2572 |
* Added the restricted_env_file setting to sudoers which is similar |
| 2573 |
to env_file but its contents are subject to the same restrictions |
| 2574 |
as variables in the invoking user's environment. |
| 2575 |
|
| 2576 |
* Fixed a use after free bug in the SSSD back-end when the fqdn |
| 2577 |
sudoOption is enabled and no hostname value is present in |
| 2578 |
/etc/sssd/sssd.conf. |
| 2579 |
|
| 2580 |
* Fixed a typo that resulted in a compilation error on systems |
| 2581 |
where the killpg() function is not found by configure. |
| 2582 |
|
| 2583 |
* Fixed a compilation error with the included version of zlib |
| 2584 |
when sudo was built outside the source tree. |
| 2585 |
|
| 2586 |
* Fixed the exit value of sudo when the command is terminated by |
| 2587 |
a signal other than SIGINT. This was broken in sudo 1.8.15 by |
| 2588 |
the fix for Bug #722. Bug #784. |
| 2589 |
|
| 2590 |
* Fixed a regression introduced in sudo 1.8.18 where the "lecture" |
| 2591 |
option could not be used in a positive boolean context, only |
| 2592 |
a negative one. |
| 2593 |
|
| 2594 |
* Fixed an issue where sudo would consume stdin if it was not |
| 2595 |
connected to a tty even if log_input is not enabled in sudoers. |
| 2596 |
Bug #786. |
| 2597 |
|
| 2598 |
* Clarify in the sudoers manual that the #includedir directive |
| 2599 |
diverts control to the files in the specified directory and, |
| 2600 |
when parsing of those files is complete, returns control to the |
| 2601 |
original file. Bug #775. |
| 2602 |
|
| 2603 |
What's new in Sudo 1.8.19p2 |
| 2604 |
|
| 2605 |
* Fixed a crash in visudo introduced in sudo 1.8.9 when an IP address |
| 2606 |
or network is used in a host-based Defaults entry. Bug #766 |
| 2607 |
|
| 2608 |
* Added a missing check for the ignore_iolog_errors flag when |
| 2609 |
the sudoers plugin generates the I/O log file path name. |
| 2610 |
|
| 2611 |
* Fixed a typo in sudo's vsyslog() replacement that resulted in |
| 2612 |
garbage being logged to syslog. |
| 2613 |
|
| 2614 |
What's new in Sudo 1.8.19p1 |
| 2615 |
|
| 2616 |
* Fixed a bug introduced in sudo 1.8.19 that resulted in the wrong |
| 2617 |
syslog priority and facility being used. |
| 2618 |
|
| 2619 |
What's new in Sudo 1.8.19 |
| 2620 |
|
| 2621 |
* New "syslog_maxlen" Defaults option to control the maximum size of |
| 2622 |
syslog messages generated by sudo. |
| 2623 |
|
| 2624 |
* Sudo has been run against PVS-Studio and any issues that were |
| 2625 |
not false positives have been addressed. |
| 2626 |
|
| 2627 |
* I/O log files are now created with the same group ID as the |
| 2628 |
parent directory and not the invoking user's group ID. |
| 2629 |
|
| 2630 |
* I/O log permissions and ownership are now configurable via the |
| 2631 |
"iolog_mode", "iolog_user" and "iolog_group" sudoers Defaults |
| 2632 |
variables. |
| 2633 |
|
| 2634 |
* Fixed configuration of the sudoers I/O log plugin debug subsystem. |
| 2635 |
Previously, I/O log information was not being written to the |
| 2636 |
sudoers debug log. |
| 2637 |
|
| 2638 |
* Fixed a bug in visudo that broke editing of files in an include |
| 2639 |
dir that have a syntax error. Normally, visudo does not edit |
| 2640 |
those files, but if a syntax error is detected in one, the user |
| 2641 |
should get a chance to fix it. |
| 2642 |
|
| 2643 |
* Warnings about unknown or unparsable sudoers Defaults entries now |
| 2644 |
include the file and line number of the problem. |
| 2645 |
|
| 2646 |
* Visudo will now use the file and line number information about an |
| 2647 |
unknown or unparsable Defaults entry to go directly to the file |
| 2648 |
with the problem. |
| 2649 |
|
| 2650 |
* Fixed a bug in the sudoers LDAP back-end where a negated sudoHost |
| 2651 |
entry would prevent other sudoHost entries following it from matching. |
| 2652 |
|
| 2653 |
* Warnings from visudo about a cycle in an Alias entry now include the |
| 2654 |
file and line number of the problem. |
| 2655 |
|
| 2656 |
* In strict mode, visudo will now use the file and line number |
| 2657 |
information about a cycle in an Alias entry to go directly to the |
| 2658 |
file with the problem. |
| 2659 |
|
| 2660 |
* The sudo_noexec.so file is now linked with -ldl on systems that |
| 2661 |
require it for the wordexp() wrapper. |
| 2662 |
|
| 2663 |
* Fixed linking of sudo_noexec.so on macOS systems where it must be |
| 2664 |
a dynamic library and not a module. |
| 2665 |
|
| 2666 |
* Sudo's "make check" now includes a test for sudo_noexec.so |
| 2667 |
working. |
| 2668 |
|
| 2669 |
* The sudo front-end now passes the user's umask to the plugin. |
| 2670 |
Previously the plugin had to determine this itself. |
| 2671 |
|
| 2672 |
* Sudoreplay can now display the stdin and ttyin streams when they |
| 2673 |
are explicitly added to the filter list. |
| 2674 |
|
| 2675 |
* Fixed a bug introduced in sudo 1.8.17 where the "all" setting |
| 2676 |
for verifypw and listpw was not being honored. Bug #762. |
| 2677 |
|
| 2678 |
* The syslog priority (syslog_goodpri and syslog_badpri) can now |
| 2679 |
be negated or set to "none" to disable logging of successful or |
| 2680 |
unsuccessful sudo attempts via syslog. |
| 2681 |
|
| 2682 |
What's new in Sudo 1.8.18p1 |
| 2683 |
|
| 2684 |
* When sudo_noexec.so is used, the WRDE_NOCMD flag is now added |
| 2685 |
if the wordexp() function is called. This prevents commands |
| 2686 |
from being run via wordexp() without disabling it entirely. |
| 2687 |
|
| 2688 |
* On Linux systems, sudo_noexec.so now uses a seccomp filter to |
| 2689 |
disable execute access if the kernel supports seccomp. This is |
| 2690 |
more robust than the traditional method of using stub functions |
| 2691 |
that return an error. |
| 2692 |
|
| 2693 |
What's new in Sudo 1.8.18 |
| 2694 |
|
| 2695 |
* The sudoers locale is now set before parsing the sudoers file. |
| 2696 |
If sudoers_locale is set in sudoers, it is applied before |
| 2697 |
evaluating other Defaults entries. Previously, sudoers_locale |
| 2698 |
was used when evaluating sudoers but not during the initial parse. |
| 2699 |
Bug #748. |
| 2700 |
|
| 2701 |
* A missing or otherwise invalid #includedir is now ignored instead |
| 2702 |
of causing a parse error. |
| 2703 |
|
| 2704 |
* During "make install", backup files are only used on HP-UX where |
| 2705 |
it is not possible to unlink a shared object that is in use. |
| 2706 |
This works around a bug in ldconfig on Linux which could create |
| 2707 |
links to the backup shared library file instead of the current |
| 2708 |
one. |
| 2709 |
|
| 2710 |
* Fixed a bug introduced in 1.8.17 where sudoers entries with long |
| 2711 |
commands lines could be truncated, preventing a match. Bug #752. |
| 2712 |
|
| 2713 |
* The fqdn, runas_default and sudoers_locale Defaults settings are |
| 2714 |
now applied before any other Defaults settings since they can |
| 2715 |
change how other Defaults settings are parsed. |
| 2716 |
|
| 2717 |
* On systems without the O_NOFOLLOW open(2) flag, when the NOFOLLOW |
| 2718 |
flag is set, sudoedit now checks whether the file is a symbolic link |
| 2719 |
before opening it as well as after the open. Bug #753. |
| 2720 |
|
| 2721 |
* Sudo will now only resolve a user's group IDs to group names |
| 2722 |
when sudoers includes group-based permissions. Group lookups |
| 2723 |
can be expensive on some systems where the group database is |
| 2724 |
not local. |
| 2725 |
|
| 2726 |
* If the file system holding the sudo log file is full, allow |
| 2727 |
the command to run unless the new ignore_logfile_errors Defaults |
| 2728 |
option is disabled. Bug #751. |
| 2729 |
|
| 2730 |
* The ignore_audit_errors and ignore_iolog_errors Defaults options |
| 2731 |
have been added to control sudo's behavior when it is unable to |
| 2732 |
write to the audit and I/O logs. |
| 2733 |
|
| 2734 |
* Fixed a bug introduced in 1.8.17 where the SIGPIPE signal handler |
| 2735 |
was not being restored when sudo directly executes the command. |
| 2736 |
|
| 2737 |
* Fixed a bug where "sudo -l command" would indicate that a command |
| 2738 |
was runnable even when denied by sudoers when using the LDAP or |
| 2739 |
SSSD back-ends. |
| 2740 |
|
| 2741 |
* The match_group_by_gid Defaults option has been added to allow |
| 2742 |
sites where group name resolution is slow and where sudoers only |
| 2743 |
contains a small number of groups to match groups by group ID |
| 2744 |
instead of by group name. |
| 2745 |
|
| 2746 |
* Fixed a bug on Linux where a 32-bit sudo binary could fail with |
| 2747 |
an "unable to allocate memory" error when run on a 64-bit system. |
| 2748 |
Bug #755 |
| 2749 |
|
| 2750 |
* When parsing ldap.conf, sudo will now only treat a '#' character |
| 2751 |
as the start of a comment when it is at the beginning of the |
| 2752 |
line. |
| 2753 |
|
| 2754 |
* Fixed a potential crash when auditing is enabled and the audit |
| 2755 |
function fails with an error. Bug #756 |
| 2756 |
|
| 2757 |
* Norwegian Nynorsk translation for sudo from translationproject.org. |
| 2758 |
|
| 2759 |
* Fixed a typo that broke short host name matching when the fqdn |
| 2760 |
flag is enabled in sudoers. Bug #757 |
| 2761 |
|
| 2762 |
* Negated sudoHost attributes are now supported by the LDAP and |
| 2763 |
SSSD back-ends. |
| 2764 |
|
| 2765 |
* Fixed matching entries in the LDAP and SSSD back-ends when a |
| 2766 |
RunAsGroup is specified but no RunAsUser is present. |
| 2767 |
|
| 2768 |
* Fixed "sudo -l" output in the LDAP and SSSD back-ends when a |
| 2769 |
RunAsGroup is specified but no RunAsUser is present. |
| 2770 |
|
| 2771 |
What's new in Sudo 1.8.17p1 |
| 2772 |
|
| 2773 |
* Fixed a bug introduced in 1.8.17 where the user's groups were |
| 2774 |
not set on systems that don't use PAM. Bug #749. |
| 2775 |
|
| 2776 |
What's new in Sudo 1.8.17 |
| 2777 |
|
| 2778 |
* On AIX, if /etc/security/login.cfg has auth_type set to PAM_AUTH |
| 2779 |
but pam_start(3) fails, fall back to AIX authentication. |
| 2780 |
Bug #740. |
| 2781 |
|
| 2782 |
* Sudo now takes all sudoers sources into account when determining |
| 2783 |
whether or not "sudo -l" or "sudo -v" should prompt for a password. |
| 2784 |
In other words, if both file and ldap sudoers sources are in |
| 2785 |
specified in /etc/nsswitch.conf, "sudo -v" will now require that |
| 2786 |
all entries in both sources be have NOPASSWD (file) or !authenticate |
| 2787 |
(ldap) in the entries. |
| 2788 |
|
| 2789 |
* Sudo now ignores SIGPIPE until the command is executed. Previously, |
| 2790 |
SIGPIPE was only ignored in a few select places. Bug #739. |
| 2791 |
|
| 2792 |
* Fixed a bug introduced in sudo 1.8.14 where (non-syslog) log |
| 2793 |
file entries were missing the newline when loglinelen is set to |
| 2794 |
a non-positive number. Bug #742. |
| 2795 |
|
| 2796 |
* Unix groups are now set before the plugin session initialization |
| 2797 |
code is run. This makes it possible to use dynamic groups with |
| 2798 |
the Linux-PAM pam_group module. |
| 2799 |
|
| 2800 |
* Fixed a bug where a debugging statement could dereference a NULL |
| 2801 |
pointer when looking up a group that doesn't exist. Bug #743. |
| 2802 |
|
| 2803 |
* Sudo has been run through the Coverity code scanner. A number of |
| 2804 |
minor bugs have been fixed as a result. None were security issues. |
| 2805 |
|
| 2806 |
* SELinux support, which was broken in 1.8.16, has been repaired. |
| 2807 |
|
| 2808 |
* Fixed a bug when logging I/O where all output buffers might not |
| 2809 |
get flushed at exit. |
| 2810 |
|
| 2811 |
* Forward slashes are no longer escaped in the JSON output of |
| 2812 |
"visudo -x". This was never required by the standard and not |
| 2813 |
escaping them improves readability of the output. |
| 2814 |
|
| 2815 |
* Sudo no longer treats PAM_SESSION_ERR as a fatal error when |
| 2816 |
opening the PAM session. Other errors from pam_open_session() |
| 2817 |
are still treated as fatal. This avoids the "policy plugin |
| 2818 |
failed session initialization" error message seen on some systems. |
| 2819 |
|
| 2820 |
* Korean translation for sudo and sudoers from translationproject.org. |
| 2821 |
|
| 2822 |
* Fixed a bug on AIX where the stack size hard resource limit was |
| 2823 |
being set to 2GB instead of 4GB on 64-bit systems. |
| 2824 |
|
| 2825 |
* The SSSD back-end now properly supports "sudo -U otheruser -l". |
| 2826 |
|
| 2827 |
* The SSSD back-end now uses the value of "ipa_hostname" |
| 2828 |
from sssd.conf, if specified, when matching the host name. |
| 2829 |
|
| 2830 |
* Fixed a hang on some systems when the command is being run in |
| 2831 |
a pty and it failed to execute. |
| 2832 |
|
| 2833 |
* When performing a wildcard match in sudoers, check for an exact |
| 2834 |
string match if the user command was fully-qualified (or resolved |
| 2835 |
via the PATH). This fixes an issue executing scripts on Linux |
| 2836 |
when there are multiple wildcard matches with the same base name. |
| 2837 |
Bug #746. |
| 2838 |
|
| 2839 |
What's new in Sudo 1.8.16 |
| 2840 |
|
| 2841 |
* Fixed a compilation error on Solaris 10 with Stun Studio 12. |
| 2842 |
Bug #727. |
| 2843 |
|
| 2844 |
* When preserving variables from the invoking user's environment, if |
| 2845 |
there are duplicates sudo now only keeps the first instance. |
| 2846 |
|
| 2847 |
* Fixed a bug that could cause warning mail to be sent in list |
| 2848 |
mode (sudo -l) for users without sudo privileges when the |
| 2849 |
LDAP and sssd back-ends are used. |
| 2850 |
|
| 2851 |
* Fixed a bug that prevented the "mail_no_user" option from working |
| 2852 |
properly with the LDAP back-end. |
| 2853 |
|
| 2854 |
* In the LDAP and sssd back-ends, white space is now ignored between |
| 2855 |
an operator (!, +, +=, -=) when parsing a sudoOption. |
| 2856 |
|
| 2857 |
* It is now possible to disable Path settings in sudo.conf |
| 2858 |
by omitting the path name. |
| 2859 |
|
| 2860 |
* The sudoedit_checkdir Defaults option is now enabled by default |
| 2861 |
and has been extended. When editing files with sudoedit, each |
| 2862 |
directory in the path to be edited is now checked. If a directory |
| 2863 |
is writable by the invoking user, symbolic links will not be |
| 2864 |
followed. If the parent directory of the file to be edited is |
| 2865 |
writable, sudoedit will refuse to edit it. |
| 2866 |
Bug #707. |
| 2867 |
|
| 2868 |
* The netgroup_tuple Defaults option has been added to enable matching |
| 2869 |
of the entire netgroup tuple, not just the host or user portion. |
| 2870 |
Bug #717. |
| 2871 |
|
| 2872 |
* When matching commands based on the SHA2 digest, sudo will now |
| 2873 |
use fexecve(2) to execute the command if it is available. This |
| 2874 |
fixes a time of check versus time of use race condition when the |
| 2875 |
directory holding the command is writable by the invoking user. |
| 2876 |
|
| 2877 |
* On AIX systems, sudo now caches the auth registry string along |
| 2878 |
with password and group information. This fixes a potential |
| 2879 |
problem when a user or group of the same name exists in multiple |
| 2880 |
auth registries. For example, local and LDAP. |
| 2881 |
|
| 2882 |
* Fixed a crash in the SSSD back-end when the invoking user is not |
| 2883 |
found. Bug #732. |
| 2884 |
|
| 2885 |
* Added the --enable-asan configure flag to enable address sanitizer |
| 2886 |
support. A few minor memory leaks have been plugged to quiet |
| 2887 |
the ASAN leak detector. |
| 2888 |
|
| 2889 |
* The value of _PATH_SUDO_CONF may once again be overridden via |
| 2890 |
the Makefile. Bug #735. |
| 2891 |
|
| 2892 |
* The sudoers2ldif script now handles multiple roles with same name. |
| 2893 |
|
| 2894 |
* Fixed a compilation error on systems that have the posix_spawn() |
| 2895 |
and posix_spawnp() functions but an unusable spawn.h header. |
| 2896 |
Bug #730. |
| 2897 |
|
| 2898 |
* Fixed support for negating character classes in sudo's version |
| 2899 |
of the fnmatch() function. |
| 2900 |
|
| 2901 |
* Fixed a bug in the LDAP and SSSD back-ends that could allow an |
| 2902 |
unauthorized user to list another user's privileges. Bug #738. |
| 2903 |
|
| 2904 |
* The PAM conversation function now works around an ambiguity in the |
| 2905 |
PAM spec with respect to multiple messages. Bug #726. |
| 2906 |
|
| 2907 |
What's new in Sudo 1.8.15 |
| 2908 |
|
| 2909 |
* Fixed a bug that prevented sudo from building outside the source tree |
| 2910 |
on some platforms. Bug #708. |
| 2911 |
|
| 2912 |
* Fixed the location of the sssd library in the RHEL/Centos packages. |
| 2913 |
Bug #710. |
| 2914 |
|
| 2915 |
* Fixed a build problem on systems that don't implicitly include |
| 2916 |
sys/types.h from other header files. Bug #711. |
| 2917 |
|
| 2918 |
* Fixed a problem on Linux using containers where sudo would ignore |
| 2919 |
signals sent by a process in a different container. |
| 2920 |
|
| 2921 |
* Sudo now refuses to run a command if the PAM session module |
| 2922 |
returns an error. |
| 2923 |
|
| 2924 |
* When editing files with sudoedit, symbolic links will no longer |
| 2925 |
be followed by default. The old behavior can be restored by |
| 2926 |
enabling the sudoedit_follow option in sudoers or on a per-command |
| 2927 |
basis with the FOLLOW and NOFOLLOW tags. Bug #707. |
| 2928 |
|
| 2929 |
* Fixed a bug introduced in version 1.8.14 that caused the last |
| 2930 |
valid editor in the sudoers "editor" list to be used by visudo |
| 2931 |
and sudoedit instead of the first. Bug #714. |
| 2932 |
|
| 2933 |
* Fixed a bug in visudo that prevented the addition of a final |
| 2934 |
newline to edited files without one. |
| 2935 |
|
| 2936 |
* Fixed a bug decoding certain base64 digests in sudoers when the |
| 2937 |
intermediate format included a '=' character. |
| 2938 |
|
| 2939 |
* Individual records are now locked in the time stamp file instead |
| 2940 |
of the entire file. This allows sudo to avoid prompting for a |
| 2941 |
password multiple times on the same terminal when used in a |
| 2942 |
pipeline. In other words, "sudo cat foo | sudo grep bar" now |
| 2943 |
only prompts for the password once. Previously, both sudo |
| 2944 |
processes would prompt for a password, often making it impossible |
| 2945 |
to enter. |
| 2946 |
|
| 2947 |
* Fixed a bug where sudo would fail to run commands as a non-root |
| 2948 |
user on systems that lack both setresuid() and setreuid(). |
| 2949 |
Bug #713. |
| 2950 |
|
| 2951 |
* Fixed a bug introduced in sudo 1.8.14 that prevented visudo from |
| 2952 |
re-editing the correct file when a syntax error was detected. |
| 2953 |
|
| 2954 |
* Fixed a bug where sudo would not relay a SIGHUP signal to the |
| 2955 |
command when the terminal is closed and the command is not run |
| 2956 |
in its own pseudo-tty. Bug #719 |
| 2957 |
|
| 2958 |
* If some, but not all, of the LOGNAME, USER or USERNAME environment |
| 2959 |
variables have been preserved from the invoking user's environment, |
| 2960 |
sudo will now use the preserved value to set the remaining variables |
| 2961 |
instead of using the runas user. This ensures that if, for example, |
| 2962 |
only LOGNAME is present in the env_keep list, that sudo will not |
| 2963 |
set USER and USERNAME to the runas user. |
| 2964 |
|
| 2965 |
* When the command sudo is running dies due to a signal, sudo will |
| 2966 |
now send itself that same signal with the default signal handler |
| 2967 |
installed instead of exiting. The bash shell appears to ignore |
| 2968 |
some signals, e.g., SIGINT, unless the command being run is killed |
| 2969 |
by that signal. This makes the behavior of commands run under |
| 2970 |
sudo the same as without sudo when bash is the shell. Bug #722 |
| 2971 |
|
| 2972 |
* Slovak translation for sudo from translationproject.org. |
| 2973 |
|
| 2974 |
* Hungarian and Slovak translations for sudoers from translationproject.org. |
| 2975 |
|
| 2976 |
* Previously, when env_reset was enabled (the default) and the -s |
| 2977 |
option was not used, the SHELL environment variable was set to the |
| 2978 |
shell of the invoking user. Now, when env_reset is enabled and |
| 2979 |
the -s option is not used, SHELL is set based on the target user. |
| 2980 |
|
| 2981 |
* Fixed challenge/response style BSD authentication. |
| 2982 |
|
| 2983 |
* Added the sudoedit_checkdir Defaults option to prevent sudoedit |
| 2984 |
from editing files located in a directory that is writable by |
| 2985 |
the invoking user. |
| 2986 |
|
| 2987 |
* Added the always_query_group_plugin Defaults option to control |
| 2988 |
whether groups not found in the system group database are passed |
| 2989 |
to the group plugin. Previously, unknown system groups were |
| 2990 |
always passed to the group plugin. |
| 2991 |
|
| 2992 |
* When creating a new file, sudoedit will now check that the file's |
| 2993 |
parent directory exists before running the editor. |
| 2994 |
|
| 2995 |
* Fixed the compiler stack protector test in configure for compilers |
| 2996 |
that support -fstack-protector but don't actually have the ssp |
| 2997 |
library available. |
| 2998 |
|
| 2999 |
What's new in Sudo 1.8.14p3 |
| 3000 |
|
| 3001 |
* Fixed a bug introduced in sudo 1.8.14p2 that prevented sudo |
| 3002 |
from working when no tty was present. |
| 3003 |
|
| 3004 |
* Fixed tty detection on newer AIX systems where dev_t is 64-bit. |
| 3005 |
|
| 3006 |
What's new in Sudo 1.8.14p2 |
| 3007 |
|
| 3008 |
* Fixed a bug introduced in sudo 1.8.14 that prevented the lecture |
| 3009 |
file from being created. Bug #704. |
| 3010 |
|
| 3011 |
What's new in Sudo 1.8.14p1 |
| 3012 |
|
| 3013 |
* Fixed a bug introduced in sudo 1.8.14 that prevented the sssd |
| 3014 |
back-end from working. Bug #703. |
| 3015 |
|
| 3016 |
What's new in Sudo 1.8.14 |
| 3017 |
|
| 3018 |
* Log messages on Mac OS X now respect sudoers_locale when sudo |
| 3019 |
is build with NLS support. |
| 3020 |
|
| 3021 |
* The sudo manual pages now pass "mandoc -Tlint" with no warnings. |
| 3022 |
|
| 3023 |
* Fixed a compilation problem on systems with the sig2str() function |
| 3024 |
that do not define SIG2STR_MAX in signal.h. |
| 3025 |
|
| 3026 |
* Worked around a compiler bug that resulted in unexpected behavior |
| 3027 |
when returning an int from a function declared to return bool |
| 3028 |
without an explicit cast. |
| 3029 |
|
| 3030 |
* Worked around a bug in Mac OS X 10.10 BSD auditing where the |
| 3031 |
au_preselect() fails for AUE_sudo events but succeeds for |
| 3032 |
AUE_DARWIN_sudo. |
| 3033 |
|
| 3034 |
* Fixed a hang on Linux systems with glibc when sudo is linked with |
| 3035 |
jemalloc. |
| 3036 |
|
| 3037 |
* When the user runs a command as a user ID that is not present in |
| 3038 |
the password database via the -u flag, the command is now run |
| 3039 |
with the group ID of the invoking user instead of group ID 0. |
| 3040 |
|
| 3041 |
* Fixed a compilation problem on systems that don't pull in |
| 3042 |
definitions of uid_t and gid_t without sys/types.h or unistd.h. |
| 3043 |
|
| 3044 |
* Fixed a compilation problem on newer AIX systems which use a |
| 3045 |
struct st_timespec for time stamps in struct stat that differs |
| 3046 |
from struct timespec. Bug #702. |
| 3047 |
|
| 3048 |
* The example directory is now configurable via --with-exampledir |
| 3049 |
and defaults to DATAROOTDIR/examples/sudo on BSD systems. |
| 3050 |
|
| 3051 |
* The /usr/lib/tmpfiles.d/sudo.conf file is now installed as part |
| 3052 |
of "make install" when systemd is in use. |
| 3053 |
|
| 3054 |
* Fixed a linker problem on some systems with libintl. Bug #690. |
| 3055 |
|
| 3056 |
* Fixed compilation with compilers that don't support __func__ |
| 3057 |
or __FUNCTION__. |
| 3058 |
|
| 3059 |
* Sudo no longer needs to uses weak symbols to support localization |
| 3060 |
in the warning functions. A registration function is used instead. |
| 3061 |
|
| 3062 |
* Fixed a setresuid() failure in sudoers on Linux kernels where |
| 3063 |
uid changes take the nproc resource limit into account. |
| 3064 |
|
| 3065 |
* Fixed LDAP netgroup queries on AIX. |
| 3066 |
|
| 3067 |
* Sudo will now display the custom prompt on Linux systems with PAM |
| 3068 |
even if the "Password: " prompt is not localized by the PAM module. |
| 3069 |
Bug #701. |
| 3070 |
|
| 3071 |
* Double-quoted values in an LDAP sudoOption are now supported |
| 3072 |
for consistency with file-based sudoers. |
| 3073 |
|
| 3074 |
* Fixed a bug that prevented the btime entry in /proc/stat from |
| 3075 |
being parsed on Linux. |
| 3076 |
|
| 3077 |
What's new in Sudo 1.8.13 |
| 3078 |
|
| 3079 |
* The examples directory is now a subdirectory of the doc dir to |
| 3080 |
conform to Debian guidelines. Bug #682. |
| 3081 |
|
| 3082 |
* Fixed a compilation error for siglist.c and signame.c on some |
| 3083 |
systems. Bug #686 |
| 3084 |
|
| 3085 |
* Weak symbols are now used for sudo_warn_gettext() and |
| 3086 |
sudo_warn_strerror() in libsudo_util to avoid link errors when |
| 3087 |
-Wl,--no-undefined is used in LDFLAGS. The --disable-weak-symbols |
| 3088 |
configure option can be used to disable the user of weak symbols. |
| 3089 |
|
| 3090 |
* Fixed a bug in sudo's mkstemps() replacement function that |
| 3091 |
prevented the file extension from being preserved in sudoedit. |
| 3092 |
|
| 3093 |
* A new mail_all_cmnds sudoers flag will send mail when a user runs |
| 3094 |
a command (or tries to). The behavior of the mail_always flag has |
| 3095 |
been restored to always send mail when sudo is run. |
| 3096 |
|
| 3097 |
* New "MAIL" and "NOMAIL" command tags have been added to toggle |
| 3098 |
mail sending behavior on a per-command (or Cmnd_Alias) basis. |
| 3099 |
|
| 3100 |
* Fixed matching of empty passwords when sudo is configured to |
| 3101 |
use passwd (or shadow) file authentication on systems where the |
| 3102 |
crypt() function returns NULL for invalid salts. |
| 3103 |
|
| 3104 |
* On AIX, sudo now uses the value of the auth_type setting in |
| 3105 |
/etc/security/login.cfg to determine whether to use LAM or PAM |
| 3106 |
for user authentication. |
| 3107 |
|
| 3108 |
* The "all" setting for listpw and verifypw now works correctly |
| 3109 |
with LDAP and sssd sudoers. |
| 3110 |
|
| 3111 |
* The sudo timestamp directory is now created at boot time on |
| 3112 |
platforms that use systemd. |
| 3113 |
|
| 3114 |
* Sudo will now restore the value of the SIGPIPE handler before |
| 3115 |
executing the command. |
| 3116 |
|
| 3117 |
* Sudo now uses "struct timespec" instead of "struct timeval" for |
| 3118 |
time keeping when possible. If supported, sudoedit and visudo |
| 3119 |
now use nanosecond granularity time stamps. |
| 3120 |
|
| 3121 |
* Fixed a symbol name collision with systems that have their own |
| 3122 |
SHA2 implementation. This fixes a problem where PAM could use |
| 3123 |
the wrong SHA2 implementation on Solaris 10 systems configured |
| 3124 |
to use SHA512 for passwords. |
| 3125 |
|
| 3126 |
* The editor invoked by sudoedit once again uses an unmodified |
| 3127 |
copy of the user's environment as per the documentation. This |
| 3128 |
was inadvertently changed in sudo 1.8.0. Bug #688. |
| 3129 |
|
| 3130 |
What's new in Sudo 1.8.12 |
| 3131 |
|
| 3132 |
* The embedded copy of zlib has been upgraded to version 1.2.8 and |
| 3133 |
is now installed as a shared library where supported. |
| 3134 |
|
| 3135 |
* Debug settings for the sudo front end and sudoers plugin are now |
| 3136 |
configured separately. |
| 3137 |
|
| 3138 |
* Multiple sudo.conf Debug entries may now be specified per program |
| 3139 |
(or plugin). |
| 3140 |
|
| 3141 |
* The plugin API has been extended such that the path to the plugin |
| 3142 |
that was loaded is now included in the settings array. This |
| 3143 |
path can be used to register with the debugging subsystem. The |
| 3144 |
debug_flags setting is now prefixed with a file name and may be |
| 3145 |
specified multiple times if there is more than one matching Debug |
| 3146 |
setting in sudo.conf. |
| 3147 |
|
| 3148 |
* The sudoers regression tests now run with the locale set to C |
| 3149 |
since some of the tests compare output that includes locale-specific |
| 3150 |
messages. Bug #672 |
| 3151 |
|
| 3152 |
* Fixed a bug where sudo would not run commands on Linux when |
| 3153 |
compiled with audit support if audit is disabled. Bug #671 |
| 3154 |
|
| 3155 |
* Added __BASH_FUNC<* to the environment blacklist to match |
| 3156 |
Apple's syntax for newer-style bash functions. |
| 3157 |
|
| 3158 |
* The default password prompt now includes a trailing space after |
| 3159 |
"Password:" for consistency with su(1) on most systems. |
| 3160 |
Bug #663 |
| 3161 |
|
| 3162 |
* Fixed a problem on DragonFly BSD where SIGCHLD could be ignored, |
| 3163 |
preventing sudo from exiting. Bug #676 |
| 3164 |
|
| 3165 |
* Visudo will now use the optional sudoers_file, sudoers_mode, |
| 3166 |
sudoers_uid and sudoers_gid arguments if specified on the |
| 3167 |
sudoers.so Plugin line in the sudo.conf file. |
| 3168 |
|
| 3169 |
* Fixed a problem introduced in sudo 1.8.8 that prevented the full |
| 3170 |
host name from being used when the "fqdn" sudoers option is used. |
| 3171 |
Bug #678 |
| 3172 |
|
| 3173 |
* French and Russian translations for sudoers from translationproject.org. |
| 3174 |
|
| 3175 |
* Sudo now installs a handler for SIGCHLD signal handler immediately |
| 3176 |
before stating the process that will execute the command (or |
| 3177 |
start the monitor). The handler used to be installed earlier |
| 3178 |
but this causes problems with poorly behaved PAM modules that |
| 3179 |
install their own SIGCHLD signal handler and neglect to restore |
| 3180 |
sudo's original handler. Bug #657 |
| 3181 |
|
| 3182 |
* Removed a limit on the length of command line arguments expanded |
| 3183 |
by a wild card using sudo's version of the fnmatch() function. |
| 3184 |
This limit was introduced when sudo's version of fnmatch() |
| 3185 |
was replaced in sudo 1.8.4. |
| 3186 |
|
| 3187 |
* LDAP-based sudoers can now query an LDAP server for a user's |
| 3188 |
netgroups directly. This is often much faster than fetching |
| 3189 |
every sudoRole object containing a sudoUser that begins with a |
| 3190 |
`+' prefix and checking whether the user is a member of any of |
| 3191 |
the returned netgroups. |
| 3192 |
|
| 3193 |
* The mail_always sudoers option no longer sends mail for "sudo -l" |
| 3194 |
or "sudo -v" unless the user is unable to authenticate themselves. |
| 3195 |
|
| 3196 |
* Fixed a crash when sudo is run with an empty argument vector. |
| 3197 |
|
| 3198 |
* Fixed two potential crashes when sudo is run with very low |
| 3199 |
resource limits. |
| 3200 |
|
| 3201 |
* The TZ environment variable is now checked for safety instead |
| 3202 |
of simply being copied to the environment of the command. |
| 3203 |
|
| 3204 |
What's new in Sudo 1.8.11p2 |
| 3205 |
|
| 3206 |
* Fixed a bug where dynamic shared objects loaded from a plugin |
| 3207 |
could use the hooked version of getenv() but not the hooked |
| 3208 |
versions of putenv(), setenv() or unsetenv(). This can cause |
| 3209 |
problems for PAM modules that use those functions. |
| 3210 |
|
| 3211 |
What's new in Sudo 1.8.11p1 |
| 3212 |
|
| 3213 |
* Fixed a compilation problem on some systems when the |
| 3214 |
--disable-shared-libutil configure option was specified. |
| 3215 |
|
| 3216 |
* The user can no longer interrupt the sleep after an incorrect |
| 3217 |
password on PAM systems using pam_unix. |
| 3218 |
Bug #666 |
| 3219 |
|
| 3220 |
* Fixed a compilation problem on Linux systems that do not use PAM. |
| 3221 |
Bug #667 |
| 3222 |
|
| 3223 |
* "make install" will now work with the stock GNU autotools |
| 3224 |
install-sh script. Bug #669 |
| 3225 |
|
| 3226 |
* Fixed a crash with "sudo -i" when the current working directory |
| 3227 |
does not exist. Bug #670 |
| 3228 |
|
| 3229 |
* Fixed a potential crash in the debug subsystem when logging a message |
| 3230 |
larger that 1024 bytes. |
| 3231 |
|
| 3232 |
* Fixed a "make check" failure for ttyname when stdin is closed and |
| 3233 |
stdout and stderr are redirected to a different tty. Bug #643 |
| 3234 |
|
| 3235 |
* Added BASH_FUNC_* to the environment blacklist to match newer-style |
| 3236 |
bash functions. |
| 3237 |
|
| 3238 |
What's new in Sudo 1.8.11 |
| 3239 |
|
| 3240 |
* The sudoers plugin no longer uses setjmp/longjmp to recover |
| 3241 |
from fatal errors. All errors are now propagated to the caller |
| 3242 |
via return codes. |
| 3243 |
|
| 3244 |
* When running a command in the background, sudo will now forward |
| 3245 |
SIGINFO to the command (if supported). |
| 3246 |
|
| 3247 |
* Sudo will now use the system versions of the sha2 functions from |
| 3248 |
libc or libmd if available. |
| 3249 |
|
| 3250 |
* Visudo now works correctly on GNU Hurd. Bug #647 |
| 3251 |
|
| 3252 |
* Fixed suspend and resume of curses programs on some system when |
| 3253 |
the command is not being run in a pseudo-terminal. Bug #649 |
| 3254 |
|
| 3255 |
* Fixed a crash with LDAP-based sudoers on some systems when |
| 3256 |
Kerberos was enabled. |
| 3257 |
|
| 3258 |
* Sudo now includes optional Solaris audit support. |
| 3259 |
|
| 3260 |
* Catalan translation for sudoers from translationproject.org. |
| 3261 |
|
| 3262 |
* Norwegian Bokmaal translation for sudo from translationproject.org. |
| 3263 |
|
| 3264 |
* Greek translation for sudoers from translationproject.org |
| 3265 |
|
| 3266 |
* The sudo source tree has been reorganized to more closely resemble |
| 3267 |
that of other gettext-enabled packages. |
| 3268 |
|
| 3269 |
* Sudo and its associated programs now link against a shared version |
| 3270 |
of libsudo_util. The --disable-shared-libutil configure option |
| 3271 |
may be used to force static linking if the --enable-static-sudoers |
| 3272 |
option is also specified. |
| 3273 |
|
| 3274 |
* The passwords in ldap.conf and ldap.secret may now be encoded |
| 3275 |
in base64. |
| 3276 |
|
| 3277 |
* Audit updates. SELinux role changes are now audited. For |
| 3278 |
sudoedit, we now audit the actual editor being run, instead of |
| 3279 |
just the sudoedit command. |
| 3280 |
|
| 3281 |
* Fixed bugs in the man page post-processing that could cause |
| 3282 |
portions of the manuals to be removed. |
| 3283 |
|
| 3284 |
* Fixed a crash in the system_group plugin. Bug #653. |
| 3285 |
|
| 3286 |
* Fixed sudoedit on platforms without a system version of the |
| 3287 |
getprogname() function. Bug #654. |
| 3288 |
|
| 3289 |
* Fixed compilation problems with some pre-C99 compilers. |
| 3290 |
|
| 3291 |
* Fixed sudo's -C option which was broken in version 1.8.9. |
| 3292 |
|
| 3293 |
* It is now possible to match an environment variable's value as |
| 3294 |
well as its name using env_keep and env_check. This can be used |
| 3295 |
to preserve bash functions which would otherwise be removed from |
| 3296 |
the environment. |
| 3297 |
|
| 3298 |
* New files created via sudoedit as a non-root user now have the |
| 3299 |
proper group id. Bug #656 |
| 3300 |
|
| 3301 |
* Sudoedit now works correctly in conjunction with sudo's SELinux |
| 3302 |
RBAC support. Temporary files are now created with the proper |
| 3303 |
security context. |
| 3304 |
|
| 3305 |
* The sudo I/O logging plugin API has been updated. If a logging |
| 3306 |
function returns an error, the command will be terminated and |
| 3307 |
all of the plugin's logging functions will be disabled. If a |
| 3308 |
logging function rejects the command's output it will no longer |
| 3309 |
be displayed to the user's terminal. |
| 3310 |
|
| 3311 |
* Fixed a compilation error on systems that lack openpty(), _getpty() |
| 3312 |
and grantpt(). Bug #660 |
| 3313 |
|
| 3314 |
* Fixed a hang when a sudoers source is listed more than once in |
| 3315 |
a single sudoers nsswitch.conf entry. |
| 3316 |
|
| 3317 |
* On AIX, shell scripts without a #! magic number are now passed to |
| 3318 |
/usr/bin/sh, not /usr/bin/bsh. This is consistent with what the |
| 3319 |
execvp() function on AIX does and matches historic sudo behavior. |
| 3320 |
Bug #661 |
| 3321 |
|
| 3322 |
* Fixed a cross-compilation problem building mksiglist and mksigname. |
| 3323 |
Bug #662 |
| 3324 |
|
| 3325 |
What's new in Sudo 1.8.10p3? |
| 3326 |
|
| 3327 |
* Fixed expansion of %p in the prompt for "sudo -l" when rootpw, |
| 3328 |
runaspw or targetpw is set. Bug #639 |
| 3329 |
|
| 3330 |
* Fixed matching of UIDs and GIDs which was broken in version 1.8.9. |
| 3331 |
Bug #640 |
| 3332 |
|
| 3333 |
* PAM credential initialization has been re-enabled. It was |
| 3334 |
unintentionally disabled by default in version 1.8.8. The way |
| 3335 |
credentials are initialized has also been fixed. Bug #642. |
| 3336 |
|
| 3337 |
* Fixed a descriptor leak on Linux when determining boot time. Sudo |
| 3338 |
normally closes extra descriptors before running a command so |
| 3339 |
the impact is limited. Bug #645 |
| 3340 |
|
| 3341 |
* Fixed flushing of the last buffer of data when I/O logging is |
| 3342 |
enabled. This bug, introduced in version 1.8.9, could cause |
| 3343 |
incomplete command output on some systems. Bug #646 |
| 3344 |
|
| 3345 |
What's new in Sudo 1.8.10p2? |
| 3346 |
|
| 3347 |
* Fixed a hang introduced in sudo 1.8.10 when timestamp_timeout |
| 3348 |
is set to zero. |
| 3349 |
|
| 3350 |
What's new in Sudo 1.8.10p1? |
| 3351 |
|
| 3352 |
* Fixed a bug introduced in sudo 1.8.10 that prevented the disabling |
| 3353 |
of tty-based tickets. |
| 3354 |
|
| 3355 |
* Fixed a bug with negated commands in "sudo -l command" that |
| 3356 |
could cause the command to be listed even when it was explicitly |
| 3357 |
denied. This only affected list mode when a command was specified. |
| 3358 |
Bug #636 |
| 3359 |
|
| 3360 |
What's new in Sudo 1.8.10? |
| 3361 |
|
| 3362 |
* It is now possible to disable network interface probing in |
| 3363 |
sudo.conf by changing the value of the probe_interfaces |
| 3364 |
setting. |
| 3365 |
|
| 3366 |
* When listing a user's privileges (sudo -l), the sudoers plugin |
| 3367 |
will now prompt for the user's password even if the targetpw, |
| 3368 |
rootpw or runaspw options are set. |
| 3369 |
|
| 3370 |
* The sudoers plugin uses a new format for its time stamp files. |
| 3371 |
Each user now has a single file which may contain multiple records |
| 3372 |
when per-tty time stamps are in use (the default). The time |
| 3373 |
stamps use a monotonic timer where available and are once again |
| 3374 |
located in a directory under /var/run. The lecture status is |
| 3375 |
now stored separately from the time stamps in a different directory. |
| 3376 |
Bug #616 |
| 3377 |
|
| 3378 |
* sudo's -K option will now remove all of the user's time stamps, |
| 3379 |
not just the time stamp for the current terminal. The -k option |
| 3380 |
can be used to only disable time stamps for the current terminal. |
| 3381 |
|
| 3382 |
* If sudo was started in the background and needed to prompt for |
| 3383 |
a password, it was not possible to suspend it at the password |
| 3384 |
prompt. This now works properly. |
| 3385 |
|
| 3386 |
* LDAP-based sudoers now uses a default search filter of |
| 3387 |
(objectClass=sudoRole) for more efficient queries. The netgroup |
| 3388 |
query has been modified to avoid falling below the minimum length |
| 3389 |
for OpenLDAP substring indices. |
| 3390 |
|
| 3391 |
* The new "use_netgroups" sudoers option can be used to explicitly |
| 3392 |
enable or disable netgroups support. For LDAP-based sudoers, |
| 3393 |
netgroup support requires an expensive substring match on the |
| 3394 |
server. If netgroups are not needed, this option can be disabled |
| 3395 |
to reduce the load on the LDAP server. |
| 3396 |
|
| 3397 |
* Sudo is once again able to open the sudoers file when the group |
| 3398 |
on sudoers doesn't match the expected value, so long as the file |
| 3399 |
is not group writable. |
| 3400 |
|
| 3401 |
* Sudo now installs an init.d script to clear the time stamp |
| 3402 |
directory at boot time on AIX and HP-UX systems. These systems |
| 3403 |
either lack /var/run or do not clear it on boot. |
| 3404 |
|
| 3405 |
* The JSON format used by "visudo -x" now properly supports the |
| 3406 |
negation operator. In addition, the Options object is now the |
| 3407 |
same for both Defaults and Cmnd_Specs. |
| 3408 |
|
| 3409 |
* Czech and Serbian translations for sudoers from translationproject.org. |
| 3410 |
|
| 3411 |
* Catalan translation for sudo from translationproject.org. |
| 3412 |
|
| 3413 |
What's new in Sudo 1.8.9p5? |
| 3414 |
|
| 3415 |
* Fixed a compilation error on AIX when LDAP support is enabled. |
| 3416 |
|
| 3417 |
* Fixed parsing of the "umask" defaults setting in sudoers. Bug #632. |
| 3418 |
|
| 3419 |
* Fixed a failed assertion when the "closefrom_override" defaults |
| 3420 |
setting is enabled in sudoers and sudo's -C flag is used. Bug #633. |
| 3421 |
|
| 3422 |
What's new in Sudo 1.8.9p4? |
| 3423 |
|
| 3424 |
* Fixed a bug where sudo could consume large amounts of CPU while |
| 3425 |
the command was running when I/O logging is not enabled. Bug #631 |
| 3426 |
|
| 3427 |
* Fixed a bug where sudo would exit with an error when the debug |
| 3428 |
level is set to util@debug or all@debug and I/O logging is not |
| 3429 |
enabled. The command would continue running after sudo exited. |
| 3430 |
|
| 3431 |
What's new in Sudo 1.8.9p3? |
| 3432 |
|
| 3433 |
* Fixed a bug introduced in sudo 1.8.9 that prevented the tty name |
| 3434 |
from being resolved properly on Linux systems. Bug #630. |
| 3435 |
|
| 3436 |
What's new in Sudo 1.8.9p2? |
| 3437 |
|
| 3438 |
* Updated config.guess, config.sub and libtool to support the ppc64le |
| 3439 |
architecture (IBM PowerPC Little Endian). |
| 3440 |
|
| 3441 |
What's new in Sudo 1.8.9p1? |
| 3442 |
|
| 3443 |
* Fixed a problem with gcc 4.8's handling of bit fields that could |
| 3444 |
lead to the noexec flag being enabled even when it was not |
| 3445 |
explicitly set. |
| 3446 |
|
| 3447 |
What's new in Sudo 1.8.9? |
| 3448 |
|
| 3449 |
* Reworked sudo's main event loop to use a simple event subsystem |
| 3450 |
using poll(2) or select(2) as the back end. |
| 3451 |
|
| 3452 |
* It is now possible to statically compile the sudoers plugin into |
| 3453 |
the sudo binary without disabling shared library support. The |
| 3454 |
sudo.conf file may still be used to configure other plugins. |
| 3455 |
|
| 3456 |
* Sudo can now be compiled again with a C preprocessor that does |
| 3457 |
not support variadic macros. |
| 3458 |
|
| 3459 |
* Visudo can now export a sudoers file in JSON format using the |
| 3460 |
new -x flag. |
| 3461 |
|
| 3462 |
* The locale is now set correctly again for visudo and sudoreplay. |
| 3463 |
|
| 3464 |
* The plugin API has been extended to allow the plugin to exclude |
| 3465 |
specific file descriptors from the "closefrom" range. |
| 3466 |
|
| 3467 |
* There is now a workaround for a Solaris-specific problem where |
| 3468 |
NOEXEC was overriding traditional root DAC behavior. |
| 3469 |
|
| 3470 |
* Add user netgroup filtering for SSSD. Previously, rules for |
| 3471 |
a netgroup were applied to all even when they did not belong |
| 3472 |
to the specified netgroup. |
| 3473 |
|
| 3474 |
* On systems with BSD login classes, if the user specified a group |
| 3475 |
(not a user) to run the command as, it was possible to specify |
| 3476 |
a different login class even when the command was not run as the |
| 3477 |
super user. |
| 3478 |
|
| 3479 |
* The closefrom() emulation on Mac OS X now uses /dev/fd if possible. |
| 3480 |
|
| 3481 |
* Fixed a bug where sudoedit would not update the original file |
| 3482 |
from the temporary when PAM or I/O logging is not enabled. |
| 3483 |
|
| 3484 |
* When recycling I/O logs, the log files are now truncated properly. |
| 3485 |
|
| 3486 |
* Fixes bugs #617, #621, #622, #623, #624, #625, #626 |
| 3487 |
|
| 3488 |
What's new in Sudo 1.8.8? |
| 3489 |
|
| 3490 |
* Removed a warning on PAM systems with stacked auth modules |
| 3491 |
where the first module on the stack does not succeed. |
| 3492 |
|
| 3493 |
* Sudo, sudoreplay and visudo now support GNU-style long options. |
| 3494 |
|
| 3495 |
* The -h (--host) option may now be used to specify a host name. |
| 3496 |
This is currently only used by the sudoers plugin in conjunction |
| 3497 |
with the -l (--list) option. |
| 3498 |
|
| 3499 |
* Program usage messages and manual SYNOPSIS sections have been |
| 3500 |
simplified. |
| 3501 |
|
| 3502 |
* Sudo's LDAP SASL support now works properly with Kerberos. |
| 3503 |
Previously, the SASL library was unable to locate the user's |
| 3504 |
credential cache. |
| 3505 |
|
| 3506 |
* It is now possible to set the nproc resource limit to unlimited |
| 3507 |
via pam_limits on Linux (bug #565). |
| 3508 |
|
| 3509 |
* New "pam_service" and "pam_login_service" sudoers options |
| 3510 |
that can be used to specify the PAM service name to use. |
| 3511 |
|
| 3512 |
* New "pam_session" and "pam_setcred" sudoers options that |
| 3513 |
can be used to disable PAM session and credential support. |
| 3514 |
|
| 3515 |
* The sudoers plugin now properly supports UIDs and GIDs |
| 3516 |
that are larger than 0x7fffffff on 32-bit platforms. |
| 3517 |
|
| 3518 |
* Fixed a visudo bug introduced in sudo 1.8.7 where per-group |
| 3519 |
Defaults entries would cause an internal error. |
| 3520 |
|
| 3521 |
* If the "tty_tickets" sudoers option is enabled (the default), |
| 3522 |
but there is no tty present, sudo will now use a ticket file |
| 3523 |
based on the parent process ID. This makes it possible to support |
| 3524 |
the normal timeout behavior for the session. |
| 3525 |
|
| 3526 |
* Fixed a problem running commands that change their process |
| 3527 |
group and then attempt to change the terminal settings when not |
| 3528 |
running the command in a pseudo-terminal. Previously, the process |
| 3529 |
would receive SIGTTOU since it was effectively a background |
| 3530 |
process. Sudo will now grant the child the controlling tty and |
| 3531 |
continue it when this happens. |
| 3532 |
|
| 3533 |
* The "closefrom_override" sudoers option may now be used in |
| 3534 |
a command-specified Defaults entry (bug #610). |
| 3535 |
|
| 3536 |
* Sudo's BSM audit support now works on Solaris 11. |
| 3537 |
|
| 3538 |
* Brazilian Portuguese translation for sudo and sudoers from |
| 3539 |
translationproject.org. |
| 3540 |
|
| 3541 |
* Czech translation for sudo from translationproject.org. |
| 3542 |
|
| 3543 |
* French translation for sudo from translationproject.org. |
| 3544 |
|
| 3545 |
* Sudo's noexec support on Mac OS X 10.4 and above now uses dynamic |
| 3546 |
symbol interposition instead of setting DYLD_FORCE_FLAT_NAMESPACE=1 |
| 3547 |
which causes issues with some programs. |
| 3548 |
|
| 3549 |
* Fixed visudo's -q (--quiet) flag, broken in sudo 1.8.6. |
| 3550 |
|
| 3551 |
* Root may no longer change its SELinux role without entering |
| 3552 |
a password. |
| 3553 |
|
| 3554 |
* Fixed a bug introduced in Sudo 1.8.7 where the indexes written |
| 3555 |
to the I/O log timing file are two greater than they should be. |
| 3556 |
Sudoreplay now contains a work-around to parse those files. |
| 3557 |
|
| 3558 |
* In sudoreplay's list mode, the "this" qualifier in "fromdate" |
| 3559 |
or "todate" expressions now behaves more sensibly. Previously, |
| 3560 |
it would often match a date that was "one more" than expected. |
| 3561 |
For example, "this week" now matches the current week instead |
| 3562 |
of the following week. |
| 3563 |
|
| 3564 |
What's new in Sudo 1.8.7? |
| 3565 |
|
| 3566 |
* The non-Unix group plugin is now supported when sudoers data |
| 3567 |
is stored in LDAP. |
| 3568 |
|
| 3569 |
* Sudo now uses a workaround for a locale bug on Solaris 11.0 |
| 3570 |
that prevents setuid programs like sudo from fully using locales. |
| 3571 |
|
| 3572 |
* User messages are now always displayed in the user's locale, |
| 3573 |
even when the same message is being logged or mailed in a |
| 3574 |
different locale. |
| 3575 |
|
| 3576 |
* Log files created by sudo now explicitly have the group set |
| 3577 |
to group ID 0 rather than relying on BSD group semantics (which |
| 3578 |
may not be the default). |
| 3579 |
|
| 3580 |
* A new "exec_background" sudoers option can be used to initially |
| 3581 |
run the command without read access to the terminal when running |
| 3582 |
a command in a pseudo-tty. If the command tries to read from |
| 3583 |
the terminal it will be stopped by the kernel (via SIGTTIN or |
| 3584 |
SIGTTOU) and sudo will immediately restart it as the foreground |
| 3585 |
process (if possible). This allows sudo to only pass terminal |
| 3586 |
input to the program if the program actually is expecting it. |
| 3587 |
Unfortunately, a few poorly-behaved programs (like "su" on most |
| 3588 |
Linux systems) do not handle SIGTTIN and SIGTTOU properly. |
| 3589 |
|
| 3590 |
* Sudo now uses an efficient group query to get all the groups |
| 3591 |
for a user instead of iterating over every record in the group |
| 3592 |
database on HP-UX and Solaris. |
| 3593 |
|
| 3594 |
* Sudo now produces better error messages when there is an error |
| 3595 |
in the sudo.conf file. |
| 3596 |
|
| 3597 |
* Two new settings have been added to sudo.conf to give the admin |
| 3598 |
better control of how group database queries are performed. The |
| 3599 |
"group_source" specifies how the group list for a user will be |
| 3600 |
determined. Legal values are "static" (use the kernel groups |
| 3601 |
list), "dynamic" (perform a group database query) and "adaptive" |
| 3602 |
(only perform a group database query if the kernel list is full). |
| 3603 |
The "max_groups" setting specifies the maximum number of groups |
| 3604 |
a user may belong to when performing a group database query. |
| 3605 |
|
| 3606 |
* The sudo.conf file now supports line continuation by using a |
| 3607 |
backslash as the last character on the line. |
| 3608 |
|
| 3609 |
* There is now a standalone sudo.conf manual page. |
| 3610 |
|
| 3611 |
* Sudo now stores its libexec files in a "sudo" sub-directory instead |
| 3612 |
of in libexec itself. For backward compatibility, if the plugin |
| 3613 |
is not found in the default plugin directory, sudo will check |
| 3614 |
the parent directory if the default directory ends in "/sudo". |
| 3615 |
|
| 3616 |
* The sudoers I/O logging plugin now logs the terminal size. |
| 3617 |
|
| 3618 |
* A new sudoers option "maxseq" can be used to limit the number of |
| 3619 |
I/O log entries that are stored. |
| 3620 |
|
| 3621 |
* The "system_group" and "group_file" sudoers group provider plugins |
| 3622 |
are now installed by default. |
| 3623 |
|
| 3624 |
* The list output (sudo -l) output from the sudoers plugin is now |
| 3625 |
less ambiguous when an entry includes different runas users. |
| 3626 |
The long list output (sudo -ll) for file-based sudoers is now |
| 3627 |
more consistent with the format of LDAP-based sudoers. |
| 3628 |
|
| 3629 |
* A UID may now be used in the sudoRunAsUser attributes for LDAP |
| 3630 |
sudoers. |
| 3631 |
|
| 3632 |
* Minor plugin API change: the close and version functions are now |
| 3633 |
optional. If the policy plugin does not provide a close function |
| 3634 |
and the command is not being run in a new pseudo-tty, sudo may |
| 3635 |
now execute the command directly instead of in a child process. |
| 3636 |
|
| 3637 |
* A new sudoers option "pam_session" can be used to disable sudo's |
| 3638 |
PAM session support. |
| 3639 |
|
| 3640 |
* On HP-UX systems, sudo will now use the pstat() function to |
| 3641 |
determine the tty instead of ttyname(). |
| 3642 |
|
| 3643 |
* Turkish translation for sudo and sudoers from translationproject.org. |
| 3644 |
|
| 3645 |
* Dutch translation for sudo and sudoers from translationproject.org. |
| 3646 |
|
| 3647 |
* Tivoli Directory Server client libraries may now be used with |
| 3648 |
HP-UX where libibmldap has a hidden dependency on libCsup. |
| 3649 |
|
| 3650 |
* The sudoers plugin will now ignore invalid domain names when |
| 3651 |
checking netgroup membership. Most Linux systems use the string |
| 3652 |
"(none)" for the NIS-style domain name instead of an empty string. |
| 3653 |
|
| 3654 |
* New support for specifying a SHA-2 digest along with the command |
| 3655 |
in sudoers. Supported hash types are sha224, sha256, sha384 and |
| 3656 |
sha512. See the description of Digest_Spec in the sudoers manual |
| 3657 |
or the description of sudoCommand in the sudoers.ldap manual for |
| 3658 |
details. |
| 3659 |
|
| 3660 |
* The paths to ldap.conf and ldap.secret may now be specified as |
| 3661 |
arguments to the sudoers plugin in the sudo.conf file. |
| 3662 |
|
| 3663 |
* Fixed potential false positives in visudo's alias cycle detection. |
| 3664 |
|
| 3665 |
* Fixed a problem where the time stamp file was being treated |
| 3666 |
as out of date on Linux systems where the change time on the |
| 3667 |
pseudo-tty device node can change after it is allocated. |
| 3668 |
|
| 3669 |
* Sudo now only builds Position Independent Executables (PIE) |
| 3670 |
by default on Linux systems and verifies that a trivial test |
| 3671 |
program builds and runs. |
| 3672 |
|
| 3673 |
* On Solaris 11.1 and higher, sudo binaries will now have the |
| 3674 |
ASLR tag enabled if supported by the linker. |
| 3675 |
|
| 3676 |
What's new in Sudo 1.8.6p8? |
| 3677 |
|
| 3678 |
* Terminal detection now works properly on 64-bit AIX kernels. |
| 3679 |
This was broken by the removal of the ttyname() fallback in Sudo |
| 3680 |
1.8.6p6. Sudo is now able to map an AIX 64-bit device number |
| 3681 |
to the corresponding device file in /dev. |
| 3682 |
|
| 3683 |
* Sudo now checks for crypt() returning NULL when performing |
| 3684 |
passwd-based authentication. |
| 3685 |
|
| 3686 |
What's new in Sudo 1.8.6p7? |
| 3687 |
|
| 3688 |
* A time stamp file with the date set to the epoch by "sudo -k" |
| 3689 |
is now completely ignored regardless of what the local clock is |
| 3690 |
set to. Previously, if the local clock was set to a value between |
| 3691 |
the epoch and the time stamp timeout value, a time stamp reset |
| 3692 |
by "sudo -k" would be considered current. |
| 3693 |
|
| 3694 |
* The tty-specific time stamp file now includes the session ID |
| 3695 |
of the sudo process that created it. If a process with the same |
| 3696 |
tty but a different session ID runs sudo, the user will now be |
| 3697 |
prompted for a password (assuming authentication is required for |
| 3698 |
the command). |
| 3699 |
|
| 3700 |
What's new in Sudo 1.8.6p6? |
| 3701 |
|
| 3702 |
* On systems where the controlling tty can be determined via /proc |
| 3703 |
or sysctl(), sudo will no longer fall back to using ttyname() |
| 3704 |
if the process has no controlling tty. This prevents sudo from |
| 3705 |
using a non-controlling tty for logging and time stamp purposes. |
| 3706 |
|
| 3707 |
What's new in Sudo 1.8.6p5? |
| 3708 |
|
| 3709 |
* Fixed a potential crash in visudo's alias cycle detection. |
| 3710 |
|
| 3711 |
* Improved performance on Solaris when retrieving the group list |
| 3712 |
for the target user. On systems with a large number of groups |
| 3713 |
where the group database is not local (NIS, LDAP, AD), fetching |
| 3714 |
the group list could take a minute or more. |
| 3715 |
|
| 3716 |
What's new in Sudo 1.8.6p4? |
| 3717 |
|
| 3718 |
* The -fstack-protector is now used when linking visudo, sudoreplay |
| 3719 |
and testsudoers. |
| 3720 |
|
| 3721 |
* Avoid building PIE binaries on FreeBSD/ia64 as they don't run |
| 3722 |
properly. |
| 3723 |
|
| 3724 |
* Fixed a crash in visudo strict mode when an unknown Defaults |
| 3725 |
setting is encountered. |
| 3726 |
|
| 3727 |
* Do not inform the user that the command was not permitted by the |
| 3728 |
policy if they do not successfully authenticate. This is a |
| 3729 |
regression introduced in sudo 1.8.6. |
| 3730 |
|
| 3731 |
* Allow sudo to be build with sss support without also including |
| 3732 |
ldap support. |
| 3733 |
|
| 3734 |
* Fixed running commands that need the terminal in the background |
| 3735 |
when I/O logging is enabled. E.g. "sudo vi &". When the command |
| 3736 |
is foregrounded, it will now resume properly. |
| 3737 |
|
| 3738 |
What's new in Sudo 1.8.6p3? |
| 3739 |
|
| 3740 |
* Fixed post-processing of the man pages on systems with legacy |
| 3741 |
versions of sed. |
| 3742 |
|
| 3743 |
* Fixed "sudoreplay -l" on Linux systems with file systems that |
| 3744 |
set DT_UNKNOWN in the d_type field of struct dirent. |
| 3745 |
|
| 3746 |
What's new in Sudo 1.8.6p2? |
| 3747 |
|
| 3748 |
* Fixed suspending a command after it has already been resumed |
| 3749 |
once when I/O logging (or use_pty) is not enabled. |
| 3750 |
This was a regression introduced in version 1.8.6. |
| 3751 |
|
| 3752 |
What's new in Sudo 1.8.6p1? |
| 3753 |
|
| 3754 |
* Fixed the setting of LOGNAME, USER and USERNAME variables in the |
| 3755 |
command's environment when env_reset is enabled (the default). |
| 3756 |
This was a regression introduced in version 1.8.6. |
| 3757 |
|
| 3758 |
* Sudo now honors SUCCESS=return in /etc/nsswitch.conf. |
| 3759 |
|
| 3760 |
What's new in Sudo 1.8.6? |
| 3761 |
|
| 3762 |
* Sudo is now built with the -fstack-protector flag if the |
| 3763 |
compiler supports it. Also, the -zrelro linker flag is used if |
| 3764 |
supported. The --disable-hardening configure option can be used |
| 3765 |
to build sudo without stack smashing protection. |
| 3766 |
|
| 3767 |
* Sudo is now built as a Position Independent Executable (PIE) |
| 3768 |
if supported by the compiler and linker. |
| 3769 |
|
| 3770 |
* If the user is a member of the "exempt" group in sudoers, they |
| 3771 |
will no longer be prompted for a password even if the -k flag |
| 3772 |
is specified with the command. This makes "sudo -k command" |
| 3773 |
consistent with the behavior one would get if the user ran "sudo |
| 3774 |
-k" immediately before running the command. |
| 3775 |
|
| 3776 |
* The sudoers file may now be a symbolic link. Previously, sudo |
| 3777 |
would refuse to read sudoers unless it was a regular file. |
| 3778 |
|
| 3779 |
* The sudoreplay command can now properly replay sessions where |
| 3780 |
no tty was present. |
| 3781 |
|
| 3782 |
* The sudoers plugin now takes advantage of symbol visibility |
| 3783 |
controls when supported by the compiler or linker. As a result, |
| 3784 |
only a small number of symbols are exported which significantly |
| 3785 |
reduces the chances of a conflict with other shared objects. |
| 3786 |
|
| 3787 |
* Improved support for the Tivoli Directory Server LDAP client |
| 3788 |
libraries. This includes support for using LDAP over SSL (ldaps) |
| 3789 |
as well as support for the BIND_TIMELIMIT, TLS_KEY and TLS_CIPHERS |
| 3790 |
ldap.conf options. A new ldap.conf option, TLS_KEYPW can be |
| 3791 |
used to specify a password to decrypt the key database. |
| 3792 |
|
| 3793 |
* When constructing a time filter for use with LDAP sudoNotBefore |
| 3794 |
and sudoNotAfter attributes, the current time now includes tenths |
| 3795 |
of a second. This fixes a problem with timed entries on Active |
| 3796 |
Directory. |
| 3797 |
|
| 3798 |
* If a user fails to authenticate and the command would be rejected |
| 3799 |
by sudoers, it is now logged with "command not allowed" instead |
| 3800 |
of "N incorrect password attempts". Likewise, the "mail_no_perms" |
| 3801 |
sudoers option now takes precedence over "mail_badpass". |
| 3802 |
|
| 3803 |
* The sudo manuals are now formatted using the mdoc macros. Versions |
| 3804 |
using the legacy man macros are provided for systems that lack mdoc. |
| 3805 |
|
| 3806 |
* New support for Solaris privilege sets. This makes it possible |
| 3807 |
to specify fine-grained privileges in the sudoers file on Solaris |
| 3808 |
10 and above. A Runas_Spec that contains no Runas_Lists can be |
| 3809 |
used to give a user the ability to run a command as themselves |
| 3810 |
but with an expanded privilege set. |
| 3811 |
|
| 3812 |
* Fixed a problem with the reboot and shutdown commands on some |
| 3813 |
systems (such as HP-UX and BSD). On these systems, reboot sends |
| 3814 |
all processes (except itself) SIGTERM. When sudo received |
| 3815 |
SIGTERM, it would relay it to the reboot process, thus killing |
| 3816 |
reboot before it had a chance to actually reboot the system. |
| 3817 |
|
| 3818 |
* Support for using the System Security Services Daemon (SSSD) as |
| 3819 |
a source of sudoers data. |
| 3820 |
|
| 3821 |
* Slovenian translation for sudo and sudoers from translationproject.org. |
| 3822 |
|
| 3823 |
* Visudo will now warn about unknown Defaults entries that are |
| 3824 |
per-host, per-user, per-runas or per-command. |
| 3825 |
|
| 3826 |
* Fixed a race condition that could cause sudo to receive SIGTTOU |
| 3827 |
(and stop) when resuming a shell that was run via sudo when I/O |
| 3828 |
logging (and use_pty) is not enabled. |
| 3829 |
|
| 3830 |
* Sending SIGTSTP directly to the sudo process will now suspend the |
| 3831 |
running command when I/O logging (and use_pty) is not enabled. |
| 3832 |
|
| 3833 |
What's new in Sudo 1.8.5p3? |
| 3834 |
|
| 3835 |
* Fixed the loading of I/O plugins that conform to a plugin API |
| 3836 |
version older than 1.2. |
| 3837 |
|
| 3838 |
What's new in Sudo 1.8.5p2? |
| 3839 |
|
| 3840 |
* Fixed use of the SUDO_ASKPASS environment variable which was |
| 3841 |
broken in Sudo 1.8.5. |
| 3842 |
|
| 3843 |
* Fixed a problem reading the sudoers file when the file mode is |
| 3844 |
more restrictive than the expected mode. For example, when the |
| 3845 |
expected sudoers file mode is 0440 but the actual mode is 0400. |
| 3846 |
|
| 3847 |
What's new in Sudo 1.8.5p1? |
| 3848 |
|
| 3849 |
* Fixed a bug that prevented files in an include directory from |
| 3850 |
being evaluated. |
| 3851 |
|
| 3852 |
What's new in Sudo 1.8.5? |
| 3853 |
|
| 3854 |
* When "noexec" is enabled, sudo_noexec.so will now be prepended |
| 3855 |
to any existing LD_PRELOAD variable instead of replacing it. |
| 3856 |
|
| 3857 |
* The sudo_noexec.so shared library now wraps the execvpe(), |
| 3858 |
exect(), posix_spawn() and posix_spawnp() functions. |
| 3859 |
|
| 3860 |
* The user/group/mode checks on sudoers files have been relaxed. |
| 3861 |
As long as the file is owned by the sudoers UID, not world-writable |
| 3862 |
and not writable by a group other than the sudoers GID, the file |
| 3863 |
is considered OK. Note that visudo will still set the mode to |
| 3864 |
the value specified at configure time. |
| 3865 |
|
| 3866 |
* It is now possible to specify the sudoers path, UID, GID and |
| 3867 |
file mode as options to the plugin in the sudo.conf file. |
| 3868 |
|
| 3869 |
* Croatian, Galician, German, Lithuanian, Swedish and Vietnamese |
| 3870 |
translations from translationproject.org. |
| 3871 |
|
| 3872 |
* /etc/environment is no longer read directly on Linux systems |
| 3873 |
when PAM is used. Sudo now merges the PAM environment into the |
| 3874 |
user's environment which is typically set by the pam_env module. |
| 3875 |
|
| 3876 |
* The initial environment created when env_reset is in effect now |
| 3877 |
includes the contents of /etc/environment on AIX systems and the |
| 3878 |
"setenv" and "path" entries from /etc/login.conf on BSD systems. |
| 3879 |
|
| 3880 |
* The plugin API has been extended in three ways. First, options |
| 3881 |
specified in sudo.conf after the plugin pathname are passed to |
| 3882 |
the plugin's open function. Second, sudo has limited support |
| 3883 |
for hooks that can be used by plugins. Currently, the hooks are |
| 3884 |
limited to environment handling functions. Third, the init_session |
| 3885 |
policy plugin function is passed a pointer to the user environment |
| 3886 |
which can be updated during session setup. The plugin API version |
| 3887 |
has been incremented to version 1.2. See the sudo_plugin manual |
| 3888 |
for more information. |
| 3889 |
|
| 3890 |
* The policy plugin's init_session function is now called by the |
| 3891 |
parent sudo process, not the child process that executes the |
| 3892 |
command. This allows the PAM session to be open and closed in |
| 3893 |
the same process, which some PAM modules require. |
| 3894 |
|
| 3895 |
* Fixed parsing of "Path askpass" and "Path noexec" in sudo.conf, |
| 3896 |
which was broken in version 1.8.4. |
| 3897 |
|
| 3898 |
* On systems with an SVR4-style /proc file system, the /proc/pid/psinfo |
| 3899 |
file is now uses to determine the controlling terminal, if possible. |
| 3900 |
This allows tty-based tickets to work properly even when, e.g., |
| 3901 |
standard input, output and error are redirected to /dev/null. |
| 3902 |
|
| 3903 |
* The output of "sudoreplay -l" is now sorted by file name (or |
| 3904 |
sequence number). Previously, entries were displayed in the |
| 3905 |
order in which they were found on the file system. |
| 3906 |
|
| 3907 |
* Sudo now behaves properly when I/O logging is enabled and the |
| 3908 |
controlling terminal is revoked (e.g., the running sshd is killed). |
| 3909 |
Previously, sudo may have exited without calling the I/O plugin's |
| 3910 |
close function which can lead to an incomplete I/O log. |
| 3911 |
|
| 3912 |
* Sudo can now detect when a user has logged out and back in again |
| 3913 |
on Solaris 11, just like it can on Solaris 10. |
| 3914 |
|
| 3915 |
* The built-in zlib included with Sudo has been upgraded to version |
| 3916 |
1.2.6. |
| 3917 |
|
| 3918 |
* Setting the SSL parameter to start_tls in ldap.conf now works |
| 3919 |
properly when using Mozilla-based SDKs that support the |
| 3920 |
ldap_start_tls_s() function. |
| 3921 |
|
| 3922 |
* The TLS_CHECKPEER parameter in ldap.conf now works when the |
| 3923 |
Mozilla NSS crypto back-end is used with OpenLDAP. |
| 3924 |
|
| 3925 |
* A new group provider plugin, system_group, is included which |
| 3926 |
performs group look ups by name using the system groups database. |
| 3927 |
This can be used to restore the pre-1.7.3 sudo group lookup |
| 3928 |
behavior. |
| 3929 |
|
| 3930 |
What's new in Sudo 1.8.4p5? |
| 3931 |
|
| 3932 |
* Fixed a bug when matching against an IP address with an associated |
| 3933 |
netmask in the sudoers file. In certain circumstances, this |
| 3934 |
could allow users to run commands on hosts they are not authorized |
| 3935 |
for. |
| 3936 |
|
| 3937 |
What's new in Sudo 1.8.4p4? |
| 3938 |
|
| 3939 |
* Fixed a bug introduced in Sudo 1.8.4 which prevented "sudo -v" |
| 3940 |
from working. |
| 3941 |
|
| 3942 |
What's new in Sudo 1.8.4p3? |
| 3943 |
|
| 3944 |
* Fixed a crash on FreeBSD when no tty is present. |
| 3945 |
|
| 3946 |
* Fixed a bug introduced in Sudo 1.8.4 that allowed users to |
| 3947 |
specify environment variables to set on the command line without |
| 3948 |
having sudo "ALL" permissions or the "SETENV" tag. |
| 3949 |
|
| 3950 |
* When visudo is run with the -c (check) option, the sudoers |
| 3951 |
file(s) owner and mode are now also checked unless the -f option |
| 3952 |
was specified. |
| 3953 |
|
| 3954 |
What's new in Sudo 1.8.4p2? |
| 3955 |
|
| 3956 |
* Fixed a bug introduced in Sudo 1.8.4 where insufficient space |
| 3957 |
was allocated for group IDs in the LDAP filter. |
| 3958 |
|
| 3959 |
* Fixed a bug introduced in Sudo 1.8.4 where the path to sudo.conf |
| 3960 |
was "/sudo.conf" instead of "/etc/sudo.conf". |
| 3961 |
|
| 3962 |
* Fixed a bug introduced in Sudo 1.8.4 which could cause a hang |
| 3963 |
when I/O logging is enabled and input is from a pipe or file. |
| 3964 |
|
| 3965 |
What's new in Sudo 1.8.4p1? |
| 3966 |
|
| 3967 |
* Fixed a bug introduced in sudo 1.8.4 that broke adding to or |
| 3968 |
deleting from the env_keep, env_check and env_delete lists in |
| 3969 |
sudoers on some platforms. |
| 3970 |
|
| 3971 |
What's new in Sudo 1.8.4? |
| 3972 |
|
| 3973 |
* The -D flag in sudo has been replaced with a more general debugging |
| 3974 |
framework that is configured in sudo.conf. |
| 3975 |
|
| 3976 |
* Fixed a false positive in visudo strict mode when aliases are |
| 3977 |
in use. |
| 3978 |
|
| 3979 |
* Fixed a crash with "sudo -i" when a runas group was specified |
| 3980 |
without a runas user. |
| 3981 |
|
| 3982 |
* The line on which a syntax error is reported in the sudoers file |
| 3983 |
is now more accurate. Previously it was often off by a line. |
| 3984 |
|
| 3985 |
* Fixed a bug where stack garbage could be printed at the end of |
| 3986 |
the lecture when the "lecture_file" option was enabled. |
| 3987 |
|
| 3988 |
* "make install" now honors the LINGUAS environment variable. |
| 3989 |
|
| 3990 |
* The #include and #includedir directives in sudoers now support |
| 3991 |
relative paths. If the path is not fully qualified it is expected |
| 3992 |
to be located in the same directory of the sudoers file that is |
| 3993 |
including it. |
| 3994 |
|
| 3995 |
* Serbian and Spanish translations for sudo from translationproject.org. |
| 3996 |
|
| 3997 |
* LDAP-based sudoers may now access by group ID in addition to |
| 3998 |
group name. |
| 3999 |
|
| 4000 |
* visudo will now fix the mode on the sudoers file even if no changes |
| 4001 |
are made unless the -f option is specified. |
| 4002 |
|
| 4003 |
* The "use_loginclass" sudoers option works properly again. |
| 4004 |
|
| 4005 |
* On systems that use login.conf, "sudo -i" now sets environment |
| 4006 |
variables based on login.conf. |
| 4007 |
|
| 4008 |
* For LDAP-based sudoers, values in the search expression are now |
| 4009 |
escaped as per RFC 4515. |
| 4010 |
|
| 4011 |
* The plugin close function is now properly called when a login |
| 4012 |
session is killed (as opposed to the actual command being killed). |
| 4013 |
This can happen when an ssh session is disconnected or the |
| 4014 |
terminal window is closed. |
| 4015 |
|
| 4016 |
* The deprecated "noexec_file" sudoers option is no longer supported. |
| 4017 |
|
| 4018 |
* Fixed a race condition when I/O logging is not enabled that could |
| 4019 |
result in tty-generated signals (e.g., control-C) being received |
| 4020 |
by the command twice. |
| 4021 |
|
| 4022 |
* If none of the standard input, output or error are connected to |
| 4023 |
a tty device, sudo will now check its parent's standard input, |
| 4024 |
output or error for the tty name on systems with /proc and BSD |
| 4025 |
systems that support the KERN_PROC_PID sysctl. This allows |
| 4026 |
tty-based tickets to work properly even when, e.g., standard |
| 4027 |
input, output and error are redirected to /dev/null. |
| 4028 |
|
| 4029 |
* Added the --enable-kerb5-instance configure option to allow |
| 4030 |
people using Kerberos V authentication to specify a custom |
| 4031 |
instance so the principal name can be, e.g., "username/sudo" |
| 4032 |
similar to how ksu uses "username/root". |
| 4033 |
|
| 4034 |
* Fixed a bug where a pattern like "/usr/*" included /usr/bin/ in |
| 4035 |
the results, which would be incorrectly be interpreted as if the |
| 4036 |
sudoers file had specified a directory. |
| 4037 |
|
| 4038 |
* "visudo -c" will now list any include files that were checked |
| 4039 |
in addition to the main sudoers file when everything parses OK. |
| 4040 |
|
| 4041 |
* Users that only have read-only access to the sudoers file may |
| 4042 |
now run "visudo -c". Previously, write permissions were required |
| 4043 |
even though no writing is down in check-only mode. |
| 4044 |
|
| 4045 |
* It is now possible to prevent the disabling of core dumps from |
| 4046 |
within sudo itself by adding a line to the sudo.conf file like |
| 4047 |
"Set disable_coredump false". |
| 4048 |
|
| 4049 |
What's new in Sudo 1.8.3p2? |
| 4050 |
|
| 4051 |
* Fixed a format string vulnerability when the sudo binary (or a |
| 4052 |
symbolic link to the sudo binary) contains printf format escapes |
| 4053 |
and the -D (debugging) flag is used. |
| 4054 |
|
| 4055 |
What's new in Sudo 1.8.3p1? |
| 4056 |
|
| 4057 |
* Fixed a crash in the monitor process on Solaris when NOPASSWD |
| 4058 |
was specified or when authentication was disabled. |
| 4059 |
|
| 4060 |
* Fixed matching of a Runas_Alias in the group section of a |
| 4061 |
Runas_Spec. |
| 4062 |
|
| 4063 |
What's new in Sudo 1.8.3? |
| 4064 |
|
| 4065 |
* Fixed expansion of strftime() escape sequences in the "log_dir" |
| 4066 |
sudoers setting. |
| 4067 |
|
| 4068 |
* Esperanto, Italian and Japanese translations from translationproject.org. |
| 4069 |
|
| 4070 |
* Sudo will now use PAM by default on AIX 6 and higher. |
| 4071 |
|
| 4072 |
* Added --enable-werror configure option for gcc's -Werror flag. |
| 4073 |
|
| 4074 |
* Visudo no longer assumes all editors support the +linenumber |
| 4075 |
command line argument. It now uses a allowlist of editors known |
| 4076 |
to support the option. |
| 4077 |
|
| 4078 |
* Fixed matching of network addresses when a netmask is specified |
| 4079 |
but the address is not the first one in the CIDR block. |
| 4080 |
|
| 4081 |
* The configure script now check whether or not errno.h declares |
| 4082 |
the errno variable. Previously, sudo would always declare errno |
| 4083 |
itself for older systems that don't declare it in errno.h. |
| 4084 |
|
| 4085 |
* The NOPASSWD tag is now honored for denied commands too, which |
| 4086 |
matches historic sudo behavior (prior to sudo 1.7.0). |
| 4087 |
|
| 4088 |
* Sudo now honors the "DEREF" setting in ldap.conf which controls |
| 4089 |
how alias dereferencing is done during an LDAP search. |
| 4090 |
|
| 4091 |
* A symbol conflict with the pam_ssh_agent_auth PAM module that |
| 4092 |
would cause a crash been resolved. |
| 4093 |
|
| 4094 |
* The inability to load a group provider plugin is no longer |
| 4095 |
a fatal error. |
| 4096 |
|
| 4097 |
* A potential crash in the utmp handling code has been fixed. |
| 4098 |
|
| 4099 |
* Two PAM session issues have been resolved. In previous versions |
| 4100 |
of sudo, the PAM session was opened as one user and closed as |
| 4101 |
another. Additionally, if no authentication was performed, the |
| 4102 |
PAM session would never be closed. |
| 4103 |
|
| 4104 |
* Sudo will now work correctly with LDAP-based sudoers using TLS |
| 4105 |
or SSL on Debian systems. |
| 4106 |
|
| 4107 |
* The LOGNAME, USER and USERNAME environment variables are preserved |
| 4108 |
correctly again in sudoedit mode. |
| 4109 |
|
| 4110 |
What's new in Sudo 1.8.2? |
| 4111 |
|
| 4112 |
* Sudo, visudo, sudoreplay and the sudoers plug-in now have natural |
| 4113 |
language support (NLS). This can be disabled by passing configure |
| 4114 |
the --disable-nls option. Sudo will use gettext(), if available, |
| 4115 |
to display translated messages. All translations are coordinated |
| 4116 |
via The Translation Project, https://translationproject.org/. |
| 4117 |
|
| 4118 |
* Plug-ins are now loaded with the RTLD_GLOBAL flag instead of |
| 4119 |
RTLD_LOCAL. This fixes missing symbol problems in PAM modules |
| 4120 |
on certain platforms, such as FreeBSD and SuSE Linux Enterprise. |
| 4121 |
|
| 4122 |
* I/O logging is now supported for commands run in background mode |
| 4123 |
(using sudo's -b flag). |
| 4124 |
|
| 4125 |
* Group ownership of the sudoers file is now only enforced when |
| 4126 |
the file mode on sudoers allows group readability or writability. |
| 4127 |
|
| 4128 |
* Visudo now checks the contents of an alias and warns about cycles |
| 4129 |
when the alias is expanded. |
| 4130 |
|
| 4131 |
* If the user specifies a group via sudo's -g option that matches |
| 4132 |
the target user's group in the password database, it is now |
| 4133 |
allowed even if no groups are present in the Runas_Spec. |
| 4134 |
|
| 4135 |
* The sudo Makefiles now have more complete dependencies which are |
| 4136 |
automatically generated instead of being maintained manually. |
| 4137 |
|
| 4138 |
* The "use_pty" sudoers option is now correctly passed back to the |
| 4139 |
sudo front end. This was missing in previous versions of sudo |
| 4140 |
1.8 which prevented "use_pty" from being honored. |
| 4141 |
|
| 4142 |
* "sudo -i command" now works correctly with the bash version |
| 4143 |
2.0 and higher. Previously, the .bash_profile would not be |
| 4144 |
sourced prior to running the command unless bash was built with |
| 4145 |
NON_INTERACTIVE_LOGIN_SHELLS defined. |
| 4146 |
|
| 4147 |
* When matching groups in the sudoers file, sudo will now match |
| 4148 |
based on the name of the group instead of the group ID. This can |
| 4149 |
substantially reduce the number of group lookups for sudoers |
| 4150 |
files that contain a large number of groups. |
| 4151 |
|
| 4152 |
* Multi-factor authentication is now supported on AIX. |
| 4153 |
|
| 4154 |
* Added support for non-RFC 4517 compliant LDAP servers that require |
| 4155 |
that seconds be present in a timestamp, such as Tivoli Directory Server. |
| 4156 |
|
| 4157 |
* If the group vector is to be preserved, the PATH search for the |
| 4158 |
command is now done with the user's original group vector. |
| 4159 |
|
| 4160 |
* For LDAP-based sudoers, the "runas_default" sudoOption now works |
| 4161 |
properly in a sudoRole that contains a sudoCommand. |
| 4162 |
|
| 4163 |
* Spaces in command line arguments for "sudo -s" and "sudo -i" are |
| 4164 |
now escaped with a backslash when checking the security policy. |
| 4165 |
|
| 4166 |
What's new in Sudo 1.8.1p2? |
| 4167 |
|
| 4168 |
* Two-character CIDR-style IPv4 netmasks are now matched correctly |
| 4169 |
in the sudoers file. |
| 4170 |
|
| 4171 |
* A build error with MIT Kerberos V has been resolved. |
| 4172 |
|
| 4173 |
* A crash on HP-UX in the sudoers plugin when wildcards are |
| 4174 |
present in the sudoers file has been resolved. |
| 4175 |
|
| 4176 |
* Sudo now works correctly on Tru64 Unix again. |
| 4177 |
|
| 4178 |
What's new in Sudo 1.8.1p1? |
| 4179 |
|
| 4180 |
* Fixed a problem on AIX where sudo was unable to set the final |
| 4181 |
UID if the PAM module modified the effective UID. |
| 4182 |
|
| 4183 |
* A non-existent includedir is now treated the same as an empty |
| 4184 |
directory and not reported as an error. |
| 4185 |
|
| 4186 |
* Removed extraneous parens in LDAP filter when sudoers_search_filter |
| 4187 |
is enabled that can cause an LDAP search error. |
| 4188 |
|
| 4189 |
* Fixed a "make -j" problem for "make install". |
| 4190 |
|
| 4191 |
What's new in Sudo 1.8.1? |
| 4192 |
|
| 4193 |
* A new LDAP setting, sudoers_search_filter, has been added to |
| 4194 |
ldap.conf. This setting can be used to restrict the set of |
| 4195 |
records returned by the LDAP query. Based on changes from Matthew |
| 4196 |
Thomas. |
| 4197 |
|
| 4198 |
* White space is now permitted within a User_List when used in |
| 4199 |
conjunction with a per-user Defaults definition. |
| 4200 |
|
| 4201 |
* A group ID (%#GID) may now be specified in a User_List or Runas_List. |
| 4202 |
Likewise, for non-Unix groups the syntax is %:#GID. |
| 4203 |
|
| 4204 |
* Support for double-quoted words in the sudoers file has been fixed. |
| 4205 |
The change in 1.7.5 for escaping the double quote character |
| 4206 |
caused the double quoting to only be available at the beginning |
| 4207 |
of an entry. |
| 4208 |
|
| 4209 |
* The fix for resuming a suspended shell in 1.7.5 caused problems |
| 4210 |
with resuming non-shells on Linux. Sudo will now save the process |
| 4211 |
group ID of the program it is running on suspend and restore it |
| 4212 |
when resuming, which fixes both problems. |
| 4213 |
|
| 4214 |
* A bug that could result in corrupted output in "sudo -l" has been |
| 4215 |
fixed. |
| 4216 |
|
| 4217 |
* Sudo will now create an entry in the utmp (or utmpx) file when |
| 4218 |
allocating a pseudo-tty (e.g., when logging I/O). The "set_utmp" |
| 4219 |
and "utmp_runas" sudoers file options can be used to control this. |
| 4220 |
Other policy plugins may use the "set_utmp" and "utmp_user" |
| 4221 |
entries in the command_info list. |
| 4222 |
|
| 4223 |
* The sudoers policy now stores the TSID field in the logs |
| 4224 |
even when the "iolog_file" sudoers option is defined to a value |
| 4225 |
other than %{sessid}. Previously, the TSID field was only |
| 4226 |
included in the log file when the "iolog_file" option was set |
| 4227 |
to its default value. |
| 4228 |
|
| 4229 |
* The sudoreplay utility now supports arbitrary session IDs. |
| 4230 |
Previously, it would only work with the base-36 session IDs |
| 4231 |
that the sudoers plugin uses by default. |
| 4232 |
|
| 4233 |
* Sudo now passes "run_shell=true" to the policy plugin in the |
| 4234 |
settings list when sudo's -s command line option is specified. |
| 4235 |
The sudoers policy plugin uses this to implement the "set_home" |
| 4236 |
sudoers option which was missing from sudo 1.8.0. |
| 4237 |
|
| 4238 |
* The "noexec" functionality has been moved out of the sudoers |
| 4239 |
policy plugin and into the sudo front-end, which matches the |
| 4240 |
behavior documented in the plugin writer's guide. As a result, |
| 4241 |
the path to the noexec file is now specified in the sudo.conf |
| 4242 |
file instead of the sudoers file. |
| 4243 |
|
| 4244 |
* On Solaris 10, the PRIV_PROC_EXEC privilege is now used to |
| 4245 |
implement the "noexec" feature. Previously, this was implemented |
| 4246 |
via the LD_PRELOAD environment variable. |
| 4247 |
|
| 4248 |
* The exit values for "sudo -l", "sudo -v" and "sudo -l command" |
| 4249 |
have been fixed in the sudoers policy plugin. |
| 4250 |
|
| 4251 |
* The sudoers policy plugin now passes the login class, if any, |
| 4252 |
back to the sudo front-end. |
| 4253 |
|
| 4254 |
* The sudoers policy plugin was not being linked with requisite |
| 4255 |
libraries in certain configurations. |
| 4256 |
|
| 4257 |
* Sudo now parses command line arguments before loading any plugins. |
| 4258 |
This allows "sudo -V" or "sudo -h" to work even if there is a problem |
| 4259 |
with sudo.conf |
| 4260 |
|
| 4261 |
* Plugins are now linked with the static version of libgcc to allow |
| 4262 |
the plugin to run on a system where no shared libgcc is installed, |
| 4263 |
or where it is installed in a different location. |
| 4264 |
|
| 4265 |
What's new in Sudo 1.8.0? |
| 4266 |
|
| 4267 |
* Sudo has been refactored to use a modular framework that can |
| 4268 |
support third-party policy and I/O logging plugins. The default |
| 4269 |
plugin is "sudoers" which provides the traditional sudo functionality. |
| 4270 |
See the sudo_plugin manual for details on the plugin API and the |
| 4271 |
sample in the plugins directory for a simple example. |
| 4272 |
|
| 4273 |
What's new in Sudo 1.7.5? |
| 4274 |
|
| 4275 |
* When using visudo in check mode, a file named "-" may be used to |
| 4276 |
check sudoers data on the standard input. |
| 4277 |
|
| 4278 |
* Sudo now only fetches shadow password entries when using the |
| 4279 |
password database directly for authentication. |
| 4280 |
|
| 4281 |
* Password and group entries are now cached using the same key |
| 4282 |
that was used to look them up. This fixes a problem when looking |
| 4283 |
up entries by name if the name in the retrieved entry does not |
| 4284 |
match the name used to look it up. This may happen on some systems |
| 4285 |
that do case insensitive lookups or that truncate long names. |
| 4286 |
|
| 4287 |
* GCC will no longer display warnings on glibc systems that use |
| 4288 |
the warn_unused_result attribute for write(2) and other system calls. |
| 4289 |
|
| 4290 |
* If a PAM account management module denies access, sudo now prints |
| 4291 |
a more useful error message and stops trying to validate the user. |
| 4292 |
|
| 4293 |
* Fixed a potential hang on idle systems when the sudo-run process |
| 4294 |
exits immediately. |
| 4295 |
|
| 4296 |
* Sudo now includes a copy of zlib that will be used on systems |
| 4297 |
that do not have zlib installed. |
| 4298 |
|
| 4299 |
* The --with-umask-override configure flag has been added to enable |
| 4300 |
the "umask_override" sudoers Defaults option at build time. |
| 4301 |
|
| 4302 |
* Sudo now unblocks all signals on startup to avoid problems caused |
| 4303 |
by the parent process changing the default signal mask. |
| 4304 |
|
| 4305 |
* LDAP Sudoers entries may now specify a time period for which |
| 4306 |
the entry is valid. This requires an updated sudoers schema |
| 4307 |
that includes the sudoNotBefore and sudoNotAfter attributes. |
| 4308 |
Support for timed entries must be explicitly enabled in the |
| 4309 |
ldap.conf file. Based on changes from Andreas Mueller. |
| 4310 |
|
| 4311 |
* LDAP Sudoers entries may now specify a sudoOrder attribute that |
| 4312 |
determines the order in which matching entries are applied. The |
| 4313 |
last matching entry is used, just like file-based sudoers. This |
| 4314 |
requires an updated sudoers schema that includes the sudoOrder |
| 4315 |
attribute. Based on changes from Andreas Mueller. |
| 4316 |
|
| 4317 |
* When run as sudoedit, or when given the -e flag, sudo now treats |
| 4318 |
command line arguments as pathnames. This means that slashes |
| 4319 |
in the sudoers file entry must explicitly match slashes in |
| 4320 |
the command line arguments. As a result, and entry such as: |
| 4321 |
user ALL = sudoedit /etc/* |
| 4322 |
will allow editing of /etc/motd but not /etc/security/default. |
| 4323 |
|
| 4324 |
* NETWORK_TIMEOUT is now an alias for BIND_TIMELIMIT in ldap.conf for |
| 4325 |
compatibility with OpenLDAP configuration files. |
| 4326 |
|
| 4327 |
* The LDAP API TIMEOUT parameter is now honored in ldap.conf. |
| 4328 |
|
| 4329 |
* The I/O log directory may now be specified in the sudoers file. |
| 4330 |
|
| 4331 |
* Sudo will no longer refuse to run if the sudoers file is writable |
| 4332 |
by root. |
| 4333 |
|
| 4334 |
* Sudo now performs command line escaping for "sudo -s" and "sudo -i" |
| 4335 |
after validating the command so the sudoers entries do not need |
| 4336 |
to include the backslashes. |
| 4337 |
|
| 4338 |
* Logging and email sending are now done in the locale specified |
| 4339 |
by the "sudoers_locale" setting ("C" by default). Email send by |
| 4340 |
sudo now includes MIME headers when "sudoers_locale" is not "C". |
| 4341 |
|
| 4342 |
* The configure script has a new option, --disable-env-reset, to |
| 4343 |
allow one to change the default for the sudoers Default setting |
| 4344 |
"env_reset" at compile time. |
| 4345 |
|
| 4346 |
* When logging "sudo -l command", sudo will now prepend "list " |
| 4347 |
to the command in the log line to distinguish between an |
| 4348 |
actual command invocation in the logs. |
| 4349 |
|
| 4350 |
* Double-quoted group and user names may now include escaped double |
| 4351 |
quotes as part of the name. Previously this was a parse error. |
| 4352 |
|
| 4353 |
* Sudo once again restores the state of the signal handlers it |
| 4354 |
modifies before executing the command. This allows sudo to be |
| 4355 |
used with the nohup command. |
| 4356 |
|
| 4357 |
* Resuming a suspended shell now works properly when I/O logging |
| 4358 |
is not enabled (the I/O logging case was already correct). |
| 4359 |
|
| 4360 |
What's new in Sudo 1.7.4p6? |
| 4361 |
|
| 4362 |
* A bug has been fixed in the I/O logging support that could cause |
| 4363 |
visual artifacts in full-screen programs such as text editors. |
| 4364 |
|
| 4365 |
What's new in Sudo 1.7.4p5? |
| 4366 |
|
| 4367 |
* A bug has been fixed that would allow a command to be run without the |
| 4368 |
user entering a password when sudo's -g flag is used without the -u flag. |
| 4369 |
|
| 4370 |
* If user has no supplementary groups, sudo will now fall back on checking |
| 4371 |
the group file explicitly, which restores historic sudo behavior. |
| 4372 |
|
| 4373 |
* A crash has been fixed when sudo's -g flag is used without the -u flag |
| 4374 |
and the sudoers file contains an entry with no runas user or group listed. |
| 4375 |
|
| 4376 |
* A crash has been fixed when the Solaris project support is enabled |
| 4377 |
and sudo's -g flag is used without the -u flag. |
| 4378 |
|
| 4379 |
* Sudo no longer exits with an error when support for auditing is |
| 4380 |
compiled in but auditing is not enabled. |
| 4381 |
|
| 4382 |
* Fixed a bug introduced in sudo 1.7.3 where the ticket file was not |
| 4383 |
being honored when the "targetpw" sudoers Defaults option was enabled. |
| 4384 |
|
| 4385 |
* The LOG_INPUT and LOG_OUTPUT tags in sudoers are now parsed correctly. |
| 4386 |
|
| 4387 |
* A crash has been fixed in "sudo -l" when sudo is built with auditing |
| 4388 |
support and the user is not allowed to run any commands on the host. |
| 4389 |
|
| 4390 |
What's new in Sudo 1.7.4p4? |
| 4391 |
|
| 4392 |
* A potential security issue has been fixed with respect to the handling |
| 4393 |
of sudo's -g command line option when -u is also specified. The flaw |
| 4394 |
may allow an attacker to run commands as a user that is not authorized |
| 4395 |
by the sudoers file. |
| 4396 |
|
| 4397 |
* A bug has been fixed where "sudo -l" output was incomplete if multiple |
| 4398 |
sudoers sources were defined in nsswitch.conf and there was an error |
| 4399 |
querying one of the sources. |
| 4400 |
|
| 4401 |
* The log_input, log_output, and use_pty sudoers options now work correctly |
| 4402 |
on AIX. Previously, sudo would hang if they were enabled. |
| 4403 |
|
| 4404 |
* The "make install" target now works correctly when sudo is built in a |
| 4405 |
directory other than the source directory. |
| 4406 |
|
| 4407 |
* The "runas_default" sudoers setting now works properly in a per-command |
| 4408 |
Defaults line. |
| 4409 |
|
| 4410 |
* Suspending and resuming the bash shell when PAM is in use now works |
| 4411 |
correctly. The SIGCONT signal was not propagated to the child process. |
| 4412 |
|
| 4413 |
What's new in Sudo 1.7.4p3? |
| 4414 |
|
| 4415 |
* A bug has been fixed where duplicate HOME environment variables could be |
| 4416 |
present when the env_reset setting was disabled and the always_set_home |
| 4417 |
setting was enabled in sudoers. |
| 4418 |
|
| 4419 |
* The value of sysconfdir is now substituted into the path to the sudoers.d |
| 4420 |
directory in the installed sudoers file. |
| 4421 |
|
| 4422 |
* Compilation problems on IRIX and other platforms have been fixed. |
| 4423 |
|
| 4424 |
* If multiple PAM "auth" actions are specified and the user enters ^C at |
| 4425 |
the password prompt, sudo will no longer prompt for a password for any |
| 4426 |
subsequent "auth" actions. Previously it was necessary to enter ^C for |
| 4427 |
each "auth" action. |
| 4428 |
|
| 4429 |
What's new in Sudo 1.7.4p2? |
| 4430 |
|
| 4431 |
* A bug where sudo could spin in a busy loop waiting for the child process |
| 4432 |
has been fixed. |
| 4433 |
|
| 4434 |
What's new in Sudo 1.7.4p1? |
| 4435 |
|
| 4436 |
* A bug introduced in sudo 1.7.3 that prevented the -k and -K options from |
| 4437 |
functioning when the tty_tickets sudoers option is enabled has been fixed. |
| 4438 |
|
| 4439 |
* Sudo no longer prints a warning when the -k or -K options are specified |
| 4440 |
and the ticket file does not exist. |
| 4441 |
|
| 4442 |
* It is now easier to cross-compile sudo. |
| 4443 |
|
| 4444 |
What's new in Sudo 1.7.4? |
| 4445 |
|
| 4446 |
* Sudoedit will now preserve the file extension in the name of the |
| 4447 |
temporary file being edited. The extension is used by some |
| 4448 |
editors (such as emacs) to choose the editing mode. |
| 4449 |
|
| 4450 |
* Time stamp files have moved from /var/run/sudo to either /var/db/sudo, |
| 4451 |
/var/lib/sudo or /var/adm/sudo. The directories are checked for |
| 4452 |
existence in that order. This prevents users from receiving the |
| 4453 |
sudo lecture every time the system reboots. Time stamp files older |
| 4454 |
than the boot time are ignored on systems where it is possible to |
| 4455 |
determine this. |
| 4456 |
|
| 4457 |
* The tty_tickets sudoers option is now enabled by default. |
| 4458 |
|
| 4459 |
* Ancillary documentation (README files, LICENSE, etc) is now installed |
| 4460 |
in a sudo documentation directory. |
| 4461 |
|
| 4462 |
* Sudo now recognizes "tls_cacert" as an alias for "tls_cacertfile" |
| 4463 |
in ldap.conf. |
| 4464 |
|
| 4465 |
* Defaults settings that are tied to a user, host or command may |
| 4466 |
now include the negation operator. For example: |
| 4467 |
Defaults:!millert lecture |
| 4468 |
will match any user but millert. |
| 4469 |
|
| 4470 |
* The default PATH environment variable, used when no PATH variable |
| 4471 |
exists, now includes /usr/sbin and /sbin. |
| 4472 |
|
| 4473 |
* Sudo now uses polypkg (https://github.com/OneIdentity/Polypkg) |
| 4474 |
for cross-platform packing. |
| 4475 |
|
| 4476 |
* On Linux, sudo will now restore the nproc resource limit before |
| 4477 |
executing a command, unless the limit appears to have been modified |
| 4478 |
by pam_limits. This avoids a problem with bash scripts that open |
| 4479 |
more than 32 descriptors on SuSE Linux, where sysconf(_SC_CHILD_MAX) |
| 4480 |
will return -1 when RLIMIT_NPROC is set to RLIMIT_UNLIMITED (-1). |
| 4481 |
|
| 4482 |
* The HOME and MAIL environment variables are now reset based on the |
| 4483 |
target user's password database entry when the env_reset sudoers option |
| 4484 |
is enabled (which is the case in the default configuration). Users |
| 4485 |
wishing to preserve the original values should use a sudoers entry like: |
| 4486 |
Defaults env_keep += HOME |
| 4487 |
to preserve the old value of HOME and |
| 4488 |
Defaults env_keep += MAIL |
| 4489 |
to preserve the old value of MAIL. |
| 4490 |
|
| 4491 |
* Fixed a problem in the restoration of the AIX authdb registry setting. |
| 4492 |
|
| 4493 |
* Sudo will now fork(2) and wait until the command has completed before |
| 4494 |
calling pam_close_session(). |
| 4495 |
|
| 4496 |
* The default syslog facility is now "authpriv" if the operating system |
| 4497 |
supports it, else "auth". |
| 4498 |
|
| 4499 |
What's new in Sudo 1.7.3? |
| 4500 |
|
| 4501 |
* Support for logging I/O for the command being run. |
| 4502 |
For more information, see the documentation for the "log_input" |
| 4503 |
and "log_output" Defaults options in the sudoers manual. Also |
| 4504 |
see the sudoreplay manual for how to replay I/O log sessions. |
| 4505 |
|
| 4506 |
* The use_pty sudoers option can be used to force a command to be |
| 4507 |
run in a pseudo-pty, even when I/O logging is not enabled. |
| 4508 |
|
| 4509 |
* On some systems, sudo can now detect when a user has logged out |
| 4510 |
and back in again when tty-based time stamps are in use. Supported |
| 4511 |
systems include Solaris systems with the devices file system, |
| 4512 |
Mac OS X, and Linux systems with the devpts filesystem (pseudo-ttys |
| 4513 |
only). |
| 4514 |
|
| 4515 |
* On AIX systems, the registry setting in /etc/security/user is |
| 4516 |
now taken into account when looking up users and groups. Sudo |
| 4517 |
now applies the correct the user and group ids when running a |
| 4518 |
command as a user whose account details come from a different |
| 4519 |
source (e.g., LDAP or DCE versus local files). |
| 4520 |
|
| 4521 |
* Support for multiple 'sudoers_base' and 'uri' entries in ldap.conf. |
| 4522 |
When multiple entries are listed, sudo will try each one in the |
| 4523 |
order in which they are specified. |
| 4524 |
|
| 4525 |
* Sudo's SELinux support should now function correctly when running |
| 4526 |
commands as a non-root user and when one of stdin, stdout or stderr |
| 4527 |
is not a terminal. |
| 4528 |
|
| 4529 |
* Sudo will now use the Linux audit system with configure with |
| 4530 |
the --with-linux-audit flag. |
| 4531 |
|
| 4532 |
* Sudo now uses mbr_check_membership() on systems that support it |
| 4533 |
to determine group membership. Currently, only Darwin (Mac OS X) |
| 4534 |
supports this. |
| 4535 |
|
| 4536 |
* When the tty_tickets sudoers option is enabled but there is no |
| 4537 |
terminal device, sudo will no longer use or create a tty-based |
| 4538 |
ticket file. Previously, sudo would use a tty name of "unknown". |
| 4539 |
As a consequence, if a user has no terminal device, sudo will |
| 4540 |
now always prompt for a password. |
| 4541 |
|
| 4542 |
* The passwd_timeout and timestamp_timeout options may now be |
| 4543 |
specified as floating point numbers for more granular timeout |
| 4544 |
values. |
| 4545 |
|
| 4546 |
* Negating the fqdn option in sudoers now works correctly when sudo |
| 4547 |
is configured with the --with-fqdn option. In previous versions |
| 4548 |
of sudo the fqdn was set before sudoers was parsed. |
| 4549 |
|
| 4550 |
What's new in Sudo 1.7.2? |
| 4551 |
|
| 4552 |
* A new #includedir directive is available in sudoers. This can be |
| 4553 |
used to implement an /etc/sudo.d directory. Files in an includedir |
| 4554 |
are not edited by visudo unless they contain a syntax error. |
| 4555 |
|
| 4556 |
* The -g option did not work properly when only setting the group |
| 4557 |
(and not the user). Also, in -l mode the wrong user was displayed |
| 4558 |
for sudoers entries where only the group was allowed to be set. |
| 4559 |
|
| 4560 |
* Fixed a problem with the alias checking in visudo which |
| 4561 |
could prevent visudo from exiting. |
| 4562 |
|
| 4563 |
* Sudo will now correctly parse the shell-style /etc/environment |
| 4564 |
file format used by pam_env on Linux. |
| 4565 |
|
| 4566 |
* When doing password and group database lookups, sudo will only |
| 4567 |
cache an entry by name or by id, depending on how the entry was |
| 4568 |
looked up. Previously, sudo would cache by both name and id |
| 4569 |
from a single lookup, but this breaks sites that have multiple |
| 4570 |
password or group database names that map to the same UID or |
| 4571 |
GID. |
| 4572 |
|
| 4573 |
* User and group names in sudoers may now be enclosed in double |
| 4574 |
quotes to avoid having to escape special characters. |
| 4575 |
|
| 4576 |
* BSM audit fixes when changing to a non-root UID. |
| 4577 |
|
| 4578 |
* Experimental non-Unix group support. Currently only works with |
| 4579 |
Quest Authorization Services and allows Active Directory groups |
| 4580 |
fixes for Minix-3. |
| 4581 |
|
| 4582 |
* For Netscape/Mozilla-derived LDAP SDKs the certificate and key |
| 4583 |
paths may be specified as a directory or a file. However, version |
| 4584 |
5.0 of the SDK only appears to support using a directory (despite |
| 4585 |
documentation to the contrary). If SSL client initialization |
| 4586 |
fails and the certificate or key paths look like they could be |
| 4587 |
default file name, strip off the last path element and try again. |
| 4588 |
|
| 4589 |
* A setenv() compatibility fix for Linux systems, where a NULL |
| 4590 |
value is treated the same as an empty string and the variable |
| 4591 |
name is checked against the NULL pointer. |
| 4592 |
|
| 4593 |
What's new in Sudo 1.7.1? |
| 4594 |
|
| 4595 |
* A new Defaults option "pwfeedback" will cause sudo to provide visual |
| 4596 |
feedback when the user is entering a password. |
| 4597 |
|
| 4598 |
* A new Defaults option "fast_glob" will cause sudo to use the fnmatch() |
| 4599 |
function for file name globbing instead of glob(). When this option |
| 4600 |
is enabled, sudo will not check the file system when expanding wildcards. |
| 4601 |
This is faster but a side effect is that relative paths with wildcard |
| 4602 |
will no longer work. |
| 4603 |
|
| 4604 |
* New BSM audit support for systems that support it such as FreeBSD |
| 4605 |
and Mac OS X. |
| 4606 |
|
| 4607 |
* The file name specified with the #include directive may now include |
| 4608 |
a %h escape which is expanded to the short form of hostname. |
| 4609 |
|
| 4610 |
* The -k flag may now be specified along with a command, causing the |
| 4611 |
user's timestamp file to be ignored. |
| 4612 |
|
| 4613 |
* New support for Tivoli-based LDAP START_TLS, present in AIX. |
| 4614 |
|
| 4615 |
* New support for /etc/netsvc.conf on AIX. |
| 4616 |
|
| 4617 |
* The unused alias checks in visudo now handle the case of an alias |
| 4618 |
referring to another alias. |
| 4619 |
|
| 4620 |
What's new in Sudo 1.7.0? |
| 4621 |
|
| 4622 |
* Rewritten parser that converts sudoers into a set of data structures. |
| 4623 |
This eliminates a number of ordering issues and makes it possible to |
| 4624 |
apply sudoers Defaults entries before searching for the command. |
| 4625 |
It also adds support for per-command Defaults specifications. |
| 4626 |
|
| 4627 |
* Sudoers now supports a #include facility to allow the inclusion of other |
| 4628 |
sudoers-format files. |
| 4629 |
|
| 4630 |
* Sudo's -l (list) flag has been enhanced: |
| 4631 |
o applicable Defaults options are now listed |
| 4632 |
o a command argument can be specified for testing whether a user |
| 4633 |
may run a specific command. |
| 4634 |
o a new -U flag can be used in conjunction with "sudo -l" to allow |
| 4635 |
root (or a user with "sudo ALL") list another user's privileges. |
| 4636 |
|
| 4637 |
* A new -g flag has been added to allow the user to specify a |
| 4638 |
primary group to run the command as. The sudoers syntax has been |
| 4639 |
extended to include a group section in the Runas specification. |
| 4640 |
|
| 4641 |
* A UID may now be used anywhere a username is valid. |
| 4642 |
|
| 4643 |
* The "secure_path" run-time Defaults option has been restored. |
| 4644 |
|
| 4645 |
* Password and group data is now cached for fast lookups. |
| 4646 |
|
| 4647 |
* The file descriptor at which sudo starts closing all open files is now |
| 4648 |
configurable via sudoers and, optionally, the command line. |
| 4649 |
|
| 4650 |
* Visudo will now warn about aliases that are defined but not used. |
| 4651 |
|
| 4652 |
* The -i and -s command line flags now take an optional command |
| 4653 |
to be run via the shell. Previously, the argument was passed |
| 4654 |
to the shell as a script to run. |
| 4655 |
|
| 4656 |
* Improved LDAP support. SASL authentication may now be used in |
| 4657 |
conjunction when connecting to an LDAP server. The krb5_ccname |
| 4658 |
parameter in ldap.conf may be used to enable Kerberos. |
| 4659 |
|
| 4660 |
* Support for /etc/nsswitch.conf. LDAP users may now use nsswitch.conf |
| 4661 |
to specify the sudoers order. E.g.: |
| 4662 |
sudoers: ldap files |
| 4663 |
to check LDAP, then /etc/sudoers. The default is "files", even |
| 4664 |
when LDAP support is compiled in. This differs from sudo 1.6 |
| 4665 |
where LDAP was always consulted first. |
| 4666 |
|
| 4667 |
* Support for /etc/environment on AIX and Linux. If sudo is run |
| 4668 |
with the -i flag, the contents of /etc/environment are used to |
| 4669 |
populate the new environment that is passed to the command being |
| 4670 |
run. |
| 4671 |
|
| 4672 |
* If no terminal is available or if the new -A flag is specified, |
| 4673 |
sudo will use a helper program to read the password if one is |
| 4674 |
configured. Typically, this is a graphical password prompter |
| 4675 |
such as ssh-askpass. |
| 4676 |
|
| 4677 |
* A new Defaults option, "mailfrom" that sets the value of the |
| 4678 |
"From:" field in the warning/error mail. If unspecified, the |
| 4679 |
login name of the invoking user is used. |
| 4680 |
|
| 4681 |
* A new Defaults option, "env_file" that refers to a file containing |
| 4682 |
environment variables to be set in the command being run. |
| 4683 |
|
| 4684 |
* A new flag, -n, may be used to indicate that sudo should not |
| 4685 |
prompt the user for a password and, instead, exit with an error |
| 4686 |
if authentication is required. |
| 4687 |
|
| 4688 |
* If sudo needs to prompt for a password and it is unable to disable |
| 4689 |
echo (and no askpass program is defined), it will refuse to run |
| 4690 |
unless the "visiblepw" Defaults option has been specified. |
| 4691 |
|
| 4692 |
* Prior to version 1.7.0, hitting enter/return at the Password: prompt |
| 4693 |
would exit sudo. In sudo 1.7.0 and beyond, this is treated as |
| 4694 |
an empty password. To exit sudo, the user must press ^C or ^D |
| 4695 |
at the prompt. |
| 4696 |
|
| 4697 |
* visudo will now check the sudoers file owner and mode in -c (check) |
| 4698 |
mode when the -s (strict) flag is specified. |
| 4699 |
|
| 4700 |
* A new Defaults option "umask_override" will cause sudo to set the |
| 4701 |
umask specified in sudoers even if it is more permissive than the |
| 4702 |
invoking user's umask. |