Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

Sudo Project

Provide privileged access management for the masses.
Collective - Host: opensource - https://opencollective.com/sudo-project - Website: https://www.sudo.ws - Code: https://github.com/sudo-project

When converting LDAP to sudoers, ignore entries with no sudoHost attribute.

Otherwise, sudo_ldap_role_to_priv() will treat a NULL host list as
as the "ALL" wildcard. This r...

github.com/sudo-project/sudo - 73c1b04306d5291abde9857b51e6aaee936e57c4 authored over 4 years ago by Todd C. Miller <[email protected]>
Load the sudoers module as an audit plugin if loaded as a policy plugin.

Now that logging of successful commands is performed by sudoers as an
audit plugin we need to loa...

github.com/sudo-project/sudo - 253e041d3bce756cf03ed73aebdbc985f084e338 authored over 4 years ago by Todd C. Miller <[email protected]>
Defer logging of the successful command until approval plugins have run.

This adds audit plugin support to the sudoers module, currently
only used for accept events. As ...

github.com/sudo-project/sudo - b519481912b52133c5b5f9c50ee20117818bacc7 authored over 4 years ago by Todd C. Miller <[email protected]>
Add support for "accept" audit events sent by the sudo front-end.

With this change, the sudo front-end will send an "accept" audit
event to the audit plugins after...

github.com/sudo-project/sudo - f0dc48548c57f0c868102cd9db65020fb3709162 authored over 4 years ago by Todd C. Miller <[email protected]>
If event loop fails due to ENXIO, remove /dev/tty events and recover.

This fixes an issue on Solaris 11.4 (and probably others) with "sudo
reboot" when I/O logging is ...

github.com/sudo-project/sudo - a3807092155df477d8e4ddb5147e145a29d1bafa authored over 4 years ago by Todd C. Miller <[email protected]>
Don't try to suspend sudo if the user's tty has gone away.

Fixes a problem on Solaris 11.4 (and possibly others) where sudo
continually tries to put itself ...

github.com/sudo-project/sudo - 592eb7ab498be8bd88f0b0b1f6fa21da44d7e648 authored over 4 years ago by Todd C. Miller <[email protected]>
Back out WIP code that was mistakenly committed.

github.com/sudo-project/sudo - de31e6d53bbdfb00d4172aaaa58755256a307e6b authored over 4 years ago by Todd C. Miller <[email protected]>
Don't enable BSM audit on Solaris 10, it is missing AUE_sudo

github.com/sudo-project/sudo - a0aaae5541c6a3d328bc7cba23e5c6cbfa948102 authored over 4 years ago by Todd C. Miller <[email protected]>
On Solaris 11.4 the openpty(3) prototype lives in termios.h.

github.com/sudo-project/sudo - ad70fb4f1efeee6f8a64603d5aeb6d2f5fcddcb2 authored over 4 years ago by Todd C. Miller <[email protected]>
Add missing stdlib.h include and fix solaris_audit_failure() error return.

github.com/sudo-project/sudo - 51dc8ad83c0d4e713d7d1536855998109a7548ce authored over 4 years ago by Todd C. Miller <[email protected]>
Use Solaris audit for Solaris 11, not BSM audit.

BSM audit is no longer supported in Solaris 11.4.

github.com/sudo-project/sudo - e1aa76de16ead3eb7dcc24e994c7246829b6d09e authored over 4 years ago by Todd C. Miller <[email protected]>
Check audit plugins for a close function too before execing command directly.

We cannot exec the command directly if any of the policy or audit
plugins use a close function.

github.com/sudo-project/sudo - 2dd1e1907d1b19f4d08476c778bb6903eff08e6f authored over 4 years ago by Todd C. Miller <[email protected]>
Mention Bug #927.

github.com/sudo-project/sudo - d9cbb7bebd77d5d656d162e2264a2c4880fbadfc authored over 4 years ago by Todd C. Miller <[email protected]>
Add basic support for --runstatedir

If the user specifies --runstatedir but not --with-rundir, use
runstatdir as the parent directory...

github.com/sudo-project/sudo - 026caf008142fcbf47455da23db1e023ca1fe216 authored over 4 years ago by Todd C. Miller <[email protected]>
Add support for @include and @includedir

These are less confusing than #include and #includedir when the
hash character is also the commen...

github.com/sudo-project/sudo - 741c6f274e65f852b7026b10a21dff519b2fd6c2 authored over 4 years ago by Todd C. Miller <[email protected]>
In iolog_openat() enable the write bit on pre-existing files if needed.

This prevents problems caused by the change to strip the write bit
from the timing file when it i...

github.com/sudo-project/sudo - c63ba01e0e4365e697f871c159d847e724032c8e authored over 4 years ago by Todd C. Miller <[email protected]>
In visudo check that an include file is regular file before using it.

Avoids a generic "input in flex scanner failed" error message.

github.com/sudo-project/sudo - 7febc39137569c559cc24c7300c4dc3d3e76e609 authored over 4 years ago by Todd C. Miller <[email protected]>
Fix a memory leak on error when including a file or directory.

github.com/sudo-project/sudo - a41d7b545a0fffd565509a1c429b349df41d844a authored over 4 years ago by Todd C. Miller <[email protected]>
Sudo 1.9.1

github.com/sudo-project/sudo - 5a69831dd4398173bf9e0020c082f66129b37c63 authored over 4 years ago by Todd C. Miller <[email protected]>
Add a follow option (-F) to support replaying a live session.

By default, sudoreplay will exit when it reaches the end of the
timing file. With the -F option,...

github.com/sudo-project/sudo - 452be1a4c5d8e56ea79d7ba2a9112aec0c8629fa authored over 4 years ago by Todd C. Miller <[email protected]>
Add iolog_clearerr() that acts like clearerr(3).

Works for both compressed and uncompressed I/O logs.

github.com/sudo-project/sudo - 0312292e99889599d639d3f1ac1eb62f9266a214 authored over 4 years ago by Todd C. Miller <[email protected]>
Clear the write bit from the I/O log timing file when it is complete.

This matches the behavior of sudo_logsrvd.

github.com/sudo-project/sudo - 2a29daee1845bdb77980d22a72ca046098905841 authored over 4 years ago by Todd C. Miller <[email protected]>
Use PACKAGE_VERSION instead of 0.1 as the client and server version.

github.com/sudo-project/sudo - 84f0ae0cb82aa6f9a77a32e99f7a37fe0a9a6bb0 authored over 4 years ago by Todd C. Miller <[email protected]>
Set DEFAULT_TEXT_DOMAIN in lib/util's Makefile not individual .c files.

We no longer need to include sudo_gettext.h before sudo_compat.h

github.com/sudo-project/sudo - 8ef5c4cf9d2886420aea59565b89011be32b5343 authored over 4 years ago by Todd C. Miller <[email protected]>
Include string.h unconditionally and only use strings.h for strn?casecmp()

In the pre-POSIX days BSD had strings.h, not string.h.
Now strings.h is only used for non-ANSI st...

github.com/sudo-project/sudo - 446ae3f507271c8a08f054c9291cb8804afe81d9 authored over 4 years ago by Todd C. Miller <[email protected]>
We no longer need to include headers we don't use for sudo*.h files.

Previously we needed to include headers required by the various
sudo*h files. Now those files ar...

github.com/sudo-project/sudo - dd88460800fb76c37b089026eac92e60c5172c3e authored over 4 years ago by Todd C. Miller <[email protected]>
Add dependent system includes to make sudo_*.h more standalone.

In the past we've relied on the various .c files to include the
system headers that define types ...

github.com/sudo-project/sudo - d85d370c63126a0d69950f79761099ffb466e87c authored over 4 years ago by Todd C. Miller <[email protected]>
Fix typo in PERLIO_DEBUG (trailing whitespace).

This has no effect unless env_reset is disabled.
From Allan Wirth

github.com/sudo-project/sudo - b66cf649f54212bd03801477fe8b5d2bd37933df authored over 4 years ago by Todd C. Miller <[email protected]>
Fix includes when building with musl

Include sys/types.h for mode_t and id_t in sudo_debug.h

github.com/sudo-project/sudo - f4e9e4337f8844d199515ff2b762c914dd254cbd authored over 4 years ago by Dan Robertson <[email protected]>
Fix typo in warning message.

github.com/sudo-project/sudo - 3d73f05e3b1b349627faca2a42d0dc6fa42a6472 authored over 4 years ago by Sebastian Rasmussen <[email protected]>
Prefer SIGSYS if SIGUNUSED is defined to the same value.

Fixes a regress failure on musl libc where SIGSYS and SIGUNUSED
share the same value.

github.com/sudo-project/sudo - aaea4622774b229b68e9b755f9833a7513b26ad2 authored over 4 years ago by Todd C. Miller <[email protected]>
Add missing sys/wait.h include; fixes a compilation problem on musl libc.

github.com/sudo-project/sudo - 26b599a5b13901fe254ed3c79abd436b9e6f0fbd authored over 4 years ago by Todd C. Miller <[email protected]>
Add missing sys/types.h include; fixes a compilation problem on musl libc.

github.com/sudo-project/sudo - 36bbf629bed5a7550876f9683d82f96b8c8d242a authored over 4 years ago by Todd C. Miller <[email protected]>
Only define WCONTINUED and WIFCONTINUED if neither are already defined.

Fixes a warning on musl libc where WIFCONTINUED is defined in
stdlib.h for some reason.

github.com/sudo-project/sudo - ea1226be7cc760ac2711cfa57ef6d23e57f343d2 authored over 4 years ago by Todd C. Miller <[email protected]>
Enable OpenSSL on RHEL 6 too.

The version of OpenSSL in RHEL 6 is new enough for the log server to use.

github.com/sudo-project/sudo - 4ea7ecffdd4c375af330df7478c251567774c6d1 authored over 4 years ago by Todd C. Miller <[email protected]>
Don't print errno for the "TLS not supported" message.

github.com/sudo-project/sudo - 1c3946e9b10e7ab504d978fe8215ffe7a9a0ea93 authored over 4 years ago by Todd C. Miller <[email protected]>
Fix macOS bundle IDs for sudo-logsrvd and sudo-python packages

github.com/sudo-project/sudo - 3ded5cbd67b4db639be830a4bd816f4b32feac63 authored over 4 years ago by Todd C. Miller <[email protected]>
Add iolog_path to the JSON-format event log

github.com/sudo-project/sudo - f71b569419f8abf134eda9d69402696d61c66861 authored over 4 years ago by Todd C. Miller <[email protected]>
Rename FLUSHED state to FINISHED

This makes more sense when receiving event-only logs.

github.com/sudo-project/sudo - d2686dde0c338dd86b1ecc0a7260c2779d4eb23d authored over 4 years ago by Todd C. Miller <[email protected]>
Fix handling of connections without associated I/O logs.

This fixes reject events as well as accept events without the
expect_iobufs flag set.

github.com/sudo-project/sudo - 0337f5b7350864219f17fdae04131e49d8f35430 authored over 4 years ago by Todd C. Miller <[email protected]>
Fix handling of accept and reject messages without an I/O log.

Only set expect_iobufs in AcceptMessage if sending I/O logs.
Set state to FINISHED immediately af...

github.com/sudo-project/sudo - 27355e6aaedb8d60451b6ec5f9edd44ee8b7a615 authored over 4 years ago by Todd C. Miller <[email protected]>
Add -A and -R options to test logging of accept and reject events.

If -A is specified, no I/O will be sent, only the accept event.
For -R, a reject event with the s...

github.com/sudo-project/sudo - d5888e274546e32f840a4c3bdc25c1c7129faf51 authored over 4 years ago by Todd C. Miller <[email protected]>
cfmakeraw(3) is broken on AIX, don't use it there

The cfmakeraw(3) function exists but does not set VMIN to 1 or VTIME
to 0 in c_cc[] in struct ter...

github.com/sudo-project/sudo - d3b710b0da49a8c7b6516dc32d4be65fe602cb39 authored over 4 years ago by Todd C. Miller <[email protected]>
fix pastos

github.com/sudo-project/sudo - af0d840322b779e4827ace7b3a47b605aefb96ba authored over 4 years ago by Todd C. Miller <[email protected]>
Rename sudo_parse_host_port -> iolog_parse_host_port and mv to lib/iolog

It is not used outside of the I/O log client and server and the
host:port syntax may change in th...

github.com/sudo-project/sudo - 83d1bee918147a57804de77d3e1064a4e323f47e authored over 4 years ago by Todd C. Miller <[email protected]>
Remove duplicate inclusion of time.h

github.com/sudo-project/sudo - fbf25112e630d601d4dedf4034393332ffd06ce4 authored over 4 years ago by Todd C. Miller <[email protected]>
Only enable TLS listener by default if we have a cert for it.

We want the log server to work with the default configuration. If
the default certificate path e...

github.com/sudo-project/sudo - fc79cbc31728e216320ac1514675e920d491c023 authored over 4 years ago by Todd C. Miller <[email protected]>
regen for 1.9.0 final

github.com/sudo-project/sudo - 3de3de8b75bde21dbbe055e5f0558dc7ad5e5de9 authored over 4 years ago by Todd C. Miller <[email protected]>
regen

github.com/sudo-project/sudo - e9be26c4b1c17babc0a381bcc2836f52637f8547 authored over 4 years ago by Todd C. Miller <[email protected]>
The --preserve-env=list option may be specified more than once.

github.com/sudo-project/sudo - 92199e25c4b8a69bab862c2bd2d46c840caa23b1 authored over 4 years ago by Todd C. Miller <[email protected]>
Quiet some warnings from igor.

github.com/sudo-project/sudo - deb9ce7d12aa6f0822c594ef21d9244f1297cfc8 authored over 4 years ago by Todd C. Miller <[email protected]>
Plumb in codespell with a "make spell" target.

github.com/sudo-project/sudo - 7f2585ed0ac555421f186734709bc672041215dc authored over 4 years ago by Todd C. Miller <[email protected]>
Fix a few more typos.

github.com/sudo-project/sudo - 04cb06160a514da574ddd56711c8c000266c8250 authored over 4 years ago by Todd C. Miller <[email protected]>
Don't allow duplicate values for command line options that take an argument.

Previously, if multiple instances of the same command line option were
specified, the last one wo...

github.com/sudo-project/sudo - 4266279c0cca5d1a8eaacbc5255ecf90e7f15f6a authored over 4 years ago by Todd C. Miller <[email protected]>
Debian bug #734752

github.com/sudo-project/sudo - 24ad424a57e62377e51e6157b224b74a2d4a97cd authored over 4 years ago by Todd C. Miller <[email protected]>
Look up runas user by name, not euid, where possible.

Fixes a problem when there are multiple users with the same user-ID
where the PAM session modules...

github.com/sudo-project/sudo - 4dba87262a3d117a4c2962a4fe65e500878690e4 authored over 4 years ago by Todd C. Miller <[email protected]>
Fix ironic typo in spelling fixes. Bug #925

github.com/sudo-project/sudo - ea99394fcfcdbd346744e890e95d6f4809a03e36 authored over 4 years ago by Todd C. Miller <[email protected]>
Sync PolyPkg from upstream.

github.com/sudo-project/sudo - e42afc7732900f5c5f4aa8ceade59cd122f39a2e authored over 4 years ago by Todd C. Miller <[email protected]>
Apply spelling fixes.

Fixes from PR #30 (ka7) and Bug #925 (fossies.org codespell)

github.com/sudo-project/sudo - 0cf2e09e0c2b62865d075009d7ea206c83974ac5 authored over 4 years ago by Todd C. Miller <[email protected]>
Use the proper python version in the libpython dependency on Debian.

The configure script already detects the python version, we just need
to use it.

github.com/sudo-project/sudo - 5d3f635ae809b9cadcf1804a3a4f193beb5458bd authored over 4 years ago by Todd C. Miller <[email protected]>
Updated translations from translationproject.org

github.com/sudo-project/sudo - f261d58af8da50612c78ab7276a1e299eb0f9b86 authored over 4 years ago by Todd C. Miller <[email protected]>
Bug #922 and Bug #923

github.com/sudo-project/sudo - a3e94aefa320c70a3ac1ee06ed5c244e87b80d9f authored over 4 years ago by Todd C. Miller <[email protected]>
Better error messages when there is a problem with the TLS connection.

If SSL_read, SSL_write or SSL_connect fails we can use the reason
string to let the user know wha...

github.com/sudo-project/sudo - 1e765e1caf778f50b2f7d6f77946ce2b375c073d authored over 4 years ago by Todd C. Miller <[email protected]>
Remove the tls parameter from the ServerHello message.

The TLS connection is now initiated before ServerHello is received.

github.com/sudo-project/sudo - e5f8214c0ae5ac525904d842d48afae4ce0c3f72 authored over 4 years ago by Todd C. Miller <[email protected]>
Warn about tls errors during startup so the user has a clue.

We write messages to stderr until we become a daemon.

github.com/sudo-project/sudo - 1f8da42f9aebcb024e3b7fa11b5001ab565916c7 authored over 4 years ago by Todd C. Miller <[email protected]>
Add support for a tls flag in sudo_parse_host_port().

If the string "(tls)" appears at the end, the tls flag is set to true
and the default tls port is...

github.com/sudo-project/sudo - b5a317aeb9b4944b05281cd490b6c0cfb9767426 authored over 4 years ago by Todd C. Miller <[email protected]>
Use port 30343 for plaintext and port 30344 for TLS.

For TLS connections we now do the TLS handshake immediately before
the ServerHello message. This...

github.com/sudo-project/sudo - 1659d96c55c7b532c711ca2121a59b91f5850371 authored over 4 years ago by Todd C. Miller <[email protected]>
Adapt sudoers iolog client to log server dual port changes.

The TLS handshake now occurs before the ServerHello message is read.
This fixes potential man-in-...

github.com/sudo-project/sudo - 8186b982083f4bd2812e80c81235188f6d848f88 authored over 4 years ago by Todd C. Miller <[email protected]>
Add a ClientHello message that client sends to the server.

This makes it easier to detect a plaintext client sending to a
TLS port. Without this, the TLS s...

github.com/sudo-project/sudo - 6901fc97acdef2fb5d895a43cf0348f456a22c04 authored over 4 years ago by Todd C. Miller <[email protected]>
Fix Debian ldap dependency broken in last commit.

github.com/sudo-project/sudo - 82bc05d998fe755dce699def0c9301782708d917 authored over 4 years ago by Todd C. Miller <[email protected]>
Fix "make package" on Debian when linux_audit is not set.

github.com/sudo-project/sudo - 3b078b7a9c067b5b5f3507a50e9fde9d9d6335d6 authored over 4 years ago by Todd C. Miller <[email protected]>
Make the default certificate and key paths match the example file.

github.com/sudo-project/sudo - 42df431ce2ac29c88825c1835b34a2e3a187b5f4 authored over 4 years ago by Todd C. Miller <[email protected]>
Plug memory leaks in sudo_sendlog

github.com/sudo-project/sudo - 7d621fc6f13dfaf39c5535019b0df242b3189f34 authored over 4 years ago by Todd C. Miller <[email protected]>
Handle EAGAIN like we do ENOMEM from poll() and select().

On some systems, poll() and select() can return EAGAIN instead
of ENOMEM if there is a kernel res...

github.com/sudo-project/sudo - 0460008c5b6dc369b4e86e787b7a24b1e84a7161 authored over 4 years ago by Todd C. Miller <[email protected]>
Use the --embed when running "python3-config --ldflags" if supported.

Newer versions of python3-config only include libpython in the
output when the --embed is used. ...

github.com/sudo-project/sudo - a212ee64e3622a0af9dc4f9173e3331f20fb94db authored over 4 years ago by Todd C. Miller <[email protected]>
On error, remove the connection with an error without freeing the closure.

Fixes the final message at the end when there is a network error.

github.com/sudo-project/sudo - aba4915b833527417d74b81c904842a5f82cb2d2 authored over 4 years ago by Todd C. Miller <[email protected]>
Do not call poll(2) or ppoll(2) with nfds > RLIMIT_NOFILE.

Both poll(2) and ppoll(2) will return EINVAL if the nfds function
argument is larger than the max...

github.com/sudo-project/sudo - 2b1e98657216a38a145fc5a5353a3484d815ef38 authored over 4 years ago by Todd C. Miller <[email protected]>
The timeout parameter of sudo_ev_add() should be const.

github.com/sudo-project/sudo - 85fe30e49b263f7587fb945d955e0fd3ad3dc534 authored over 4 years ago by Todd C. Miller <[email protected]>
Don't free TLS on error in tls_init(), it is freed in client_closure_free().

Fixes a double free on error introduced with the TLS state cleanup in
client_closure_free().

github.com/sudo-project/sudo - 3b7768be76387237b2e5fb9a2f5f4d77e6a9d322 authored over 4 years ago by Todd C. Miller <[email protected]>
Check for tls_config->dhparams_path being non-NULL before using it.

github.com/sudo-project/sudo - 2ab8f2a7329fb9622c019bdf13a42a8a5c15c138 authored over 4 years ago by Todd C. Miller <[email protected]>
Document the TLS and test options.

github.com/sudo-project/sudo - 79b064139f8706e1c9090649ac598959fb63ce30 authored over 4 years ago by Todd C. Miller <[email protected]>
Allow -t option even without OpenSSL

Also add -t to the usage message

github.com/sudo-project/sudo - 5dec0f763f8131d95068194114c929ff6b52d383 authored over 4 years ago by Todd C. Miller <[email protected]>
Use sudo_strtonum() instead of relying on strtoll().

Older, pre-C99, systems may not include strtoll() in their C library.

github.com/sudo-project/sudo - 0fafcf6aea918ef9f666105ecb52abae67cbae16 authored over 4 years ago by Todd C. Miller <[email protected]>
Allow this to build on systems without stdint.h by using config.h.

Old, pre-C99, systems may have inttypes.h but not stdint.h.

github.com/sudo-project/sudo - b26e32f398d20ce7c54b79375b6a50649d39e406 authored over 4 years ago by Todd C. Miller <[email protected]>
Fix support for pp_systemd_disabled and check for systemd existence.

On our build schroots we don't have systemctl installed but do have
the /etc/systemd and /lib/sys...

github.com/sudo-project/sudo - 40f47f01364aa7293b0cd208075c3207f8e500d3 authored over 4 years ago by Todd C. Miller <[email protected]>
Set pp_macos_service_id instead of pp_macos_default_service_id_prefix.

It is only effective to set pp_macos_default_service_id_prefix in
the indivisual %service section...

github.com/sudo-project/sudo - 8c5befaae82a0d75dc0b5f8aa9a6ed9666050535 authored over 4 years ago by Todd C. Miller <[email protected]>
Set launchd service id prefix to "ws.sudo."

The default value in PolyPkg is "com.quest.rc."

github.com/sudo-project/sudo - c70606c3c9911c19fe8a2aa2172f648ac3a3179a authored over 4 years ago by Todd C. Miller <[email protected]>
Fix macOS package creation.

github.com/sudo-project/sudo - d5b06ff7fad613b9de896f8597a6c4ac7d46161a authored over 4 years ago by Todd C. Miller <[email protected]>
Shut down the TLS connection cleanly in client_closure_free().

Also free the SSL data which is part of the client closure.

github.com/sudo-project/sudo - 557be2b0b13b9f9800dfe305ce27d6b9954f1152 authored over 4 years ago by Todd C. Miller <[email protected]>
Fix sudoedit when running with SELinux RBAC mode.

We can't use run_command() to run sesh, that will use the sudo event
loop (and might run it in a ...

github.com/sudo-project/sudo - 76bf9a73bc6334586244d6b1da43dfcda619d05e authored over 4 years ago by Todd C. Miller <[email protected]>
Refactor the sudoedit code to copy files so it can be shared.

The SELinux sudoedit code now extends the destination file the
same way the non-SELinux version d...

github.com/sudo-project/sudo - 009876bf368dec5f06636a8ab0a09cfb85bea1cd authored over 4 years ago by Todd C. Miller <[email protected]>
Do not remove sudoedit temporary files if we cannot overwrite the real file.

The warning message says the files were preserved but they actually
got removed.

github.com/sudo-project/sudo - 0bd39701b4018896788712ac3e8aa732458b8fe1 authored over 4 years ago by Todd C. Miller <[email protected]>
Only remove the systemd unit service file if we copied it manually.

If the service file was installed as part of the package it will
be removed automatically when th...

github.com/sudo-project/sudo - d22800edd523a020f94de80869b7342f6d358e39 authored over 4 years ago by Todd C. Miller <[email protected]>
Make gl_pathc, gl_matchc and gl_offs size_t in glob_t to match POSIX.

github.com/sudo-project/sudo - 99129ba41fc1f77497c46216cec05ca2f9f5db2f authored over 4 years ago by Todd C. Miller <[email protected]>
Document TLS settings in ServerHello

github.com/sudo-project/sudo - c161f68b4381a2fb5a29fc8df0182e8d9b008261 authored over 4 years ago by Todd C. Miller <[email protected]>
Extend the original file before to the new size before updating it.

Instead of opening the original file for writing w/ tuncation, we
first extend the file with zero...

github.com/sudo-project/sudo - adb4360c40df99238c17c3ecedcb1d32d76e2b2e authored over 4 years ago by Todd C. Miller <[email protected]>
I/O log plugins should be closed *before* the policy plugin, not after.

github.com/sudo-project/sudo - 2a60816f75d3daeef2dd8f3956da5f366466088d authored over 4 years ago by Todd C. Miller <[email protected]>
Fix typo

github.com/sudo-project/sudo - af4eb80dfbae6530278981fe057018df9e0f6576 authored over 4 years ago by Todd C. Miller <[email protected]>
Only display error string once on I/O error.

We already include the error string in the format so no need to use
errno too.

github.com/sudo-project/sudo - 132b943a2d3faf8c3970649af34f3982f312cc2f authored over 4 years ago by Todd C. Miller <[email protected]>
Free passwd and group caches in I/O plugin after log_warning(), not before.

The logging functions may try to use the cache via set_perms(PERM_ROOT).

github.com/sudo-project/sudo - ae7bb12335d173eb0904cca82c36b47451702f52 authored over 4 years ago by Todd C. Miller <[email protected]>