Ecosyste.ms: OpenCollective

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

github.com/sudo-project/sudo

Utility to execute a command as another user
https://github.com/sudo-project/sudo

Add support for loading the sudo_intercept.so DSO.

6287e8ca7d3295c6f123b0fed84ddd5a0cd4891a authored about 3 years ago by Todd C. Miller <[email protected]>
expand_prompt: use correct strlcpy() size parameter

The available size passed to strlcpy() was computed incorrectly.
Switch to updating the length af...

b3e86c65b1ed7b86be4fc12ae26f7760e3aa4cf5 authored about 3 years ago by Todd C. Miller <[email protected]>
The tls_verify setting only affects server behavior, not the client.

Originally, there was a flag in the ServerHello message to indicate
that the client should verify...

14ffa00c0639b07455ffebdd5d7aa07345572eb7 authored about 3 years ago by Todd C. Miller <[email protected]>
On macOS, don't disable tty tickets and set password timeout to 0.

This more closely matches the options used by the macOS version of sudo.

57cb62d7dc87cdeef4af9ad3109c81180aafd06d authored about 3 years ago by Todd C. Miller <[email protected]>
Add some debugging info to find_path()

d1c29fb008ef47eedc4cd44ce5b984689051bfa5 authored about 3 years ago by Todd C. Miller <[email protected]>
iolog_mkdtemp: umask must not be more restrictive than the file modes.

We need this even though we will be calling mkdtemp() since the
umask affects the mode of any par...

e4568ceafe2ba6fc4b3a2d9ee8e742ac565a30af authored about 3 years ago by Todd C. Miller <[email protected]>
Plug memory leak in error path when sudoers cannot be opened.

8b009f62eb1fd46c86b69909538191fc938526db authored about 3 years ago by Todd C. Miller <[email protected]>
Trying to use "+=" or "-=" operators on a non-list is an error.

Previously, they were simply treated as "=" for non-lists.

1032fca5b8af21266a94f3e0ee1cbee0596dc636 authored about 3 years ago by Todd C. Miller <[email protected]>
Plug a memory leak in check_net_ifs found by address sanitizer.

2ea773ed1f5b051b172fa8dcc9d440ec207577a0 authored about 3 years ago by Todd C. Miller <[email protected]>
Prefix sanitizer and fuzzer options with -XCClinker in ASAN_LDFLAGS.

Otherwise libtool may ignore the options when linking.

40496f510b0898757cd7f8bf8ef0451f500e0a56 authored about 3 years ago by Todd C. Miller <[email protected]>
Display the correct error message if X509_verify_cert() fails.

We must use X509_STORE_CTX_get_error() and X509_verify_cert_error_string()
instead of the generic...

aee82efe45ccdaa9c5ddd4bf0bf7da757822713d authored about 3 years ago by Todd C. Miller <[email protected]>
In new_logline check for NULL args->reason for EVLOG_RAW.

This can't happen in practice since we never set EVLOG_RAW
without passing in a reason. Coverity...

d109cd61d9ff01053f1d43b7d4fc0e5e657c8da3 authored about 3 years ago by Todd C. Miller <[email protected]>
format_json: don't dereference evlog if it is NULL.

Also silence a PVS Studio false positive.

e00ed390d5084535309d20b1e57b36538c01f068 authored about 3 years ago by Todd C. Miller <[email protected]>
Bump version to 1.9.7p2

625ab9d29897baac6dfc426dc76c01e80bad2eec authored about 3 years ago by Todd C. Miller <[email protected]>
Sudo 1.9.7p2

8d23e2611038d015a711706c2589c55463a2acc1 authored about 3 years ago by Todd C. Miller <[email protected]>
Use TLS_method() instead of TLS_client_method() throughout.

OpenSSL returns an error for SSL_accept() if TLS_client_method()
was used to generate the context...

36fbb13c4c93182d14b30e94c3f32791680b1677 authored about 3 years ago by Todd C. Miller <[email protected]>
Only replace getaddrinfo for FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION.

This works around an issue on SCO which uses inline functions in
the header files which call the ...

532e00aa2b452a43e00ef57392f1d74c728a3f5f authored about 3 years ago by Todd C. Miller <[email protected]>
Rewind utmp file pointer after searching for entry (#108)

getutline() advances the file pointer until it matches or reaches EOF. pututline() starts from t...

0a506b38013ac2386cceb3f15235fb7702333490 authored about 3 years ago by MertsA <[email protected]>
Use AC_CACHE_CHECK in place of AC_MSG_CHECKING + AC_CACHE_VAL where possible.

f8e05dd984a6b332cf7b39cba78ad0bdfed89058 authored about 3 years ago by Todd C. Miller <[email protected]>
Add configure check for va_copy instead of using #ifdef

This prevents the va_copy compat #define from being used if
sudo_compat.h is somehow included bef...

4a90deb2a0ea9352af2b264fa221a81b5be3eb6b authored about 3 years ago by Todd C. Miller <[email protected]>
Avoid using RLIM_INFINITY for the nofile soft limit to prevent

closefrom_fallback() from closing too many file descriptors.

b0ae7a566bdbecc5bf17f342e66144ac1dc215de authored about 3 years ago by Todd C. Miller <[email protected]>
Include signal.h for SIG2STR_MAX and sig2str().

b48cd11a4b2e18e49ecae3cb3ba49134320296ea authored about 3 years ago by Todd C. Miller <[email protected]>
Remove unused info_cb and info arguments from eventlog_exit()

c234bab7b2c13616c3644dbb888b42b38225444f authored over 3 years ago by Todd C. Miller <[email protected]>
Create a UUID and log it in the JSON version of the event log.

fa7250ead74c73fb0a713b5f9e2a9121b88ab474 authored over 3 years ago by Todd C. Miller <[email protected]>
Add support for logging exit status events.

For sudo-formatted logs, this is a record with "EXIT=number" and
potentially "SIGNAL=name" after ...

b54a16e1749fc53e4ed047da72f97b8f99bf4d6a authored over 3 years ago by Todd C. Miller <[email protected]>
Add log_exit setting in the sudo_logsrvd.conf eventlog stanza

This causes sudo_logsrvd to log a record with the exit status or
terminating signal in response t...

0dd2b6442ae311eaceb2e7624f4fabbc9f110887 authored over 3 years ago by Todd C. Miller <[email protected]>
Add log_exit_status sudoers option to log when a command exits.

This option defaults to off.

17a415ae77c4cc499481b21c97d65da1af1439fc authored over 3 years ago by Todd C. Miller <[email protected]>
Check that the python module we actually loaded is what we intended.

This is intended to provide a more useful error message if the
user defines a module which confli...

657897b8bf608b51e675545f6086567d23e9ee79 authored over 3 years ago by Todd C. Miller <[email protected]>
Mention that xkcd inspired the sandwich logo.

16f78f59ba1c6079d2ee09b58be3380bf0c2e523 authored over 3 years ago by Todd C. Miller <[email protected]>
Mention log server and fuzzers under Quest contributions.

86680255bafef76296d3a1f1520ebdff8c8a8a7f authored over 3 years ago by Todd C. Miller <[email protected]>
Don't assume that the number of groups returned by getgroups() is static.

On systems where getgroups() returns results based on more than
just the per-process group vector...

7a309d70bbd9a6acf3699af28b48280a24bcc0f7 authored over 3 years ago by Todd C. Miller <[email protected]>
Use "mandoc -Tlint -Wwarning" instead of -Wstyle.

The style checks now include "referenced manual not found" warnings
which is not helpful.

555596e57a3159bbf6dd29e7ebb9efc75ca624f8 authored over 3 years ago by Todd C. Miller <[email protected]>
regen

0b809cdafe6d40f5944c78d60aa28e7f1c06da34 authored over 3 years ago by Todd C. Miller <[email protected]>
Change ms from size_t to long.

Avoids a spurious test failure on Solaris 9

90b4f4c4fe3c920deab3e417a661b8934ed4db9f authored over 3 years ago by Todd C. Miller <[email protected]>
Move definition of INADDR_NONE from interfaces.c to net_ifs.c.

Fixes compilation on Solaris 9.

ae0e25cf2e333ff484b6dc0b9abeafe2d72ccc3d authored over 3 years ago by Todd C. Miller <[email protected]>
Fix dead store found by clang analyzer.

030746ce576a17cbfe07af82471b58f79a602916 authored over 3 years ago by Todd C. Miller <[email protected]>
Fix prefix skipping when the prefix is embedded and not separate.

This doesn't currently matter since the progname and the ": " are
stored in separate messages. F...

442778aee1e90302f486c9a59800d7cae3060fde authored over 3 years ago by Todd C. Miller <[email protected]>
Remove dead store found by clang analyzer.

f3deb3737dd53644515791be3152d7165b396476 authored over 3 years ago by Todd C. Miller <[email protected]>
Make sure we store an octal number (like umask) as a string.

JSON doesn't (portably) support octal numbers with a leading zero.

b7e81c46b175681d10df16727bbea7540336b731 authored over 3 years ago by Todd C. Miller <[email protected]>
Replace logsrvd_is_early() with logsrvd_warn_stderr().

This is now defined in logsrvd_conf.c which removes a dependency
on another compilation unit for ...

efaa173fbe41cf55e967fcc5fb4fd1cdac7511ee authored over 3 years ago by Todd C. Miller <[email protected]>
Silence a compiler warning on Solaris.

1d41937ca1d923e8a0ae1e5f029f1fc7a0ce88fd authored over 3 years ago by Todd C. Miller <[email protected]>
Reduce scope of errstr variable so it is only declared for OpenSSL.

74f034cbfbdcbeea93fab5481c77da10ca0c8782 authored over 3 years ago by Todd C. Miller <[email protected]>
regen

024f4475b702f57608c63321d1f8b2286c98939a authored over 3 years ago by Todd C. Miller <[email protected]>
Use sudo_warnx?() instead of sudo_debug_printf for errors.

We now hook the warn functions so the messages are logged.
The messages still show up in the debu...

5a3bbba12b262233d1b2eb639850915cb0104d0c authored over 3 years ago by Todd C. Miller <[email protected]>
Remove vsyslog(3) emulation, it is no longer used.

cc3b4ffb045995e1098f1c0a7e03e8e25d9cc1cb authored over 3 years ago by Todd C. Miller <[email protected]>
If logsrvd_config not set fall back to using stderr for warnings.

Also fix fuzz_logsrvd_conf link error.

d311c7b2eec20ea82fa0ab27f66624e9039848c7 authored over 3 years ago by Todd C. Miller <[email protected]>
Add support for logging server warning/error messages.

We can use sudo_warn_set_conversation() to set a conversation
function that either writes to a lo...

2c1988410e1f23b9af7c5a64a53cb774c96da0fd authored over 3 years ago by Todd C. Miller <[email protected]>
Sudo 1.9.7p1

df1895f66f572b92f586bd46ebc6e68007d58fae authored over 3 years ago by Todd C. Miller <[email protected]>
Check arrays that are passed in for NULL before using them.

8f7cae69cc96f03af76ced855e6dc072ad09c5fc authored over 3 years ago by Todd C. Miller <[email protected]>
Disable nss_search()-based group lookups on HP-UX for now.

There is a crash when "group: compat" is used in /etc/nsswitch.conf
that I haven't been able to d...

f7f1617826d6b16c5612ce7ff2aac0323b8e97e6 authored over 3 years ago by Todd C. Miller <[email protected]>
Remove logsrvd closure ERROR state and use a boolean flag instead.

Fixes a bug where we would not insert a journal file that failed
to relay into the queue because ...

7b33974f2120f358e86258ba95c8d514d26ec174 authored over 3 years ago by Todd C. Miller <[email protected]>
Add NSS_TRYAGAIN and correct buflen in struct nss_XbyY_buf_t.

Add some function argument names. Also use struct nss_db_state *
instead of void * in nss_db_roo...

c5247845ac2e2d02f26ee9916327791a46d087ff authored over 3 years ago by Todd C. Miller <[email protected]>
Make sure we link with libsudo_util *after* libfuzzstub.

This only affects builds with a static libsudo_util.
Also fix a warning on HP-UX about main not b...

b913a832e8e2a4015d3952a679e16b2bb8c1c283 authored over 3 years ago by Todd C. Miller <[email protected]>
Add getgids utility to simular "id -G" using sudo_getgrouplist2()

dfaa9b95f1bbf3847a176c266fba6c0ab34175b2 authored over 3 years ago by Todd C. Miller <[email protected]>
Make sure we don't read or write past the end of the group buffer.

We need to leave room for the terminating NULL in gr_mem.
It is possible for gbm->numgids > gbm->...

3104d8ba0badc1c2e3aa2da522aed8a006ccd334 authored over 3 years ago by Todd C. Miller <[email protected]>
Add some debugging to sudo_getgrouplist2().

4b73c98c06b85fded23037fa5bd5855bd1e1d61d authored over 3 years ago by Todd C. Miller <[email protected]>
Fixed bad condition for sesh args

In selinux_edit_copy_tfiles() when there is only one file and the open()
fails then number of ar...

f44adcdf3c460fd27eb6a68f1169851634f1d33b authored over 3 years ago by Radovan Sroka <[email protected]>
Fix some debug_decl typos and remove an unneeded cast.

97f6fc259c40d1882a2a46773f9a756dcd72c31c authored over 3 years ago by Todd C. Miller <[email protected]>
T_TIMEOUT is not a bitwise flag so doesn't need to be a power of 2.

82f5592d67f4375386291b815cdef342bc84702c authored over 3 years ago by Todd C. Miller <[email protected]>
sudo_stat_plugin(): set errno but do not warn if plugin path too long.

The caller will display the warning (using errno) so there is no
need to do it twice.

b1d4a02eabf2c313271484690b1441c10db20163 authored over 3 years ago by Todd C. Miller <[email protected]>
sudoreplay does not parse sudoers to find the value of iolog_dir.

The default value for the I/O log directory is set at build time.

5087f688534f18bb616d833e4a9f99221c99ad8c authored over 3 years ago by Todd C. Miller <[email protected]>
Fix group list ref leak in sudoers_policy_store_result() on error path.

cc647c32e1140a44496dbd593cf45d5740fefa90 authored over 3 years ago by Todd C. Miller <[email protected]>
Update comment to match reality.

958066eddba46c2d3ec03606b194d433510357c0 authored over 3 years ago by Todd C. Miller <[email protected]>
Build sudo_noexec.so as a module on systems other then Darwin.

On Darwin, shared modules and shared libraries are not interchangable
and since we preload sudo_n...

2e492267e7bd8acb54db685c0467c09881c95d63 authored over 3 years ago by Todd C. Miller <[email protected]>
Use -Wno-deprecated-declarations on macOS

This quiets warnings about LDAP and audit libraries being deprecated.
We will use them until they...

31e6138115e643e8695681d3b50188b016f7c1d9 authored over 3 years ago by Todd C. Miller <[email protected]>
Use /usr/bin/cc on FreeBSD and macOS.

0645a2ade6c08719eb9758106b669e943ecb012f authored over 3 years ago by Todd C. Miller <[email protected]>
Don't include errno in "unable to connect to log server" message.

There should be a more specific message, usually with an error
string, displayed earlier.

78849e67285ed3262d9d2d40ec2dbabd2f57846a authored over 3 years ago by Todd C. Miller <[email protected]>
Fix compiler warning on FreeBSD.

d9b8311122dc766d52fa987f624e41203315891f authored over 3 years ago by Todd C. Miller <[email protected]>
Explicitly include netinet/in.h for struct sockaddr_in and sockaddr+_in6.

Fixes a compilation problem on FreeBSD.

96fb72e7cbac29086e51c57e5b629ac5a739e0e2 authored over 3 years ago by Todd C. Miller <[email protected]>
Updated translations from translationproject.org

ec0dcab3ce21ea3c34b2145f1d3c91a726b87d68 authored over 3 years ago by Todd C. Miller <[email protected]>
Better warning when close function is passed a non-terminal signal.

f2155c704f445f93a91352cd40ea0f5ee213dbaa authored over 3 years ago by Todd C. Miller <[email protected]>
Remove line causing store_suspend_local() to return false on success.

This is something that should have been removed as part of the local
I/O logging refactor.

0f5c8fe1214bf5dd62f44034d45a650d363b0ac1 authored over 3 years ago by Todd C. Miller <[email protected]>
Don't set the command status in the closure when the command is suspended.

This should only be set for signals that terminate the process.
Fixes a bug where the sudo front-...

3147bbeb24320a9d3a8a0aac47dd1fab115fb8de authored over 3 years ago by Todd C. Miller <[email protected]>
Quiet -Wshadow warnings from gcc.

6cdf49d33d2d6d1ad6542fbb6d4dc88fb98363b6 authored over 3 years ago by Todd C. Miller <[email protected]>
The -g option may also be used with any group the target user belongs to.

The description in the Runas_Spec section incorrectly stated that
the -g option could not be used...

7033f1c1d8df7f46b75adc38a797a12881ef897f authored over 3 years ago by Todd C. Miller <[email protected]>
Remove redundant "configuring Sudo version X.YY" line.

We now display this along with the summary info at the end.

2efa9035218c7e79d5fd0d1551242fbc6b9069cf authored over 3 years ago by Todd C. Miller <[email protected]>
Don't check for -Wl,-z,relro twice.

841e1b33fb53f646c31a7cf6e008a6a0e0f7a5dd authored over 3 years ago by Todd C. Miller <[email protected]>
Updated translations from translationproject.org

bfc17bc666a6d49a3022453b86f46b33acd7621e authored over 3 years ago by Todd C. Miller <[email protected]>
Build python plugin for RHEL 6 as well.

3018c1cd2d22f1253d3208c521d5195713235089 authored over 3 years ago by Todd C. Miller <[email protected]>
Remove shell-style quotes in configure warning/error/notice messages.

Square bracket quotes are used, no need for shell-style double quotes.

9b33594a43877bf787e932a73a1bdfc692ce3682 authored over 3 years ago by Todd C. Miller <[email protected]>
Summarize configure settings after all tests have run.

This makes it a lot easier to see what features have been enabled.

96436787a1695280b5bf5329b9581d358b68b2be authored over 3 years ago by Todd C. Miller <[email protected]>
Remove --with-efence option, there are better options available.

d71731e50d17f399f7afe54f6317fa43f44c2bfe authored over 3 years ago by Todd C. Miller <[email protected]>
Move misplaced changes into the 1.9.7 section where they belong.

f2081f902b11022fa9d7d8212773d196989b4d84 authored over 3 years ago by Todd C. Miller <[email protected]>
Awful hack to pass on macOS where group_source=dynamic by default.

468e9c7f48dc4596c070536e3988008c998af834 authored over 3 years ago by Todd C. Miller <[email protected]>
Updated translations from translationproject.org

0e9a5e4f90d1bb2d1b172aeb3d903db979cee5ae authored over 3 years ago by Todd C. Miller <[email protected]>
Document late stage 1.9.7 changes.

e6f1adcb2ccdb9014bcf4844fbeb2957ed8fdf97 authored over 3 years ago by Todd C. Miller <[email protected]>
sudo_sendlog: rename -m (max-time) to -s (stop-after).

9d734d57e795afde907edacf5e9b3525cc891281 authored over 3 years ago by Todd C. Miller <[email protected]>
Update closure->elapsed_time in journal_seek().

Otherwise the commit point messages won't be accurate when restarting.

caf096e1a14f4baee065272d4294c4f58b75fcd4 authored over 3 years ago by Todd C. Miller <[email protected]>
Add "-m elapsed" option to specify the max elapsed time of records to send.

Useful for testing the ability of the server to handle restarted log
transfers.

7376fa632f60963e8bd12587867871fd6338c472 authored over 3 years ago by Todd C. Miller <[email protected]>
Disable reading from client or relay when sending error to client.

We treat an error from the relay as fatal and must stop processing
data from both client and rela...

5a390663432446d89dfa085a5b8324807639cfd2 authored over 3 years ago by Todd C. Miller <[email protected]>
Fix I/O log restart of locally-store logs.

This got broken a while ago when evlog in struct connection_closure
was changed to a pointer.

c3534712de9627b20b88286299d1148dbaccc370 authored over 3 years ago by Todd C. Miller <[email protected]>
Fix detection of the volatile flag when other flags are present.

Otherwise flags fields like "volatile,ignore-other" will be ignored
by the Debian and BSD back ends.

b5542f8b2635ddad7b9fb7789c7da38a1b7199f2 authored over 3 years ago by Todd C. Miller <[email protected]>
Fix debug message when prctl(PR_SET_DUMPABLE, 0, 0, 0, 0) fails.

GitHub issue #101

51cbc626f8f54ff21d66df41dde143c520a1a81f authored over 3 years ago by Todd C. Miller <[email protected]>
Don't hard-code the TLS connect timeout, use normal connect timeout.

For sudo_logsrvd, this is the relay connect_timeout setting.
For sudoers, this is the log_server_...

109a0331a530626efd157d2f657b3b0526dc70fd authored over 3 years ago by Todd C. Miller <[email protected]>
Add missing closedir(3) in logsrvd_queue_scan().

Coverity CID 221591

06cb6459c10e3c2d46f229237662d6cfe354d4b5 authored over 3 years ago by Todd C. Miller <[email protected]>
Mention "log_server_verify" bug fix.

d204d4120419c44ba4c748d34ca15d41662bf258 authored over 3 years ago by Todd C. Miller <[email protected]>
Rename logsrvd log dir to /var/log/sudo_logsrvd.

fda17ecfda34d3e2d3f900f92ebea27add39d1f6 authored over 3 years ago by Todd C. Miller <[email protected]>
Make the failed relay retry interval configurable.

This is the amount of time to wait before trying to resend a
journal to the relay server after a ...

f49930c62eb3b0af986de64a5aa3897d6ec49015 authored over 3 years ago by Todd C. Miller <[email protected]>
Send outgoing messages to the relay server on startup.

Also attempt to retry messages that could not be relayed periodically.

177816b787c4874955ab40fb60707277ef40e9e5 authored over 3 years ago by Todd C. Miller <[email protected]>
Avoid clobbering errno in warning().

9077daee93ca37e97cd4e9a1170577622376a00e authored over 3 years ago by Todd C. Miller <[email protected]>