Todd C. Miller
f44afdc423
Detect sys_sigabbrev[] and use it in place of sys_signame[] if
...
present. For some reason glibc does not declare sys_sigabbrev so
we must add an extern definition of our own.
2012-08-28 10:11:38 -04:00
Todd C. Miller
af4f02d3e2
Handle NULL entries in sys_siglist and sys_signame.
2012-08-28 09:40:56 -04:00
Todd C. Miller
24991069f6
Convert my_sys_sig{list,name} -> sudo_sys_sig{list,name}
2012-08-28 09:28:25 -04:00
Todd C. Miller
a371c50f0a
sync
2012-08-27 11:28:38 -04:00
Todd C. Miller
37269d662a
Pass on SIGTSTP to the command if it was sent by a user process
...
(not the kernel or the terminal) when we are not I/O logging and
set the default SIGTSTP handler when we re-send the signal to
ourself, restoring our handler after we resume.
2012-08-27 11:22:33 -04:00
Todd C. Miller
29907e357c
Shells typically change their process group when they start up so
...
that they can implement job control. Most well-behaved shells
change the pgrp back to its original value before suspending so we
must not try to restore in that case, lest we race with the child
upon resume, potentially stopping sudo with SIGTTOU while the command
continues to run. Some shells, such as pdksh, just suspend the
shell by sending SIGSTOP to themselves without restoring the pgrp.
In this case we need to change the pgrp back for them.
Should fix bug #568
2012-08-27 10:29:59 -04:00
Todd C. Miller
537dc94b9e
Use strsigname() to print signal names in the debug output.
...
If the system has no strsigname(), use our own.
2012-08-26 20:12:51 -04:00
Todd C. Miller
ac4b21b3e2
Remove generated file and change path for temporary include file.
2012-08-23 14:57:57 -04:00
Todd C. Miller
6d08c4b406
When running regress tests, list pass/fail rate for each dir
...
(testsudoers and visudo) instead of the total. Also prevent the
result files from clobbering each other by keeping them in the
relevant directories.
2012-08-23 14:47:58 -04:00
Todd C. Miller
e498bab4c1
Don't print an error message in yyerror() if open_sudoers() fails,
...
we've already printed an error message. Also restore the check
for sudoers_warnings in yyerror().
2012-08-23 14:02:02 -04:00
Todd C. Miller
0c8c3c0cd8
Avoid printing the >>> parse error <<< message for testsudoers
...
when the -t flag is specified.
2012-08-23 11:28:44 -04:00
Todd C. Miller
793426106e
Fix NULL deref when an entry has no Runas_Entry
2012-08-22 15:50:58 -04:00
Todd C. Miller
81d42ae4e6
sync with translationproject.org
2012-08-22 12:56:28 -04:00
Todd C. Miller
f82515a8c7
sync
2012-08-22 12:52:15 -04:00
Todd C. Miller
778895adfd
Correct the check_user() comment header.
2012-08-22 12:52:07 -04:00
Todd C. Miller
60ba369791
Change a log_fatal() into log_error() when no auth methods are
...
configured. The caller already checks the return value.
2012-08-22 12:51:46 -04:00
Todd C. Miller
2b5d43b8aa
Add missing debug_return
2012-08-22 10:20:27 -04:00
Todd C. Miller
2d3a0d14d3
Make the capitalization consistent for .Ss and .Sx
2012-08-21 15:11:43 -04:00
Todd C. Miller
8f3232ee69
Add COMMAND EXECUTION section that describes how sudo runs
...
the command, the extra sudo processes and signal handling.
2012-08-21 13:01:43 -04:00
Todd C. Miller
c1d6e86d67
Happy Easter
2012-08-18 19:58:07 -04:00
Todd C. Miller
2cdd315a08
Don't echo the awk command when building siglist.in
2012-08-17 15:58:45 -04:00
Todd C. Miller
7afcef8ee8
Cosmetic changes.
2012-08-17 15:58:06 -04:00
Todd C. Miller
3bef51c62d
The HISTORY, LICENSE and CONTRIBUTORS files are not longer generated.
2012-08-17 15:57:32 -04:00
Todd C. Miller
57f1c7fe05
Sync with translationproject.org and add Italian sudoers translation.
2012-08-17 09:56:44 -04:00
Todd C. Miller
82115dfa17
Expand description of fqdn to talk about systems where the hosts
...
file is searched before DNS.
2012-08-16 10:11:04 -04:00
Todd C. Miller
c2b6033c7a
For cat pages there is nothing to make unless DEVEL is set.
2012-08-15 15:10:50 -04:00
Todd C. Miller
1e43242b33
Always use mandoc to format cat pages and remove now-extraneous
...
nroff configure tests.
2012-08-15 10:32:25 -04:00
Todd C. Miller
35d51f3b54
sync polypkg from git
2012-08-15 10:00:27 -04:00
Todd C. Miller
6260a75891
Use AI_FQDN instead of AI_CANONNAME if available since "canonical"
...
is not always the same as "fully qualified".
2012-08-15 09:52:26 -04:00
Todd C. Miller
e01886ed2f
Fix some typos.
...
Describe error messages not related to policy permissions.
2012-08-14 14:16:49 -04:00
Todd C. Miller
7aeadbd5b3
Add new check_defaults() function to check (but not update) the
...
Defaults entries. Visudo can now use this instead of update_defaults
to check all the defaults regardless instead of just the global
Defaults entries.
2012-08-14 10:45:55 -04:00
Todd C. Miller
d764db707a
Document sudoers log format.
2012-08-13 16:50:31 -04:00
Todd C. Miller
d312b241df
Update for sudo 1.8.5p3
2012-08-13 15:05:00 -04:00
Todd C. Miller
805039bec5
Add missing check for I/O plugin API version when checking for the
...
presence of I/O plugin hooks.
2012-08-13 14:44:54 -04:00
Todd C. Miller
f32aaed29d
Can't call debug code in the process_hooks_xxx functions() since
...
ctime() may look up the timezone via the TZ environment variable.
2012-08-13 14:39:40 -04:00
Todd C. Miller
e4e815dd82
Include signal.h before sudo_exec.h since it uses sigset_t * in the
...
fork_pty prototype.
2012-08-10 15:29:07 -04:00
Todd C. Miller
50eae1c227
Remove OPTIONS section; options now go inside DESCRIPTION
2012-08-10 15:23:41 -04:00
Todd C. Miller
66ad86594e
regen
2012-08-10 13:18:19 -04:00
Todd C. Miller
ef33ee45d9
Sync with translationproject.org and add new Slovenian translation.
2012-08-10 13:07:53 -04:00
Todd C. Miller
241b2395cf
Reduce the number of "internal error, foo overflow" messages that
...
need to be translated.
2012-08-10 12:18:38 -04:00
Todd C. Miller
afaf5e07fe
Mention HP-UX reboot fix.
2012-08-10 12:07:52 -04:00
Todd C. Miller
d89b1a6be2
Support for using SSSD ( http://fedorahosted.org/sssd/ ) as a sudoers
...
data source. From Daniel Kopecek and Pavel Brezina.
2012-08-10 11:59:26 -04:00
Todd C. Miller
a7424cc002
If sudo.conf contains an I/O plugin but no policy plugin, use sudoers
...
for the policy plugin. If a policy plugin is specified without an
I/O plugin, only the policy plugin will be loaded.
2012-08-09 14:11:41 -04:00
Todd C. Miller
9ad4d48046
Do not modify the .Os section when building the .man.in file from
...
.mdoc.in.
2012-08-09 11:47:01 -04:00
Todd C. Miller
507df9d5c1
Add a note about wildcards matching multiple words and include an
...
example. Also mention that for sudoedit, a wildcard in command
line args does not match a slash.
2012-08-09 11:36:25 -04:00
Todd C. Miller
0655deab57
Fix a comment, update a variable name in a prototype; all cosmetic.
2012-08-07 14:47:58 -04:00
Todd C. Miller
3ba8da4ab6
Cast 2nd argument of lseek() to off_t if it is a constant for systems
...
with 64-bit off_t but without a proper lseek() prototype.
2012-08-07 14:42:08 -04:00
Todd C. Miller
7d255e42cb
Fix some warnings from clang checker-267
2012-08-07 11:01:28 -04:00
Todd C. Miller
487c8abb08
Fix memory leak found by clang checker-267
2012-08-07 10:27:55 -04:00
Todd C. Miller
dc08cf3c99
If we receive a signal from the command we executed, do not forward
...
it back to the command. This fixes a problem with BSD-derived
versions of the reboot command which send SIGTERM to all other
processes, including the sudo process. Sudo would then deliver
SIGTERM to reboot which would die before calling the reboot() system
call, effectively leaving the system in single user mode.
2012-08-06 14:38:35 -04:00