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

Fix typo in a test: python_policy->close not python_io->close

4e87e1a97b086ed6b2e331da7074d8a5ddb2ab47 authored over 4 years ago by Todd C. Miller <[email protected]>
plugins/sudo_python_module: Fix double free in sudo.options_as_dict function

PyArg_ParseTuple sets the py_config_tuple pointer, but it does not
increment the reference count...

f268e851d753ec6afed4dc52b08d620f0f693a4e authored over 4 years ago by Robert Manner <[email protected]>
Allow getentropy.c to compile when MAP_ANON is unavailable.

9d69c4a0220cd8ea27d407c3525f32bfdadff6a9 authored over 4 years ago by Todd C. Miller <[email protected]>
Remove multi-thread support from arc4random.

Sudo is not multi-threaded so we don't need the added complexity.

13cc65038f6c747f33892bcb94176a737cdba7a2 authored over 4 years ago by Todd C. Miller <[email protected]>
Backed out changeset 9dce3ebb2c37

MAP_SGI_ANYADDR cannot be used in place of MAP_ANON

aa7ea419f0791de9c3749a506b76d3abf72832e9 authored over 4 years ago by Todd C. Miller <[email protected]>
Fix compilation on IRIX; Bug #915

IRIX lacks MAP_ANON (and MAP_ANONYMOUS) but we can use the IRIX-specific
flag MAP_SGI_ANYADDR ins...

1fd82e1499db46b02b58514f778e186e189537e2 authored over 4 years ago by Todd C. Miller <[email protected]>
plugins/python/regress: add a failing textcase about python plugins affect each other

Since python plugins are run inside the same interpreter, they affect
each other's state, which ...

99f83941824f6de2774d421540b5be349df990d5 authored over 4 years ago by Robert Manner <[email protected]>
plugins/python: use separate python interpreter for each plugin

On each plugin initialization we create a separate python interpreter
which gets stored in the p...

22c64f58c06166e7ed7a46a6282ae09c5813a5a2 authored over 4 years ago by Robert Manner <[email protected]>
Fix crash in sudo 1.8.30 when suspending sudo at the password prompt.

The closure pointer in sudo_conv_callback was being filled in with
a struct getpass_closure ** in...

5472b1751645f750e42a0ba6daac667983b1a56c authored over 4 years ago by Todd C. Miller <[email protected]>
plugins/python/plugin_io: enable loading of multiple io plugins

Separate sudo io plugin symbols are created which stores wrapper
functions adding the context of...

304a7fdc1ffaf29767f7289d02bc3826c11eea85 authored over 4 years ago by Robert Manner <[email protected]>
doc/sudo_plugin_python: update doc about the multiple I/O plugin loading

9294108cd6be28463c3116c2c247a8c46c77d941 authored over 4 years ago by Robert Manner <[email protected]>
plugins/python/Makefile.in: update autogenerated header dependencies

d3d3a59e0802e4991667d60698054b2d511babe6 authored over 4 years ago by Robert Manner <[email protected]>
plugins/python/regress: add a testcase for multiple io plugin loading

to verify 2 python plugins can work next to each other.

2eeda38f95b41dcf94d76851fd07295c50b7216a authored over 4 years ago by Robert Manner <[email protected]>
src/load_plugins.c: plugins can supply a clone function

if they want to support getting loaded multiple times.

74f559155abc8b2a59c958d8f94eff00cbc64be0 authored over 4 years ago by Robert Manner <[email protected]>
plugins/python/pyhelpers: have a default sudo_printf function

Adapted the default sudo_printf from sudoers plugin to be able to print
errors before plugin ope...

d67c64bb37fabb0368cd192168bd025eb3699ad8 authored over 4 years ago by Robert Manner <[email protected]>
plugins/python: fix return value typo for the error case

3128cc97ca8e29af3e2e2d08add15d0e5a5cdd99 authored over 4 years ago by Robert Manner <[email protected]>
plugins/python/Makefile.in: remove path prefix from examples to make install target work

edd7356f2af8a60f9c46cc5eaccb45aace5e92e8 authored over 4 years ago by Robert Manner <[email protected]>
Document new tls_verify setting.

f4716a75e47269870e4bdfaedcb6dff4a9592227 authored over 4 years ago by Todd C. Miller <[email protected]>
logserver option to disable certificate verification on server side and server authentication on client side

24c9438486c509b920298a8cfece5659d1339f54 authored over 4 years ago by Laszlo Orban <[email protected]>
Rename tls_checkpeer to tls_reqcert in ServerHello message

9935a7e2ffa53bad0477ef4cfa387884c04d9c89 authored over 4 years ago by Laszlo Orban <[email protected]>
Use AC_CHECK_DECLS when checking for SSL_CTX_set_min_proto_version

Also use AC_CHECK_FUNCS to check for the other OpenSSL functions

c9b68ccb345d1dd4c31f8b71fd248df63c807819 authored over 4 years ago by Todd C. Miller <[email protected]>
Refactor code to allocate and fill struct plugin_container.

This will help avoid duplicate code in the audit and approval plugins.

fb5fc9876a5ef830c14550028ed4c3d9c1235ded authored over 4 years ago by Todd C. Miller <[email protected]>
Document TCP keepalive options in the manual pages.

07a2965bab3bf57438e03dd051ff53fa6d5395ec authored over 4 years ago by Todd C. Miller <[email protected]>
logserver: enable/disable SO_KEEPALIVE socket option based on tcp_keepalive configuration option in sudo_logsrvd.conf

38160d0ccb7dba31d118342e8f5491473b9b654a authored over 4 years ago by Laszlo Orban <[email protected]>
sudoers: disable SO_KEEPALIVE socket option based on log_server_disable_keepalive flag in sudoers

6f3f45aa244f2ef7e8860d269d3ee8d160949ed6 authored over 4 years ago by Laszlo Orban <[email protected]>
Add proper diacritical to Róbert's name.

b8e1422e84a36d3c5d8bfed12aa550eee86b861e authored over 4 years ago by Todd C. Miller <[email protected]>
Install a default sudo.conf file.

db1a9b155fc7d8a993385ed9b67a00fa4c8a7d81 authored over 4 years ago by Todd C. Miller <[email protected]>
Add support for building on OpenSSL 1.0.2.

This adds compatibility defines for some OpenSSL 1.1.x functions.

dde86e585fe6882c1e61ab04a19d536512d6b6b2 authored over 4 years ago by Todd C. Miller <[email protected]>
No need to export the validate_hostname() symbol.

We don't export symbols in convenience libraries, only installed DSOs.

a755c658a5aaaeca9f86e79063147ba6bc2fc383 authored over 4 years ago by Todd C. Miller <[email protected]>
Fix a few pointer signedness warnings on Linux.

1ba89682112ef6b1e12e82f7836459c5671dcc74 authored over 4 years ago by Todd C. Miller <[email protected]>
Store the server host name and IP in client_closure_fill().

Also check for getpeername() and inet_ntop() failure.

c3bd025052757354b805c9a2cf0caf154790b196 authored over 4 years ago by Todd C. Miller <[email protected]>
Fix handling of SSL_ERROR_WANT_{READ,WRITE} during normal I/O.

If we get SSL_ERROR_WANT_WRITE during SSL_read(), we need to resume
the SSL_read(), not call SSL_...

2d91555e852b040a37c91453b925dabd4c3bd0e5 authored over 4 years ago by Todd C. Miller <[email protected]>
Add siglist.c and signame.c as dependencies for depend target.

Fixes running "make depend" in lib/util dir when siglist.c or
signame.c are not already present.

36fbdc48ff2e6d580f40e2f48cd897c9516aaa63 authored over 4 years ago by Todd C. Miller <[email protected]>
Add abs_top_srcdir and abs_top_builddir and use them.

Configure provides absolution versions of srcdir, builddir, top_srcdir
and top_builddir. We can ...

5913c6364213f1fe3d025e96db2495d4163fcf77 authored over 4 years ago by Todd C. Miller <[email protected]>
generate_test_coverage.sh: example script to ease test coverage generation

Uses lcov and genhtml to generate test coverage. It is meant to be run
in a clean directory. Ext...

d9af3b2d3a805362b28e74477bc865431078217f authored over 4 years ago by Robert Manner <[email protected]>
plugins/python/regress: add missing license texts

8cacaabe9b0986a33f50bb7739529f4ab5d0cc17 authored over 4 years ago by Robert Manner <[email protected]>
plugins/python/example_policy_plugin.py: extend user env changing example

Make the demonstration extend the environment with a new variable.
Easier to read, and makes the...

0b2d0334b7efc9b6762f0c21f4386524fcbcd898 authored over 4 years ago by Robert Manner <[email protected]>
plugins/python: fix confusing version display

IO/Group/Policy Python API version is displayed instead of sudo version,
because that is not ver...

2ee1dd3ec36d46d5b083a453a01d9165cb8a9134 authored over 4 years ago by Robert Manner <[email protected]>
plugins/python/example_policy_plugin.py: make allowed_commands ordered

Storing them as "tuple" instead of "set", so they have a fix order.
This makes the output of the...

35c85596d7a3d52a5546dc51374b4547e30669bc authored over 4 years ago by Robert Manner <[email protected]>
plugins/python/python_plugin_policy: fix validate() call

When calling validate() python function, TypeError exception was thrown
("argument list must be ...

185471f2638cd69678c3be3fe1f06d070e595f56 authored over 4 years ago by Robert Manner <[email protected]>
plugins/python/example_debugging: fix typo in comment

8eab169098b71b8419fed5e49261a443a2c9910e authored over 4 years ago by Robert Manner <[email protected]>
plugins/python/python_plugin_common: raise debug level for module import

5be81eb25b358e715b2c03f51b76c5e18ea56da1 authored over 4 years ago by Robert Manner <[email protected]>
plugins/python/example_io_plugin.py: fix backtrace during destructor

If the plugin fails to open the file for writing, constructor will raise
an exception and exit b...

591d57ad28a31cfe65219d55014d9ee0603c8480 authored over 4 years ago by Robert Manner <[email protected]>
plugins/python/example_conversation.py: make log path configurable

Similarly to IO plugin example. (It is easier to test it this way.)

87d76f4bbc995dc8aa8a4e80ad66dfd35939a673 authored over 4 years ago by Robert Manner <[email protected]>
plugins/python/regress: adds tests for python plugin feature and examples

5da7bd562cda77b2526a01f88c7c3b1cda5bf3f1 authored over 4 years ago by Robert Manner <[email protected]>
plugins/python/regress/testdata: generated data for the pyplugin tests

383ca803332b66de47c5318e63f28cd22d418bf7 authored over 4 years ago by Robert Manner <[email protected]>
plugins/python/regress: load the python plugin dynamically

instead of linking with it.

40f21895868416d60cfec607a9817ea0a7f1c683 authored over 4 years ago by Robert Manner <[email protected]>
plugins/python/example_{io,conversation}: avoid printing signal number

They are platform dependant, so their test would fail on some platforms.
While we could create s...

f3b7f3c0d44f077d4bfc1e3de80a33b4112ad8a7 authored over 4 years ago by Robert Manner <[email protected]>
plugins/python: various portability improvements

b66ecf6e131cccce0ea09594713c84cbe56e95f3 authored over 4 years ago by Robert Manner <[email protected]>
Rebuild dependencies after hostcheck.c include changes.

1093e7bc4bd41545fd52fbb0386ec00525cb030e authored almost 5 years ago by Todd C. Miller <[email protected]>
Add debugging statements to certificate checks.

47d95047164edfb173600248aa6068edb9351bfe authored almost 5 years ago by Todd C. Miller <[email protected]>
Portability fixes and correct path to hostcheck.h in MANIFEST.

Include sys/socket.h for getpeername().
Link with -lnsl on Solaris to get inet_pton().

5a86073bd0f1fc561491faefaea1401367c2b97b authored almost 5 years ago by Todd C. Miller <[email protected]>
Using "libtool --clean" to remove regular files is slow.

We only need to use libtool's clean mode to remove files created by libtool.

d2b7148b6c0d45216e269478994848e6bfbe5279 authored almost 5 years ago by Todd C. Miller <[email protected]>
save a pointer to the currently connected audit server in the closure object

de02745a3f9c35463ea3852da5d923c8d214449c authored almost 5 years ago by Laszlo Orban <[email protected]>
implement host validation for the audit server SSL certificates

8d111db60230f9865958380c69f60285c61eac9a authored almost 5 years ago by Laszlo Orban <[email protected]>
do client identity validation in logserver

829fb9db848c8e32bc5b01fc2ddbc0e2b41c77df authored almost 5 years ago by Laszlo Orban <[email protected]>
do server identity validation in iolog plugin

a6916c2199a1b1ed23721b2d8505160f94049113 authored almost 5 years ago by Laszlo Orban <[email protected]>
Add examples/sudo.conf to ignore files.

7ceeca1eb03010ff2d1b4b4a0543797b9b9c9fdc authored almost 5 years ago by Todd C. Miller <[email protected]>
Fix mdoc lint warnings by removing .Pp before and after .Ss.

0ab02b8a1602c8515e8e960afe00807d947ffe24 authored almost 5 years ago by Todd C. Miller <[email protected]>
Remove whitespace at the end of the line in example sudo.conf

c9f26ebbb4739d7db2a4fcdb3e69ac1ec2a0353c authored almost 5 years ago by Todd C. Miller <[email protected]>
Fix TLS accept when SSL_accept() returns SSL_ERROR_WANT_WRITE.

We need to switch from SUDO_EV_READ to SUDO_EV_WRITE for this case.

9b12b21eaa1faef7b2b8984006b45635553e0f88 authored almost 5 years ago by Todd C. Miller <[email protected]>
Fix TLS connect when SSL_connect returns SSL_ERROR_WANT_READ.

We need to switch from SUDO_EV_WRITE to SUDO_EV_READ for this case.
Also make the tls connect eve...

36b3362b99cbe66e1d29d227b35fb943e5ab1de3 authored almost 5 years ago by Todd C. Miller <[email protected]>
Store submit time in struct iolog_info.

Fixes missing time stamp in remote I/O log info file.

fb9d7d8cc6d2226e8014b8e10481eb202d2c4151 authored almost 5 years ago by Todd C. Miller <[email protected]>
Treat EROFS (like EACCES) as a non-fatal error in dir_is_writable().

Fixes sudoedit on macOS 10.15 and above where the root file system
is mounted read-only. See htt...

9e12b71776d3b28b5613833e46f2798b33426aca authored almost 5 years ago by Todd C. Miller <[email protected]>
Really fix flushing of data in client_close().

Now that we call fmt_exit_message() from client_close() we do not
need to try to determine whethe...

161750fc56f10e1df0332616decbda8cce5994c0 authored almost 5 years ago by Todd C. Miller <[email protected]>
Use SUDOERS_DEBUG_* not SUDO_DEBUG_* in debug_decl() for the sudoers plugin.

bbb9520c3a3bce46952cae55194c3904d4a26b0d authored almost 5 years ago by Todd C. Miller <[email protected]>
Wrap calls to plugin event callbacks to use the plugin's debug instance.

Otherwise, the debug output in a plugin's event callback will go
to the sudo debug file, not sudo...

405d26f5b8d1b29f8c0cdb1dd325b4133257df14 authored almost 5 years ago by Todd C. Miller <[email protected]>
FreeBSD is missing SIGLWP (aka SIGTHR) in sys_signame[].

Don't test SIGLWP on FreeBSD where it is reserved for the thread
library and is not listed in sys...

41242e121fa20dd2366690fafe0ae2a0dd6576be authored almost 5 years ago by Todd C. Miller <[email protected]>
We want to use DT_RUNPATH in preference to DT_RPATH in ELF binaries.

Otherwise, LD_LIBRARY_PATH does not work when running the tests.
The GNU linker's --enable-new-dt...

aed69fb47150af89eb89b95fa438ecfca4f30a96 authored almost 5 years ago by Todd C. Miller <[email protected]>
Fix reference counting when both sudoers policy and I/O log are loaded.

If both sudoers policy and I/O log plugins are loaded, debug_files
will be empty when the I/O plu...

e7eef9c3a5ba90b5475cbe902b1a5cbdad79060c authored almost 5 years ago by Todd C. Miller <[email protected]>
Fix handling of duplicate policy and I/O plugins.

The warning message said the later I/O plugin was ignored but it
actually overwrote the existing ...

9c5c79194d9608024feb4365d19a91c8a4ae40b1 authored almost 5 years ago by Todd C. Miller <[email protected]>
For sudoedit_checkdir consider a user-owner directory to be writable.

The non-faccessat() code already did this so this just brings the
faccessat() path into alignment...

c592470dbd2aa83cbb2dfee49a14525381d120aa authored almost 5 years ago by Todd C. Miller <[email protected]>
Add newline before list of artwork authors.

e7480c341050b0a1d39767f68e94049aac745935 authored almost 5 years ago by Todd C. Miller <[email protected]>
Update copyright year.

bf68dce0533b5a82ac90b4f74f9f31203202903d authored almost 5 years ago by Todd C. Miller <[email protected]>
Remove MAXSYSLOGTRIES, it is no longer used.

3fddfedb53840dae7057c8ba38f591bbe1885ff9 authored almost 5 years ago by Todd C. Miller <[email protected]>
Iterate over io_plugins list in the iolog_* wrappers.

Moving the iteration into the wrapper functions simplifies the calling code.

0d2195c374a16f1e2c9bcc627005bed5292faf40 authored almost 5 years ago by Todd C. Miller <[email protected]>
policy_plugin is global, no need to pass it to policy_* functions.

b0a84c429244a1d2d0cc7c99acae93fa39f17979 authored almost 5 years ago by Todd C. Miller <[email protected]>
If --enable-openssl or --enable-gcrypt is given a path, append to LDFLAGS.

Previously we appended the path to SUDOERS_LDFLAGS but now that we
use OpenSSL in the log server,...

8747a9554eb4367aeddf8d0c8065deef3c348d7b authored almost 5 years ago by Todd C. Miller <[email protected]>
Add Robert Manner

b141213a10f710f95e2bee5b9be8fcf561dcec9f authored almost 5 years ago by Todd C. Miller <[email protected]>
Sanity check size when converting the first record to TS_LOCKEXCL

Coverity CID 206591

586b418ad85ff8c2e756eff7063ffaeca631fa02 authored almost 5 years ago by Todd C. Miller <[email protected]>
Fix coverity CID 206586.

Potential use after free calling gzstrerror() after gzclose().

9e57bea4e3c1f63a722a6ebaad3bf500cf678b02 authored almost 5 years ago by Todd C. Miller <[email protected]>
Use canonical pattern when freeing a tail queue.

Avoids some coverity false positives when using TAILQ_FOREACH_SAFE
to free the tail queue.

3e0dcae6c94f4b3f494a803e3ff0b7f47cf9a790 authored almost 5 years ago by Todd C. Miller <[email protected]>
Avoid potential NULL deref in tls_timed_connect() error path.

Coverity CID 206396

b3c5efd48e6ae911599f31063708255207715521 authored almost 5 years ago by Todd C. Miller <[email protected]>
Check for sudo_ev_add() failure; Coverity CID 206395 206397

920cdf421a8beecd30e643111a0da4fdcf0bd59a authored almost 5 years ago by Todd C. Miller <[email protected]>
Update sample sudo.conf with all supported settings.

The deprecated "max_groups" setting is not documented.

b527ac3fb5aad18e4f73e3071f1387f06ada3e0c authored almost 5 years ago by Todd C. Miller <[email protected]>
Remove POD-style C<> markup (typewriter font) from sudo.conf

8aa815643f721ace258fd56d14e073c397fdad34 authored almost 5 years ago by Todd C. Miller <[email protected]>
Substitute plugin dir into examples/sudo.conf

5bf07520210f150531bf185956f3a487a815ffec authored almost 5 years ago by Todd C. Miller <[email protected]>
plugins/sudoers/sudoers_debug.c: fix harmless debug deregistration warning

If the debug sudoers subsystem is not registered, because it does not
get any file names to deal...

972ea1448eefae3a7e813637cc463dfc2376c4d9 authored almost 5 years ago by Robert Manner <[email protected]>
plugins/python/Makefile.in: fix the install path of examples

Examples are installed by default to "docdir", which refers to
PACKAGE_TARNAME variable which wa...

3e9d15a4dabeda7c81f24adf60490b29a6b8a4a0 authored almost 5 years ago by Robert Manner <[email protected]>
doc/sudo_plugin_python: indent code examples for easier readability

3f890e4db8dbdc122395c1f190b5035c7b46adce authored almost 5 years ago by Robert Manner <[email protected]>
doc/sudo.conf: document developer_mode option

9871f7e37b59c1dbd9c284d91f0c07c07e0df70e authored almost 5 years ago by Robert Manner <[email protected]>
fix typo in previous

a76b7543bf1ccf6da733784c5f4629ab6f42a3ea authored almost 5 years ago by Todd C. Miller <[email protected]>
In update-pot match *.c not *c.

4eaea77fa3d4420486c41efe9fef12715127abff authored almost 5 years ago by Todd C. Miller <[email protected]>
Changes in sudo 1.8.30

a8c39ea81b3436809550ab7160929e756b6be316 authored almost 5 years ago by Todd C. Miller <[email protected]>
Add check for up to date def_data.[ch] in check-dist target.

f139d2361a5acc4891447c1512e41ab75b6437f9 authored almost 5 years ago by Todd C. Miller <[email protected]>
Use 64-bit resource limits on AIX.

1e25d03c98371c7a153007260234188b25f2a3b6 authored almost 5 years ago by Todd C. Miller <[email protected]>
When restoring old resource limits, try to recover if we receive

EINVAL. On NetBSD, setrlimit(2) can return EINVAL if the new soft
limit is lower than the curren...

dfabda3d49a49cdbf7f282588ba8ae585ff1fb9a authored almost 5 years ago by Todd C. Miller <[email protected]>
Sudo doesn't require such a large stack.

dbc905fdf8482b93937bb0222f56793a370be4f9 authored almost 5 years ago by Todd C. Miller <[email protected]>
Restore check for readable /etc/sudoers in pre-install target.

If there is no installed sudoers there is nothing to check...

047f37ade32088e6b61fd7e82a0d38020fa3e7ac authored almost 5 years ago by Todd C. Miller <[email protected]>
Enable OpenBSD extensions on NetBSD to get reallocarray(3) prototype.

c8532ae7a9f55f333165db8bcd759410445e62e0 authored almost 5 years ago by Todd C. Miller <[email protected]>