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 a source to struct sudo_nss and use it if getdefs() fails.

Also remove useless "Problem with defaults entries" warning in testsudoers.

6ec279532e2b1e441449dd710e662275aaecc81c authored over 2 years ago by Todd C. Miller <[email protected]>
Plug a few test memory leaks now that they return from main().

31ab2e2297aa1cdd4f4b7f0336b9c91e3c784306 authored over 2 years ago by Todd C. Miller <[email protected]>
Remove extra newline in sudo_warnx() calls.

346dce43580033215cd81b0b123a519328701ff3 authored over 2 years ago by Todd C. Miller <[email protected]>
Preserve the column and error message when there is a syntax error.

This information is now included in the error mail sent to root.

7d3f9293c6823e9ade52f222348f3417ebd03fda authored over 2 years ago by Todd C. Miller <[email protected]>
Deinit python subinterpreters in reverse order (last to first).

This appears to work around a crash on OpenBSD with Python 3.9.10.

dfda098ae7513735eb9d67d54481ae42739feb8c authored over 2 years ago by Todd C. Miller <[email protected]>
For 'make check-verbose' run fuzzers with -verbose=1

This is the default for libFuzzer but not for the stub fuzzer lib.

c131b274743471a1532e3bd5c339d72889059ca3 authored over 2 years ago by Todd C. Miller <[email protected]>
INSTALL.md: Mention "make check" and "make check-verbose"

ecaa8ab4281c639b8604e2f2349cd42df6aa6db5 authored over 2 years ago by Todd C. Miller <[email protected]>
Repair generate_test_coverage.sh after move to scripts directory.

9f47ea5cb0766eefe440e55a7afc971ab8675a41 authored over 2 years ago by Todd C. Miller <[email protected]>
Add check-verbose Makefile target that runs tests in verbose mode.

cdee5d48daafa6eaa68f907c2af7e6da0c57655a authored over 2 years ago by Todd C. Miller <[email protected]>
Add -v option parsing to regress tests, currently a no-op.

This will be used by a "check-verbose" target in the future.

43cc80d795c8fc40eb8229fcdbac0461a211504b authored over 2 years ago by Todd C. Miller <[email protected]>
Less verbose output unless the -v option is used.

Also display a test summary at the end.

dda14cb57afbfa0c6d7c38d517ff8cc886ffd190 authored over 2 years ago by Todd C. Miller <[email protected]>
verbose flag is boolean, not int

2c329dbe4287f644294e647a7d50e8f972e477a8 authored over 2 years ago by Todd C. Miller <[email protected]>
Update copyright year.

908ae9510d04285873725e488b4be1ff124d9467 authored over 2 years ago by Todd C. Miller <[email protected]>
Regenerate dependencies.

e9155a067cb5a9cacee76984a77d6aebe6631718 authored over 2 years ago by Todd C. Miller <[email protected]>
Add sudo_closefrom() regression test.

75a0e51590310d1574ec46ed269c39b9fe30140e authored over 2 years ago by Todd C. Miller <[email protected]>
Use close_range(2) in closefrom() emulation if available.

On Linux, prefer our own closefrom() emulation since the glibc
version may fail if /proc is not p...

f1a697a8fff5f1ff2a15a9d8eeebb056aae90a96 authored over 2 years ago by Todd C. Miller <[email protected]>
Repair --enable-pvs-studio on Linux.

c3177ce831aac04f3b05e612ea452ccd5c52aead authored over 2 years ago by Todd C. Miller <[email protected]>
Mention apple radar 3710161 in the comment about broken macOS poll(2).

10ca59097e43dd898edd197596cab69b25937612 authored over 2 years ago by Todd C. Miller <[email protected]>
Only display test totals unless run in verbose mode.

a199abe0e5362563b744516773abe390b7e04d75 authored over 2 years ago by Todd C. Miller <[email protected]>
Allow test harness to be run from any directory.

Also add missing copyright notice.

c2bd52edf81ec55ade4073f85ffca6a443ca0575 authored over 2 years ago by Todd C. Miller <[email protected]>
Adapt test harness for lib/util and move to regress directory.

a4f847b1d675f4413fff5bbecd74d4c5c91c1ae6 authored over 2 years ago by Todd C. Miller <[email protected]>
Adapt test harness for lib/util and move to regress directory.

a57e97996230a3ae30f03ff70d2f5a38684e14f7 authored over 2 years ago by Todd C. Miller <[email protected]>
Make fuzzer stub main() quiet by default.

LLVM LibFuzzer displays the input and running time by default but
we don't care about that for th...

6a8452367107f118736a2535dc75649900084780 authored over 2 years ago by Todd C. Miller <[email protected]>
Move the cvtsudoers/sudoers/testsudoers/visudo tests into a script.

It is easier to maintain these tests in script form. The output
now more closely matches that of...

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

e7b7c902db85b72359eb95a9e76cd82096c096db authored over 2 years ago by Todd C. Miller <[email protected]>
sudo_regex_compile_v1 stub: set errstr on error

e703feeae20af8d97c947612559c0c7b518ba914 authored over 2 years ago by Todd C. Miller <[email protected]>
fuzz_logsrvd_conf: add stub version of sudo_regex_compile_v1().

We want to fuzz our parser, not the libc regular expression code.

590c4cf62fdfbf4115554c41eb3554a4af4e8c5d authored over 2 years ago by Todd C. Miller <[email protected]>
testsudoers/test18: don't rely on /usr/bin/w being present

Fixes a test failure on Alpine Linux.

e5bbd3383471d3fba8e6a2a5381844a4a834906f authored over 2 years ago by Todd C. Miller <[email protected]>
Add configure check for gzclearerr() when using system zlib.

42f735c8ddd434bdfd03ddedad592b2bfaba161b authored over 2 years ago by Todd C. Miller <[email protected]>
Fix PVS-Studio platform check for macOS.

68bc030c0cd457124c713a2e90445e6b17b7bb92 authored over 2 years ago by Todd C. Miller <[email protected]>
sudo_ldap_parse_options: fix memory leak of sudoRole cn string.

Coverity CID 249976

22a01410bdac0ead284e0611b7814a56973a860a authored over 2 years ago by Todd C. Miller <[email protected]>
command_allowed: plug memory leak on strdup() failure.

Coverity CID 249972

f793042becf7d2cd91126601b401a116ed57310e authored over 2 years ago by Todd C. Miller <[email protected]>
display_lecture: just return if callback is NULL

b1fd1ec0fc88d4e0bdca5b5829682823e47a3d08 authored over 2 years ago by Todd C. Miller <[email protected]>
For alert messages it is possible for evlog to be NULL.

Coverity CID 238641

330b4e821ba5d9e7b6b0340ab3f41fe434a08568 authored over 2 years ago by Todd C. Miller <[email protected]>
iolog_seekto: initialize struct timing_closure before using.

Coverity CID 249977

8290a1e57aafad8544cb5400dab74e43463b35ec authored over 2 years ago by Todd C. Miller <[email protected]>
iolog_rewrite: initialize struct timing_closure before using.

Coverity CID 249971

2315c0b3bbe9ed328e098701209a16376ddaf799 authored over 2 years ago by Todd C. Miller <[email protected]>
Allow ARCH_FLAGS to be overridden and handle macOS 12.

79d8500347295d0f71124a58b31d86307c00cbb9 authored over 2 years ago by Todd C. Miller <[email protected]>
Prefer if [ ... ]; then over if test ...; then.

9f427b0172708e202f3d3295c848e5b851c467ec authored over 2 years ago by Todd C. Miller <[email protected]>
Do not build with -Werror on macOS.

Some macOS warnings are bogus, for instance it has an incorrect
getgrouplist(3) definition.

77164836f10bbda8ef13eff5f730b68dcab9fd62 authored over 2 years ago by Todd C. Miller <[email protected]>
Build and test macos with circleci.

cf8451127357d3c68d0eb16cb1ec56575a9d009f authored over 2 years ago by Todd C. Miller <[email protected]>
Mention lecture behavior change.

c7fb513594a440c35c147f04ad582c728234cee6 authored over 2 years ago by Todd C. Miller <[email protected]>
Fix compilation on systems without a real openat(2).

eaf76278ec5d51e072601fb628bfa76e3e01d9e4 authored over 2 years ago by Todd C. Miller <[email protected]>
Better warning message when the digest in sudoers is the wrong length.

b0fa769504160d818f0ee5e50eecb9a43b8d4b76 authored over 2 years ago by Todd C. Miller <[email protected]>
Do not disable fuzzer output if SUDO_FUZZ_VERBOSE env variable is set.

41bc52302bde0e16ccd6db6d73810550dc659aba authored over 2 years ago by Todd C. Miller <[email protected]>
Display the lecture immediately before prompting for a password.

This means we no longer display the lecture unless the user is going
to enter a password. Authen...

2911c31dd761c339e3dc9c94f5e9275d5643e4aa authored over 2 years ago by Todd C. Miller <[email protected]>
Add back warning when a user is not allowed to run a command.

Previously, the warning was displayed when a user was not in the
sudoers file, or was present but...

9757d29a24ac1872872cf09757b0439c54089707 authored over 2 years ago by Todd C. Miller <[email protected]>
Document that negating mailto or mailerpath disables sending mail.

973a8f08f9938350d5a03d4426a59af241a0e512 authored over 2 years ago by Todd C. Miller <[email protected]>
Remove obsolete TODO file.

81d63244e9eb26f7d7b026447deca7fd263b1263 authored over 2 years ago by Todd C. Miller <[email protected]>
Don't try to send mail if mailto not set or the mailer is not present.

98ac09de38afc54c9272aff249414f17fa4084f4 authored over 2 years ago by Todd C. Miller <[email protected]>
Updated translations from translationproject.org

bde48fb4c5e2954e82d2dcb8c81eb01ae3436d08 authored over 2 years ago by Todd C. Miller <[email protected]>
Add tests for iolog filtering.

This is the functionality used by the log_passwords and passprompt_regex
options.

cadfbfedb91c4754ecd4d5361f69c7cabed1da12 authored over 2 years ago by Todd C. Miller <[email protected]>
iolog_pwfilt_run: apply regex on ttyout even if we disabled filtering.

The heuristic used to decide when to disable filtering is when we
see another ttyout buffer or fi...

b19bd985310fb629e08ec9bcf3983e6a4e6e3e74 authored over 2 years ago by Todd C. Miller <[email protected]>
Avoid using "note that" and "note: " in documentation.

9f5615e5b10ff58cd8ceac6f16f6c8c0c7303add authored over 2 years ago by Todd C. Miller <[email protected]>
Remove "please" from the documentation, it is considered bad style.

9175954895f2babffb7660c81f817cc47f1b9e28 authored over 2 years ago by Todd C. Miller <[email protected]>
Mention regular expressions and "sudo -l -U user" behavior change.

c4fc9b695b1e836c338ea2a4d9c555f079a953c6 authored over 2 years ago by Todd C. Miller <[email protected]>
Add security notes about regular expressions in sudoers rules.

339ef82d62a7ffc5e0dabb38bede654922dfe9a5 authored over 2 years ago by Todd C. Miller <[email protected]>
Update NEWS for GitHub issue #134.

03484c0c1d4e84e3d7c3bc43c370a42b8194d403 authored over 2 years ago by Todd C. Miller <[email protected]>
do_logfile_sudo: plug memory leak of full_line

Coverity CID 249329

274468d7d2d7f20d09b034c572aafd22d20fe0f0 authored over 2 years ago by Todd C. Miller <[email protected]>
log_server_alert: plug potential memory leak

Coverity CID 249328

f01b0440107638fb6d008f7bdbae73afea1cc515 authored over 2 years ago by Todd C. Miller <[email protected]>
fmt_authfail_message: compute the exact amount of space needed.

Instead of truncating on overflow, warn and return NULL.

de52b8e4437104e2afeb9b6d5c03f6aa479f6be4 authored over 2 years ago by Todd C. Miller <[email protected]>
Fix potential NULL deref if getpwuid(0) fails.

Coverity CID 249326

72961fe433c0d26cb57c76d0559bedb529d47f05 authored over 2 years ago by Todd C. Miller <[email protected]>
Restrict "sudo -U other -l" to users with sudo ALL for root or "other".

Having "sudo ALL" permissions in no longer sufficient to be able to
list another user's privilege...

9f695f0fcc749b3cdebc453ba4fdeae84114f3ae authored over 2 years ago by Todd C. Miller <[email protected]>
Reword some of the NEWS items for 1.9.10.

df1bb3814babb29458d2a8a4504bde47c9a47f7c authored over 2 years ago by Todd C. Miller <[email protected]>
Limit regular expressions to 1024 characters each.

Avoids a problem with the fuzzer creating large regular expressions
that blow up the glibc regcom...

33f54c853b883f77346bd3dddec2df8aeccfa341 authored over 2 years ago by Todd C. Miller <[email protected]>
Substitute values in the example syslog.conf too.

Also update ignore files for example changes

63b2a62f8ac00b2b19a18c93319614f265e992fe authored over 2 years ago by Todd C. Miller <[email protected]>
Substitute paths set by configure in examples. Bug #1023

0bbe4b1813bbc54a7ec447117a9bcb6419e8499a authored over 2 years ago by Todd C. Miller <[email protected]>
Update Project-Id-Version to 1.9.10.

0e2e4b6882e76295193c525d0581a9b9032aa2fb authored over 2 years ago by Todd C. Miller <[email protected]>
Update .pot files for 1.9.10

541c165e65323b8160d8d6e43cfcbe3160d62a89 authored over 2 years ago by Todd C. Miller <[email protected]>
Sudo 1.9.10

85f9f2beb6756330abfd26e451579f289b75478c authored over 2 years ago by Todd C. Miller <[email protected]>
Add helper function to compile a regex that supports (?i).

7c17f84a352c8425f121d4148125ac2c837cccf7 authored over 2 years ago by Todd C. Miller <[email protected]>
Add support for matching command and args using regular expressions.

Either the command, its arguments or both may be (separate)
regular expressions.

86d2173937535a7681957cded774202e4150ab90 authored over 2 years ago by Todd C. Miller <[email protected]>
Clear sudoers_errstr after it is used.

This way we avoid printing the same error message more than once
if there are multiple ERROR toke...

c8bf59104285cc26a716e8e7aa20ae2bb474167e authored over 2 years ago by Todd C. Miller <[email protected]>
store_iobuf_local: fix potential double free on the error path.

3c1ce4bf72358b9ff96471b4b861bf56f2863e30 authored over 2 years ago by Todd C. Miller <[email protected]>
Update links to sudo web site and reference markdown docs.

3b6f620e3ef2129a3f492717f2e6a2f68ca7a8ea authored over 2 years ago by Todd C. Miller <[email protected]>
Use a 4n indent for code blocks instead of the default 6n.

7b5f0dfaf7c14b3014d765fd93fe7d709f0963a2 authored over 2 years ago by Todd C. Miller <[email protected]>
testsudoers: disable argument permutation in GNU getopt

This makes it easier to test commands with arguments.

4e3a48f2d1003b51f507a48547ab0c91cd6add99 authored over 2 years ago by Todd C. Miller <[email protected]>
iolog_pwfilt_run: fix types in error return

b6a2fcf59f249b172f77bc02fee0f2c632f2de22 authored over 2 years ago by Todd C. Miller <[email protected]>
Free potential leaks of passprompt_regex_handle.

Coverity CID 249057

c5027c796cc9f349b8b94b4b113c8791adc35478 authored over 2 years ago by Todd C. Miller <[email protected]>
Merge pull request #133 from Dzejrou/main

Do not unset user timeout when no default timeout is set.

8dc2dc8bbc20abfeb3d300d48b222164577b81c9 authored over 2 years ago by Todd C. Miller <[email protected]>
Do not unset user timeout when no default timeout is set.

1f3815c4fb3f282250ff30626979d224e30b4b05 authored over 2 years ago by Jaroslav Jindrak <[email protected]>
Don't escape double quotes (") in a command when printing it.

Previously, cvtsudoers and "sudo -l" would escape double quotes in
a command or command line argu...

10ad934b77f6af80410d9055ea6bcc1bd06b67ad authored over 2 years ago by Todd C. Miller <[email protected]>
A few minor (mostly cosmetic) fixes.

Add missing ALL to Runas_Member and Host.
Replace some tabs with spaces.
Fix the syntax of a sudo...

8adad85b4bf9629814a94a9b34974b7172eed97c authored over 2 years ago by Todd C. Miller <[email protected]>
Merge pull request #132 from ninedotnine/patch-1

Sync example sudoers with default sudoers

53d3e200997860c6a931d9aa2efe8fd15667fa85 authored over 2 years ago by Todd C. Miller <[email protected]>
Sync example sudoers with default sudoers

`sudoers.in` was changed by 1d13533

8130dc9cb7922a137b7dc6e0827d7ea8d4fd8d86 authored over 2 years ago by dan soucy <[email protected]>
Upgrade http links to https where possible and fix some broken links.

c5133d84ebf25e8df92e38c24fe2e34a0a0fec08 authored over 2 years ago by Todd C. Miller <[email protected]>
Remove "This incident will be reported." from user warnings.

This used to indicate that email had been sent to the administrator
telling them that someone tri...

6aa320c96a37613663e8de4c275bd6c490466b01 authored over 2 years ago by Todd C. Miller <[email protected]>
Log fn_get_values() return code in the debug log on error.

Also move a nested switch() statement out of 'case 0' for
improved readability.

4d0aeea68876fb74deb278c099e01c0f1d47e7b4 authored over 2 years ago by Todd C. Miller <[email protected]>
Do not return an error if we cannot connect to the SSSD connector.

This may simply mean that nsswitch.conf lists sss as a sudoers
source but SSSD is not configured ...

de0f4398e2e941d480c18ca541583b46a5a3c1bb authored over 2 years ago by Todd C. Miller <[email protected]>
Set client_closure to NULL after freeing it.

c236d58b5a51290da954ce6b4da3088c8a489cfb authored over 2 years ago by Todd C. Miller <[email protected]>
client_closure_alloc: init write_bufs/free_bufs before other allocations.

We must initialize the tail queues before any possible call to
client_closure_free(), such as due...

3f1bb7bc97c733cbfef391e492d4482990f0c933 authored over 2 years ago by Todd C. Miller <[email protected]>
Add missing default return in last commit.

c4e67624e3bed103a226dde523bbe4338ad2dadd authored over 2 years ago by Todd C. Miller <[email protected]>
sudo_logsrvd: make sure journal exists before writing the alert message.

Fixes a potential NULL dereference when journaling an alert message.

d18ee79354d8c9970a9d00689a41fde3b9eedd65 authored over 2 years ago by Todd C. Miller <[email protected]>
Fix compilation on Debian kFreeBSD.

The configure script correctly detects that utimensat() and futimens()
are missing but the header...

2e957cd43df59a951d5eb40a45593f8d4c9dee39 authored over 2 years ago by Todd C. Miller <[email protected]>
Add fallback if /proc/self/stat or /proc/pid/psinfo is missing or invalid.

If the /proc file indicates no terminal is present there is no fallback.
Bug #1020

a2994062916ae9751e57d07848a14f016e82e49b authored over 2 years ago by Todd C. Miller <[email protected]>
Add sudoers option to perform authentication even in non-interative mode.

If noninteractive_auth is set, authentication methods that do not
require input from the user's t...

85fef8b50f0847f4fce39a7fead9aae767be1dca authored over 2 years ago by Todd C. Miller <[email protected]>
Work around a glibc regcomp() bug with repeated '+' operators.

Glibc regcomp() has a bug where it uses excessive memory for repeated
'+' ops. Collapse them to ...

6564f1ae4cb548694215edf333a79f2a8b653887 authored over 2 years ago by Todd C. Miller <[email protected]>
Rebase seed corpus on updated sudo_logsrvd.conf example.

ac555d454f405dbe57e0d8aa5e544ed9d0198e97 authored over 2 years ago by Todd C. Miller <[email protected]>
Fix parsing of "retry_interval" in the relay section.

The setting was present but the callback was missing so it could
not be parsed in the conf file.

ad719d06be400d4515429ee4b0e3d838fed7d68c authored over 2 years ago by Todd C. Miller <[email protected]>
Use TIME_T_MAX as the upper limit when parsing timeouts.

2df2276d56f5fe56ce722626a8341da82bae5aa0 authored over 2 years ago by Todd C. Miller <[email protected]>
converse: don't set response pointer on error

Linux pam_conv(3) says not to set the pointer on PAM_CONV_ERR.

46ca288216f3c4782b9ea6b005a3d874e5ac1dc7 authored over 2 years ago by Todd C. Miller <[email protected]>