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

sudoers error recovery can be configured via an "error_recovery" setting.

This setting is an argument to the sudoers plugin, similar to how
sudoers_file, sudoers_mode, sud...

609910cc2110887a28564385a1cf85c6b2fbdbe9 authored about 4 years ago by Todd C. Miller <[email protected]>
Make this test pass with bison's verbose error messages.

360c2647602be09913ca8d0bf4f1f54df5870d9c authored about 4 years ago by Todd C. Miller <[email protected]>
Recover from a syntax error after the ':' in a privilege spec.

For compound privilege specs, don't throw away the entire thing if
we have a syntax error, only t...

c7bc24d40b62c038c050f729a70ddc95a4fc3cb3 authored about 4 years ago by Todd C. Miller <[email protected]>
Add explicit end-of-line matching in the parser for better error messages.

A valid line in sudoers must end in a newline or EOF.
Previously, it was possible (though not doc...

11803027c61f61be36c7cc25db20bdb090fd1eca authored about 4 years ago by Todd C. Miller <[email protected]>
Add NOMATCH token and use it in the lexer for an unmatched pattern.

The ERROR token is now only used for errors detected by the lexer
and for which we've already pri...

d72a48dc782b5b3db5e63284a319ee5eaa05e636 authored about 4 years ago by Todd C. Miller <[email protected]>
Enable error recovery for syntax erorrs that don't end with a newline.

A syntax error on the last line of a sudoers file with no trailing
newline is now recoverable.

de9c77ba7e4b2be2e781c55475b9b5b938ea93f4 authored about 4 years ago by Todd C. Miller <[email protected]>
Add error recovery for unexpected tokens after include/includedir.

94eb14c2147e94ead34acc9ce8283c340348f0c5 authored about 4 years ago by Todd C. Miller <[email protected]>
Sudo 1.9.3 changes so far.

9c258de89ea545e3b0f4b59bf9ec56a0634a0de8 authored about 4 years ago by Todd C. Miller <[email protected]>
sudo 1.9.3

31d41853b674ebbd11e34c1558d2603e986d331d authored about 4 years ago by Todd C. Miller <[email protected]>
Format the macOS minor version number with two digits.

This way we get consistent 4-digit version numbers even for macOS
verions like 10.3 or 11.0 where...

086aaeb446b224987844679774a7bdab6b89832c authored about 4 years ago by Todd C. Miller <[email protected]>
Add missing ZFALLTHROUGH and use spaces not tabs.

cb2eb8ea9486c1897f8877a46b82606c39a53026 authored about 4 years ago by Todd C. Miller <[email protected]>
Fix probe for macOS Big Sur

"sw_vers -productName" now returns "macOS", not "Mac OS X"

d12f7ccf252482c56bde5a3def847f2c2c356fda authored about 4 years ago by Todd C. Miller <[email protected]>
Fix some warnings from pvs-studio

a940a2c78ec58871e51be99f1c9c7dca1e5a96c6 authored about 4 years ago by Todd C. Miller <[email protected]>
Fix some warnings from pvs-studio

961a4afe67c04c86d700695b188809cd984152b2 authored about 4 years ago by Todd C. Miller <[email protected]>
Use angle quotes when including gram.h and def_data.c.

Otherwise, we can include the wrong file when doing an out-of-source
build when configured using ...

fb8ed8ba6633b028560444c6e0e56b1b8a397f84 authored about 4 years ago by Todd C. Miller <[email protected]>
Move inclusion of compat headers up with the system headers.

Now that sudo_dso_public is defined in config.h we don't need sudo_compat.h
before including the ...

cbad17a99443dbcd9e53daf640d04eb95ab048d6 authored about 4 years ago by Todd C. Miller <[email protected]>
Rename __dso_public -> sudo_dso_public and move to config.h.

985af422d2c4e806d9130a8e2f12b52c2253a3bb authored about 4 years ago by Todd C. Miller <[email protected]>
We no longer need to include sudo_gettext.h before sudo_compat.h

076d0376db676d7463945c890e96067fecae792a authored about 4 years ago by Todd C. Miller <[email protected]>
Add *.map to the ignore file.

4b0783b0b4414ef0585ab84ef4ad58611f9447cb authored about 4 years ago by Todd C. Miller <[email protected]>
Update to uncrustify 0.71.0

4193f548269ae729b78d72a7b57c13c571e9f9c6 authored about 4 years ago by Todd C. Miller <[email protected]>
Mention visudo in sudo(8) and document sudoers error recovery.

71a879d905ed810179d306b81fcc5ae7b6211df3 authored about 4 years ago by Todd C. Miller <[email protected]>
Use OpenBSD-compatible freezero() in place of explicit_bzero() + free()

ce97ca28db2bc09b07d555895bceafac4b8418b3 authored about 4 years ago by Todd C. Miller <[email protected]>
Switch from memset_s() -> explicit_bzero().

memset_s() (and all of Annex K) is likely to be removed from the
a future version of the standard.

cef6e3687e0e67eea8678024fe9a060d0a8d8047 authored about 4 years ago by Todd C. Miller <[email protected]>
Define YYERROR_VERBOSE for bison and rename COMMENT -> '\n'

This results in better error messages when there is a parse error

8a97150f563edae61e95b8ab2a187ad6aad8c1cc authored about 4 years ago by Todd C. Miller <[email protected]>
Some minor cleanup.

Use ntuples instead of tuple_last
Strip leading and trailing double quotes using a single gsub()
...

6702f4ac4e25083dbf108eedf1cf85599bef8942 authored about 4 years ago by Todd C. Miller <[email protected]>
Quiet some clang 10 analyzer warnings.

fa5d44b8b5ed13f759c63f78efe1efc9c564ea1b authored about 4 years ago by Todd C. Miller <[email protected]>
Refactor freeing of InfoMessage list into free_info_messages().

Also fixes a false positive from the clang analyzer.

63dadad9df9d1c1d436319dce2f04115ab0301ac authored about 4 years ago by Todd C. Miller <[email protected]>
Require that a @include line end with a newline or EOF.

We now parse the entire line before reading the include file. This
is less surprising behavior a...

5f5f28ac7c08277e41489846bf4e53e3ab2ad9ea authored about 4 years ago by Todd C. Miller <[email protected]>
Display more specific parser error messages when possible.

3235e4353c95256be41c9d9d4af9d413aced5e5d authored about 4 years ago by Todd C. Miller <[email protected]>
Let the sudoers parser recover after a parse error.

We currently just discard the line with the error.

7c342e586219ee03ad12291adec7b38a9a92edb0 authored about 4 years ago by Todd C. Miller <[email protected]>
Keep track of the position of the current token for error messages.

91cc68d7fdeaac9e31b6fec319389bdee6d7c9d3 authored about 4 years ago by Todd C. Miller <[email protected]>
regen

a8bfeba581aea5ba3faf9fd97bbe3c57e6251034 authored about 4 years ago by Todd C. Miller <[email protected]>
Sync sample_approval.exp with sample_approval.c

03816d020b2b629c69dddfdca4cf8fd869fe108b authored about 4 years ago by Todd C. Miller <[email protected]>
Store the current line in our own buffer for better error messages.

99f43f8a00171582d4e47e98eb93148e38a56545 authored about 4 years ago by Todd C. Miller <[email protected]>
Fix libssl dependency on Debian-based systems.

Older systems may still have libssl1.0.0, not libssl1.1.

c90539015f345590c2d7156f5b58e956811e08ff authored about 4 years ago by Todd C. Miller <[email protected]>
Add workaround for yyless() not resetting yy_at_bol.

2a58b19f9622ea0c50909cff1f6dd2e9137df3b4 authored about 4 years ago by Todd C. Miller <[email protected]>
Always use a linker script to hide symbols if it is supported.

We use this even if the compiler has symbol visibility support so
we will notice mismatches betwe...

4bc70c02c1e92c6bb41736c6bf0fdfa9c52f7850 authored about 4 years ago by Todd C. Miller <[email protected]>
Rename python_plugin.exp.in -> python_plugin.exp

There is nothing dynamic in this file.

38e28dcbf508580f08c9a0eed423bac7bff4ef88 authored about 4 years ago by Todd C. Miller <[email protected]>
Add missing python_plugin.exp.in file and remove unneeded __dso_public

This fixes building the python plugin on systems where the compiler
doesn't support symbol hiding...

3b4d4ab8dd36740a945c98356a9be4c92850e9af authored about 4 years ago by Todd C. Miller <[email protected]>
Use "foo in bar" syntax for testing existence of a key.

974f833e175732fe83dd43c4129e83b21427cbe4 authored about 4 years ago by Todd C. Miller <[email protected]>
Replace /*FALLTHROUGH*/ in generated code.

838255bb80b337e0abb51a2fcdf67994220b5168 authored about 4 years ago by Todd C. Miller <[email protected]>
Add ZFALLTHROUGH macro to use instead of /* FALLTHROUGH */ comments.

c87a47735d57824a4cce6679b47d3e20406b4a63 authored about 4 years ago by Todd C. Miller <[email protected]>
Use the fallthrough attribute instead of /* FALLTHROUGH */ comments.

03ad96e44580182effdb9b896938b6871bfbd8f1 authored about 4 years ago by Todd C. Miller <[email protected]>
Rewrite mkdefaults in awk.

20fd3b63636e52248c5da79e1d538bac845b5547 authored about 4 years ago by Todd C. Miller <[email protected]>
Update translators.

feebbd6d24e6b68a2ac064b760b5b7661eee6eeb authored about 4 years ago by Todd C. Miller <[email protected]>
Prompt user before truncating a file to zero bytes. Bug #922.

6ee98cf453772e13a037ee4d8f812fe6f28460e6 authored about 4 years ago by Todd C. Miller <[email protected]>
configure.ac: fix documentation about lecture

054939c1ed8160f97cd21dbec2afebeedeab6e68 authored over 4 years ago by kuberlog <[email protected]>
Updated translations from translationproject.org

bcf96c153f0e8139fe6c3798a9c5e8634fd2425b authored over 4 years ago by Todd C. Miller <[email protected]>
Handle openssl where there is no separate libcrypto pkgconfig file.

In this case, just use the full openssl libs to get the sha2 functions.

bd24a322cca90e000e372d3f98f69553f6f1d755 authored over 4 years ago by Todd C. Miller <[email protected]>
Ignore --enable-gcrypt if --enable-openssl is also specified.

10f8bb6398073075e9ea2e86d97c23b327ab22e2 authored over 4 years ago by Todd C. Miller <[email protected]>
Sudo 1.9.2

6a9ed1998bb4cc67bf5262c3dbd8fa06cdcf143f authored over 4 years ago by Todd C. Miller <[email protected]>
Fix some warnings displayed by autoconf 2.69b

This fixes the missing HAVE_GSSAPI_GSSAPI_H define in config.h.in.
TODO: replace shadow_funcs var...

be89bdcf7c8cbf9204c6ef83524cf050fd0ac521 authored over 4 years ago by Todd C. Miller <[email protected]>
Initialize sudo_conv and sudo_printf in sudoers_audit_open().

We will need them if there is an error parsing sudoers and leaving
them unset can result in NULL ...

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

1e4ce8525a71dfd45f57002d5c91fa4fbf37a7ff authored over 4 years ago by Todd C. Miller <[email protected]>
Export sudoers_audit symbol for compilers without symbol visibility.

b9ad3704d7eb49c3290cf097eed534a10922b173 authored over 4 years ago by Todd C. Miller <[email protected]>
Document the contents of the log.json file.

d6bc75e1e05129b273da5a64495eeab1fa65615f authored over 4 years ago by Todd C. Miller <[email protected]>
Fix typo, runas_uid should be runas_gid.

3175049e4568efc82ea003b1b1a6a240818b2cc0 authored over 4 years ago by Todd C. Miller <[email protected]>
Add sudoers_audit line for completeness, matching the documentation.

When sudoers is loaded as a policy plugin, it will be loaded
automatically as an audit plugin. L...

90dbdf8f300a87ac3d285039ec96702b59415495 authored over 4 years ago by Todd C. Miller <[email protected]>
Add some debugging statements around Defaults lookup.

e9a39c149a23ef286fb978a8134ada221e3c0352 authored over 4 years ago by Todd C. Miller <[email protected]>
Replace #includedir with @includedir in default sudoers file.

660738139bf5a717f6e783328a7ae0578653d0cd authored over 4 years ago by Todd C. Miller <[email protected]>
Allow HP-UX share libs and modules to link against static libs.

hppa64 and ia64 use PIC by default

9ef09595f9a7ec0683e50538e42a3abfc03cbb4c authored over 4 years ago by Todd C. Miller <[email protected]>
Use pkg-config to find the openssl cflags and libs if possible.

We support linking against static openssl libs too.

4cadd549513ef35d4d740e941576294f4491d13d authored over 4 years ago by Todd C. Miller <[email protected]>
Fix parsing of /etc/redhat-release on RHEL 8.

RedHat dropped the word "server" from the release name in redhat-release
which results in the awk...

d04805eecb48d3e484481e39332820ed21aabfea authored over 4 years ago by Todd C. Miller <[email protected]>
regen without `scare quotes'

820d6ae207a0df8b85acf8f684cccfde72016445 authored over 4 years ago by Todd C. Miller <[email protected]>
Replace or remove use of `scare quotes'

These don't translate well and look odd in many fonts.

df49897bd0e2c2995b4d494e7bec7ca4ed52f276 authored over 4 years ago by Todd C. Miller <[email protected]>
Add FALLTHROUGH comments to quiet -Wimplicit-fallthrough

95ba6645d2b18f30f29803a9a054e3f8e289aa08 authored over 4 years ago by Todd C. Miller <[email protected]>
Fix implicit fallthrough warning and add break to default cases.

1cec928d17f1e23a9776225bbbf97b82cb218cf2 authored over 4 years ago by Todd C. Miller <[email protected]>
Add -Wimplicit-fallthrough to --enable-warnings if available.

Note that clang 10 has support for -Wimplicit-fallthrough in C code
but doesn't recognize lint-st...

5e9346d4e969a2de02b291caf6cacbdadfdfd6b7 authored over 4 years ago by Todd C. Miller <[email protected]>
Fix some warnings from configure test programs.

23b1ee2f45d9809201c3aae0dfda11359bd7acbb authored over 4 years ago by Todd C. Miller <[email protected]>
Drop old test for -lcposix for ISC Unix.

f2dce25ac1ed7223729a25d8439dcfe0959967fc authored over 4 years ago by Todd C. Miller <[email protected]>
Mention sudo-blog announce list.

802058b362ceea854030e23957bc01ecec11330b authored over 4 years ago by Todd C. Miller <[email protected]>
Bugs #860 and #917 were fixed in 1.9.0.

e6d6e9ba05b2ccf02372a88278de5532c33f787b authored over 4 years ago by Todd C. Miller <[email protected]>
regen to fix a typo

65edf6344d2ce4b6460f1b8a6379ffb5a15be81d authored over 4 years ago by Todd C. Miller <[email protected]>
Add regress test to catch swapids() bug when called by iolog_mkdtemp()

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

88393fc96fba1341cda9b6c8e8cb0bbb54430751 authored over 4 years ago by Todd C. Miller <[email protected]>
Document the order in which the plugin open/close functions are called.

ce76c9fe8ad181edde62b17834abfed0dd050128 authored over 4 years ago by Todd C. Miller <[email protected]>
Fix a typo that prevented swapids() from restoring the original gid.

This led to a regression when the iolog_file setting ends in six or
more X's or when the I/O logs...

bc6e36e940d40f4c701f7b90bfd259017e7904e6 authored over 4 years ago by Todd C. Miller <[email protected]>
Replace master/slave in code with leader/follower.

8bb5aedacf3b68f926b27c7d13aeb33d366da880 authored over 4 years ago by Todd C. Miller <[email protected]>
Replace terms master and blacklist in docs and examples.

f093cb2e5220c5ca7f2d6b04483af214016b72c5 authored over 4 years ago by Todd C. Miller <[email protected]>
Bug #929

4a3aff156f5264c8f89c84e36da14a71a63d877f authored over 4 years ago by Todd C. Miller <[email protected]>
Clean up temporary sudoedit files on success; Bug #929

This is a regression introduced in sudo 1.9.0.

bee9950593dbad21da78d562c86036793a6bfdf6 authored over 4 years ago by Todd C. Miller <[email protected]>
New Romanian translation

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

7f96e4537c4583025f9f0fdf9624b54c221d59da authored over 4 years ago by Todd C. Miller <[email protected]>
Romanian translation from translationproject.org.

d003da33dd7199c41c01e5157e2c534b669f248e authored over 4 years ago by Todd C. Miller <[email protected]>
Add missing entry for the LDAP/SSSD sudoHost regression.

Also add new Romanian translation

47b2df64cf7d4c347f6a3bffb8cacec2122b6bd0 authored over 4 years ago by Todd C. Miller <[email protected]>
Fix a typo in the audit string when "sudo -E" is not allowed.

852d8c7953e63933c85cc92b36b27618cb6545c3 authored over 4 years ago by Todd C. Miller <[email protected]>
Check asprintf() return value.

3e12b99eedd6a0312cf580246ec8ac6d925e14e2 authored over 4 years ago by Todd C. Miller <[email protected]>
Prefer the python3 in /usr/bin on Solaris.

The /opt/csw version, if it exists, may be a 32-bit version which
we can't link with. Also handl...

a33994584837479e75e1655919dc6c4fb23df8bc authored over 4 years ago by Todd C. Miller <[email protected]>
Declare getdelim(3) if it exists in libc but is not prototyped in stdio.h.

This can happen on systems with a gcc packages that was built on
and older versions of the OS whe...

48c2bd0007e10329e77d5d84dbf6c9ee16a752b6 authored over 4 years ago by Todd C. Miller <[email protected]>
For python3-config, only use -I and -L/-l from --cflags and --ldflags output.

Otherwise we may get other flags used to build python that conflict
with what sudo uses.

17b3f90f74767812ec91b663acc2f047888fa4e9 authored over 4 years ago by Todd C. Miller <[email protected]>
Build 64-bit binaries and the python package on Solaris 11 and above.

No longer prefer the Solaris Studio C compiler over gcc, it causes
issues with the Python plugin.

6c881477b6f9bf9e1a75992b40250a33f4c78726 authored over 4 years ago by Todd C. Miller <[email protected]>
Fix memory leak on error in fmt_info_messages().

8da1f31954569db15ebf2033b90326dcbd01b60b authored over 4 years ago by Todd C. Miller <[email protected]>
Update for 1.9.1b1

3f4de69497e02f06e4814984af74479d1a3c0e59 authored over 4 years ago by Todd C. Miller <[email protected]>
regen for sudo 1.9.1

d4e92164f539922355acaa43c56c05943495dd93 authored over 4 years ago by Todd C. Miller <[email protected]>
Add basic support for reject and error audit events to sudoers.

This is only used when logging events from plugins other than sudoers,
such as an approval plugin...

f047377a078ba6496afb37cd05ef0ce258d3fbab authored over 4 years ago by Todd C. Miller <[email protected]>
Fix Solaris and BSM audit warnings.

Use BSM audit on Illumos, which lacks Solaris audit.

15d93a1ca7939dbc775d4c1abd9fde66de3cca7b authored over 4 years ago by Todd C. Miller <[email protected]>
Track whether the session was opened in sudoers.

In sudoers_policy_close() only warn about being unable to run the
command if we actually opened t...

a5a721593633794ed9b6e38f166e21522abea22b authored over 4 years ago by Todd C. Miller <[email protected]>
Only display an error in the built-in policy close if command is set.

If a policy or approval plugin denies the command, command_details
will not have been filled out.

1198dfc930093f0b76c3fcd729ae4a35b013198c authored over 4 years ago by Todd C. Miller <[email protected]>
Avoid passing NULL to printf in match debug code for LDAP/SSSD.

The file name in struct userspec was not set for the LDAP and SSSD
backends. There is no actual ...

49e43f580c67609dfa123e35d2394a9af8d076ab authored over 4 years ago by Todd C. Miller <[email protected]>
Add missing const to linux_audit_command()'s argv function argument.

b40551dc32907f6c20f468f6ca6d6fb91bd1d44a authored over 4 years ago by Todd C. Miller <[email protected]>