[sudo-users] 1.7.0rc1 interesting tests

Patrick Spinler spinler.patrick at mayo.edu
Fri Jun 13 10:16:10 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Todd C. Miller wrote:
| That SIGPIPE is troubling.  The only place pipes are used in sudo
| are for the password helper program (which should not be in use
| here) and in the logging functions when it runs the mailer.  There
| was a fix in 1.7.0rc2 for systems where sendmail was missing that
| may be relevant.  Can you try sudo-1.7.0rc2 and verify that the
| behavior is the same?
|
| http://www.sudo.ws/sudo/dist/beta/sudo-1.7.0rc2.tar.gz
|
|  - todd

rc2 looks to behave the same.  relevant strace log follows.

- -- Pat

clone(Process 21840 attached (waiting for parent)
Process 21840 resumed (parent 21839 ready)
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7fde718) = 21840
[pid 21839] waitpid(21840, Process 21839 suspended
~ <unfinished ...>
[pid 21840] getsockname(7, {sa_family=AF_INET, sin_port=htons(34188),
sin_addr=inet_addr("129.176.174.192")}, [16]) = 0
[pid 21840] getpeername(7, {sa_family=AF_INET, sin_port=htons(389),
sin_addr=inet_addr("129.176.112.149")}, [16]) = 0
[pid 21840] fcntl64(7, F_GETFD)         = 0x1 (flags FD_CLOEXEC)
[pid 21840] dup(7)                      = 3
[pid 21840] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 21840] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4
[pid 21840] close(7)                    = 0
[pid 21840] fcntl64(4, F_GETFD)         = 0
[pid 21840] dup2(4, 7)                  = 7
[pid 21840] fcntl64(7, F_SETFD, 0)      = 0
[pid 21840] close(4)                    = 0
[pid 21840] write(7, "\25\3\1\0
\f\341\276\276<\253C]\301\376\356x\227\253ef/\300Dl\27^\364`\2338\247"...,
37) = -1 EPIPE (Broken pipe)
[pid 21840] --- SIGPIPE (Broken pipe) @ 0 (0) ---
Process 21839 resumed
Process 21840 detached
<... waitpid resumed> [{WIFSIGNALED(s) && WTERMSIG(s) == SIGPIPE}],
WSTOPPED) = 21840
- --- SIGCHLD (Child exited) @ 0 (0) ---

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIUoEqNObCqA8uBswRAvyxAKCgCeg99+w3ZiNxwQPvLFCMiJoarwCdGxiN
MyKzCKRfxTni3so0M9/k5l0=
=3uL/
-----END PGP SIGNATURE-----



More information about the sudo-users mailing list