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
481427f9f0d6229915b8cdc283317384653aa339 authored over 4 years ago by Laszlo Orban <[email protected]>
a89ddb63fd16ba9597c29bca70274af59371d5d0 authored over 4 years ago by Todd C. Miller <[email protected]>
024b146d06fa8b74c2d079ffd02eec0dac7a44ca authored over 4 years ago by Todd C. Miller <[email protected]>
1034d3f5b68f6c8de4421ed4e8a70b79fb3fc331 authored over 4 years ago by Todd C. Miller <[email protected]>
The Signals enum was added in Python 3.5. If it is not present we
need to iterate over the dicti...
When converting sudo options from a dictionary to a tuple we need
to track the current index into...
For rpm and deb we include the file directly and mark it volatile.
For all others we copy it in t...
Also intialize with_python to false.
eebe68233c88fd8bbd8f738d7a20576688b1db80 authored over 4 years ago by Todd C. Miller <[email protected]>6d32858b4f91b1224d643e7f118ea6c50b19e03a authored over 4 years ago by Todd C. Miller <[email protected]>
3bf41722725c06edaa25e426bc5f11b43fd6a53e authored over 4 years ago by Todd C. Miller <[email protected]>
This makes it possible to update the Debug settings in sudo.conf and
have them take effect on rel...
Otherwise, only the debug framework gets the actual error and the
user won't see the problem.
Also store the host + port string and use it in error messages.
18ff60f6ffdbe2026c18232c8f7eaed84fc1cdd6 authored over 4 years ago by Todd C. Miller <[email protected]>55eb0a633ccf09ef2337021d5c4fcf61ec5daf1b authored over 4 years ago by Todd C. Miller <[email protected]>
700becabc09c15d433a57543e89991fdaf969c44 authored over 4 years ago by Todd C. Miller <[email protected]>
Also package the run directory in the sudo_logsrvd PolyPkg file.
e86106f2e1f9a45039138aa7fbc1ee7d44f94659 authored over 4 years ago by Todd C. Miller <[email protected]>dfd5a8877224643062abd2a2db08a2639867525e authored over 4 years ago by Todd C. Miller <[email protected]>
ee868776de0f0dac2b4c5b06dcf44e83f6b3595e authored over 4 years ago by Todd C. Miller <[email protected]>
ab18c22ab4be7066b9b475f1c4e360cec815d5e7 authored over 4 years ago by Todd C. Miller <[email protected]>
Otherwise we may get a spurious test failure.
5b488f313cc337f72d5ff4f80590d64a9784cdd2 authored over 4 years ago by Todd C. Miller <[email protected]>0a10c702be27680d0c839dfbfc290b9fb55fd3cb authored over 4 years ago by Todd C. Miller <[email protected]>
02a117f336e198a26eb423e9f11f14155daca70a authored over 4 years ago by Todd C. Miller <[email protected]>
This gives more reproducible error messages for the tests.
8a2c0d784fdb8806061c7f827d2b4cb410bb9be0 authored over 4 years ago by Todd C. Miller <[email protected]>Dictionary order is not stable in Python < 3.6 so we need to sort
by key to have consistent resul...
d6684b851a94e6705819195a3a391c8d376d582e authored over 4 years ago by Todd C. Miller <[email protected]>
fa5025a569326a0712360af1f75fbf54c142e310 authored over 4 years ago by Todd C. Miller <[email protected]>
a77ef93f8ae42c1c2a603f21fd13c68301baeda6 authored over 4 years ago by Todd C. Miller <[email protected]>
Fixes missing header dependencies for the sudoers and python plugins.
6a2b5fd82fa5a4990627763541131ca2d0bf32b3 authored over 4 years ago by Todd C. Miller <[email protected]>468a5d228ed0264f58b615711076518f005d8d02 authored over 4 years ago by Robert Manner <[email protected]>
ace8e189537d41e9c160139c50abbed07b146e3c authored over 4 years ago by Robert Manner <[email protected]>
Fixes the warning in the log:
iolog_write_info_file_json: unable to fchown 0:0 /var/log/...: Bad...
It is possible for the cwd and/or tty to be missing. If we send a
NULL pointer to the server whe...
4e44bd46febd61d0cdc547bd9f90ab7f268660eb authored over 4 years ago by Todd C. Miller <[email protected]>
93f5e1be363733267e9c3c8570107f4e87891274 authored over 4 years ago by Todd C. Miller <[email protected]>
725f9f6521cdd93fa4dfbee604e43136003a02c4 authored over 4 years ago by Todd C. Miller <[email protected]>
4ee7ae6471354d875b776205672318f979444601 authored over 4 years ago by Todd C. Miller <[email protected]>
Debian bug #571621
66c8f69f8d25298b3cb17c0216cceaed41180f56 authored over 4 years ago by Todd C. Miller <[email protected]>79d3bd82236b17196d7fad57004f7e34bc3e13d8 authored over 4 years ago by Todd C. Miller <[email protected]>
We have to limit the length of SUDO_COMMAND to avoid getting E2BIG
from execve(2) for very long a...
If pam_setcred() fails when opening the PAM session, we don't want
to call it with PAM_DELETE_CRE...
This is used for PAM authentication to make sure pam_end() is called
via sudo_auth_cleanup() when...
Otherwise we may get a spurious test failure.
5e95c24d8154f2ee1102fa8f38f65b72bab056a7 authored over 4 years ago by Todd C. Miller <[email protected]>835984adc282235f79cfc556db9b963f1e1a0375 authored over 4 years ago by Todd C. Miller <[email protected]>
If cwd_optional is set to true, a failure to set the cwd will be a
warning, not an error, and the...
9dea4bb244a973f8a1a6859adc965d72377f0b90 authored over 4 years ago by Todd C. Miller <[email protected]>
This approximates what I want the sudo coding style to look like.
Only deviations from webkit sty...
We currently have no good way to distinguish between an error
executing the command and an error ...
On Solaris, pid_t may be typedef'd as a long but the actual range
is 32 bits at most.
These are all ISC licensed but it is still best to have them
all listed in one place.
5b1de6cfc857fca55265af8bb1b38384e740f470 authored over 4 years ago by Todd C. Miller <[email protected]>
5034ea91be2d4747f6e86ce39e5e27cb86a0642e authored over 4 years ago by Todd C. Miller <[email protected]>
a644c1d1d2208f173a0e41ef4f45ee2d43c90653 authored over 4 years ago by Todd C. Miller <[email protected]>
0f0d03a575c615d3d28044f7e5d61c809b68a740 authored over 4 years ago by Todd C. Miller <[email protected]>
891872336fb42ca380654cfb42a2411aa06c2faf authored over 4 years ago by Todd C. Miller <[email protected]>
1b90f656093e975906843e18f9230b3324e337c2 authored over 4 years ago by Todd C. Miller <[email protected]>
f908ddd1bf4dc343826b1dc04fdddc02e5f06538 authored over 4 years ago by Todd C. Miller <[email protected]>
9ab8efa8f42d9c51e6795affd412a88cd1373d00 authored over 4 years ago by Todd C. Miller <[email protected]>
This will be used by sudoreplay if it exists to get more information
about the command being repl...
The JSON version includes more information than the original "log"
file in the I/O log dir.
9b144069fc43a430b4ea148b225ed6386ba0b9cc authored over 4 years ago by Todd C. Miller <[email protected]>
f24dacdee2837a5cde9efa08e92e55dc9c2fcc53 authored over 4 years ago by Todd C. Miller <[email protected]>
cffda82e209efd3e679e2242e7d27e01b463e77c authored over 4 years ago by Todd C. Miller <[email protected]>
3cd9cbbadfdc89e10a0984d095ab139360b9a717 authored over 4 years ago by Todd C. Miller <[email protected]>
We can use a single stack for nested objects and arrays.
There is also no need to track the curre...
baccc0f5c33666a6ca60ab2a230e122b2431be46 authored over 4 years ago by Todd C. Miller <[email protected]>
a46d8bd11aa0cf13e6be0443fa11ac6d5a48044b authored over 4 years ago by Todd C. Miller <[email protected]>
Dummy out verify_server_cert() if it is not present to allow building
on older OpenSSL versions. ...
We shouldn't rely on it to be implicitly included via OpenSSL headers.
d75d36b68c2b0f1ec0c6778d38a358e59538c0fe authored over 4 years ago by Todd C. Miller <[email protected]>390ace925362c49df909d751ba0b4b3b180f4d92 authored over 4 years ago by Todd C. Miller <[email protected]>
26097a442a4771d9fbfd88e73ace8f008480424a authored over 4 years ago by Todd C. Miller <[email protected]>
Linux containers don't allow RLIMIT_CORE to be set back to RLIM_INFINITY
if we set the limit to z...
7ace49a33392661d78f20e03f1a85c047fb7d35b authored over 4 years ago by Todd C. Miller <[email protected]>
Now used by sudo_ev_init() to avoid bogus events.
d83c09fb6606409550e39600d14c9abd5cc61ab1 authored over 4 years ago by Todd C. Miller <[email protected]>It is less error-prone to use functions with a return value that
indicates when truncation ocurred.
1015b493b0e757c7a363667dd598e0cd5569a50a authored over 4 years ago by Todd C. Miller <[email protected]>
b308b63b508401e04b59a060769463c21d30f53d authored over 4 years ago by Todd C. Miller <[email protected]>
Allows python plugin tests to success on versions other than 3.7.
ec78f068904a66cd6244260f5f2de3954f4254d7 authored over 4 years ago by Todd C. Miller <[email protected]>6c1b155fed23348c58a03f6c1193922132b5b66a authored over 4 years ago by Todd C. Miller <[email protected]>
277b297ae013d75062dee51a216b220ffb629368 authored over 4 years ago by Todd C. Miller <[email protected]>
d31689211eec73f1c70906cb0534dcbf5d968687 authored over 4 years ago by Todd C. Miller <[email protected]>
ea8445e364eebac14152e8f995442b1d5be3eb6b authored over 4 years ago by Todd C. Miller <[email protected]>
4eca4432461d647d1efc16a20326ec7efdfad151 authored over 4 years ago by Todd C. Miller <[email protected]>
3edd30a27dd2d106f301b0ee38af0ab11ce987aa authored over 4 years ago by Todd C. Miller <[email protected]>
Some people find using Cmd_Alias more natural.
8c08f5ef031a042686336c1236790c04f8701320 authored over 4 years ago by Todd C. Miller <[email protected]>e1df9d1dc3eca13a5abea8b857a8186122eb645e authored over 4 years ago by Todd C. Miller <[email protected]>
Explicitly passing the event base removes the need to set a default base.
f561e2cafe166c4665f49bcb627204c49388c0af authored over 4 years ago by Todd C. Miller <[email protected]>Instead, check io_operations.open for NULL which is the case for
"sudo -V". Also move the early ...
f590f81b3c09519cc00c4b66faa02fd0d857d148 authored over 4 years ago by Todd C. Miller <[email protected]>
If the ModulePath is relative, assume it is under
"/usr/local/libexec/sudo/python" or wherever t...
If "ClassName" is not specified, load the one and only sudo.Plugin from
the module (if so), othe...
so python log system can be used with sudo logsystem.
Loggers use it by default (the handler is ...
6c9515496dadef6cac3c31d6ba71e0b72f7d1318 authored over 4 years ago by Robert Manner <[email protected]>
34972e834f4dbe186159579dc51ced4a27c862c8 authored over 4 years ago by Todd C. Miller <[email protected]>
9c90f592c2272b6edc2ad0e57632211f5373daca authored over 4 years ago by Todd C. Miller <[email protected]>
de9a143a3ed408620c38e70669899cfac61c36ad authored over 4 years ago by Todd C. Miller <[email protected]>
These can be used to optionally disable building sudo_logsrvd and
support for remote I/O logging ...
For approval plugins show_version is not optional.
38fc37b214cb164bb4b540774b24b54b53ac7f7e authored over 4 years ago by Robert Manner <[email protected]>
Before it only displayed the plugin version, now it also displays
which python plugin is loaded ...
- plugin->show_version is not marked NULL any more.
- if verbose, it also displays which python ...
e588879cf515db3acdb3e96eb594dea078bb0365 authored over 4 years ago by Robert Manner <[email protected]>