Todd C. Miller
7761af6d7e
Add always_query_group_plugin
2015-10-24 05:43:07 -06:00
Todd C. Miller
4f1912148f
Add ABOUT-NLS from GNU gettext.
2015-10-23 14:13:54 -06:00
Todd C. Miller
c50cead833
Add directory writability checks for sudoedit.
2015-10-23 14:04:35 -06:00
Todd C. Miller
54a10726c0
Latest.
2015-10-06 15:23:22 -06:00
Todd C. Miller
e91a10ce45
Ignore the SUDO_CONV_PROMPT_ECHO_OK flag when echo is enabled.
...
This was preventing a match of SUDO_CONV_PROMPT_ECHO_ON which
resulted in a masked password instead of an echoed one.
2015-10-06 15:21:41 -06:00
Todd C. Miller
2afb2f2048
Repair challenge/response prompting for BSD authentication which
...
got broken while it was converted to use the conversation function.
2015-10-06 15:00:47 -06:00
Todd C. Miller
2ecda6d65c
Use the auth_getpass (and the plugin conversation fuction) for Tru64
...
SIA. This prevents sudo from sleeping while holding the tty ticket
lock.
2015-10-06 10:25:53 -06:00
Todd C. Miller
588460405f
For env_reset, SHELL should be set based on the target user, not
...
the invoking user unless preserved via env_keep.
2015-10-06 10:25:43 -06:00
Todd C. Miller
e21a5a1cf2
sync with translationproject.org
2015-10-06 09:33:27 -06:00
Todd C. Miller
507150d8f2
Hungarian and Slovak translations
2015-10-05 06:06:52 -06:00
Todd C. Miller
4c7431ecb4
Add new Slovak and Hungarian translations from translationproject.org
2015-10-05 06:03:42 -06:00
Todd C. Miller
6dc5151d5d
Remove S_ISREG check from sudo_edit_open(), it is already done in
...
the caller.
2015-10-02 20:35:55 -06:00
Todd C. Miller
37dff5fbcb
Open sudoedit files with O_NONBLOCK and fail if they are not regular
...
files.
2015-10-02 14:45:09 -06:00
Todd C. Miller
5ad68edd65
It is possible for WIFSTOPPED to be true even if waitpid() is not
...
given WUNTRACED if the child is ptraced. Don't exit the waitpid()
loop if WIFSTOPPED is true, just in case.
2015-10-02 11:24:01 -06:00
Todd C. Miller
3f883a80a5
rebuild .mo files
2015-09-30 14:04:39 -06:00
Todd C. Miller
f98b2b260b
sync with translationproject.org
2015-09-30 14:04:17 -06:00
Todd C. Miller
37abc1b7e4
There's no point in trying to interpose protected versions of the
...
exec family of functions. Many modern C libraries use hidden symbols
for the functions and syscalls defined in libc such that they cannot
be overridden inside libc itself. We have to just wrap all the exec
variants plus system and popen.
2015-09-28 21:20:37 -06:00
Todd C. Miller
d5086dfde4
List all the functions wrapped by sudo_noexec.so.
2015-09-28 16:48:46 -06:00
Todd C. Miller
6b81f0b88c
The section is now called "EXEC and NOEXEC" and it is above, not
...
below.
2015-09-28 16:48:20 -06:00
Todd C. Miller
282b921333
Also wrap popen(3).
2015-09-28 15:34:16 -06:00
Todd C. Miller
8695ae1049
Also interpose system(3). On glibc systems you cannot interpose
...
the syscalls used internally by libc.
2015-09-28 15:10:00 -06:00
Todd C. Miller
04457ecee9
Set active debug instance to sudo_debug_instance() during the
...
conversation function.
2015-09-28 12:28:18 -06:00
Todd C. Miller
52ec12f52f
LOGNAME and USERNAME are set the same way as USER
2015-09-27 15:40:05 -06:00
Todd C. Miller
4be48e7845
Document behavior when the command dies from a signal in EXIT STATUS.
2015-09-27 08:59:46 -06:00
Todd C. Miller
99322bcf31
Bug #722
2015-09-26 11:02:24 -06:00
Todd C. Miller
9486afb4e5
When the command sudo is running is killed by a signal, sudo will
...
now send itself the same signal with the default signal handler
instead of exiting. The bash shell appears to ignore some signals,
e.g. SIGINT, unless the command is killed by that signal. This
makes the behavior of commands run under sudo the same as without
sudo when bash is the shell. Bug #722
2015-09-26 10:53:16 -06:00
Todd C. Miller
7b7db55db9
Adjust set_logname description to new behavior when any of LOGNAME,
...
USER or USERNAME are preserved.
2015-09-25 11:19:28 -06:00
Todd C. Miller
29a3fcd06c
If some, but not all, of the LOGNAME, USER or USERNAME environment
...
variables have been preserved from the invoking user's environment,
sudo will now use the preserved value to set the remaining variables
instead of using the runas user. This ensures that if, for example,
only LOGNAME is present in the env_keep list, that sudo will not
set USER and USERNAME to the runas user.
2015-09-25 11:15:22 -06:00
Todd C. Miller
0649a261e7
Fix passing of the callback pointer to the conversation function.
...
This was preventing the on_suspend and on_resume functions from
being called on PAM systems.
2015-09-24 13:43:17 -06:00
Todd C. Miller
2c7ff33ea8
Explicitly mark large hex constants unsigned.
2015-09-24 11:23:02 -06:00
Todd C. Miller
118680eabf
Cast sizeof(entry) to off_t before making it a negative offset for
...
lseek(). Fixes "sudo -k" on Solaris and probably others.
2015-09-24 10:52:44 -06:00
Todd C. Miller
824021b51b
Add explicit mention of sudo's netgroup semantics since they differ
...
from most other netgroup consumers.
2015-09-21 16:04:59 -06:00
Todd C. Miller
80673750cf
sync with translationproject.org
2015-09-21 15:18:04 -06:00
Todd C. Miller
0cfce655bd
Fix potential double free of the cookie when sudo is suspended at
...
the password prompt.
2015-09-21 15:07:00 -06:00
Todd C. Miller
71d0246322
sync with translationproject.org
2015-09-16 09:53:43 -06:00
Todd C. Miller
51c2ef7ae6
sync with translationproject.org
2015-09-15 14:04:43 -06:00
Todd C. Miller
43fd191cfc
Bug #719
2015-09-15 13:36:34 -06:00
Todd C. Miller
3ac17b302b
SIGHUP is now relayed to the command. Bug #719
2015-09-15 12:24:19 -06:00
Todd C. Miller
3f6f1cd15c
When a terminal device is closed, SIGHUP is sent to the controlling
...
process associated with that terminal. It is not sent to the entire
process group so sudo needs to relay SIGHUP to the command when it
is not being run in a new pty. Bug #719
2015-09-15 10:30:36 -06:00
Todd C. Miller
b12500993d
Mention visudo bug in 1.8.14
2015-09-15 09:50:35 -06:00
Todd C. Miller
b6cb1b65c9
We reserved two slots at the end of the editor argv for the line
...
number and the file name. However, resolve_editor() adds "--"
before the file names so the +line_number is interpreted as a file
name, not a line number so we need to overwrite the "--" as well.
2015-09-15 09:29:40 -06:00
Todd C. Miller
a2979ed809
Remove checks for __sys_siglist and __sys_signame. They are internal
...
to libc and there are no known systems that export those symbols
that do not already export the single underbar or no-underbar versions.
2015-09-10 16:44:57 -06:00
Todd C. Miller
9ff93c307b
Sync with translationproject.org
2015-09-10 14:30:57 -06:00
Todd C. Miller
4132f184ef
regen
2015-09-10 14:30:02 -06:00
Todd C. Miller
38b7aea6b7
Restore old signal handlers before tty settings. That way SIGTTOU
...
is at its original value if sudo_term_restore() should fail.
2015-09-09 15:27:09 -06:00
Todd C. Miller
241174ea2d
Document what happens when the on_suspend/on_resume callbacks
...
return an error.
2015-09-09 15:14:06 -06:00
Todd C. Miller
edfeee6a7a
No need to have version macros for hooks, callbacks and the sudoers
...
group plugin. We can just use the main sudo API macros. The sudoers
group plugin macros are preserved for source compatibility but are
not documented.
2015-09-09 14:56:52 -06:00
Todd C. Miller
c45559e6c8
Properly escape the backslash before a comma in an example so the
...
example rule is parsable by visudo.
2015-09-09 14:33:01 -06:00
Todd C. Miller
2f1d675055
Ignore callbacks if major version doesn't match.
2015-09-09 13:29:57 -06:00
Todd C. Miller
67183d74f4
Remove include/compat/timespec.h. Systems old enough to lack struct
...
timespec are too old to build a modern sudo.
2015-09-09 11:13:22 -06:00