[sudo-users] 1.7.0rc1 interesting tests

Patrick Spinler spinler.patrick at mayo.edu
Fri Jun 13 09:27:07 EDT 2008


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

Todd C. Miller wrote:
| In message <4851D2AC.3020004 at mayo.edu>
| 	so spake Patrick Spinler (spinler.patrick):
|
|> /tmp/trace.out is not created.  The EDITOR never appears to be invoked.
|>
|> However, I've attached output from "/usr/bin/sudo strace ./sudoedit
|> /tmp/foo"
|
| Unfortunately, that just says that a child process forked and
| exited.  Can you try "/usr/bin/sudo strace -f ./sudoedit /tmp/foo"
| instead?
|
|  - todd

This appears to be the interesting bit:

rt_sigaction(SIGCHLD, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGTSTP, {SIG_DFL}, NULL, 8) = 0
gettimeofday({1213363403, 790230}, NULL) = 0
clone(Process 17567 attached (waiting for parent)
Process 17567 resumed (parent 17566 ready)
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0xb7f02718) = 17567
[pid 17566] waitpid(17567, Process 17566 suspended
~ <unfinished ...>
[pid 17567] getsockname(7, {sa_family=AF_INET, sin_port=htons(48563),
sin_addr=inet_addr("129.176.174.192")}, [16]) = 0
[pid 17567] getpeername(7, {sa_family=AF_INET, sin_port=htons(389),
sin_addr=inet_addr("129.176.112.149")}, [16]) = 0
[pid 17567] fcntl64(7, F_GETFD)         = 0x1 (flags FD_CLOEXEC)
[pid 17567] dup(7)                      = 3
[pid 17567] fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
[pid 17567] socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4
[pid 17567] close(7)                    = 0
[pid 17567] fcntl64(4, F_GETFD)         = 0
[pid 17567] dup2(4, 7)                  = 7
[pid 17567] fcntl64(7, F_SETFD, 0)      = 0
[pid 17567] close(4)                    = 0
[pid 17567] write(7, "\25\3\1\0
\223,\nB\226.\316\330R\340\333\234\221\223\365\240\334\376\237T\204\351\207\0m\33L"...,
37) = -1 EPIPE (Broken pipe)
[pid 17567] --- SIGPIPE (Broken pipe) @ 0 (0) ---
Process 17566 resumed
Process 17567 detached
<... waitpid resumed> [{WIFSIGNALED(s) && WTERMSIG(s) == SIGPIPE}],
WSTOPPED) = 17567
- --- SIGCHLD (Child exited) @ 0 (0) ---
gettimeofday({1213363403, 792944}, NULL) = 0
setresgid32(-1, 219626, -1)             = 0
setresuid32(219626, 219626, 0)          = 0

Hope that helps.
- -- Pat

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

iD8DBQFIUnWrNObCqA8uBswRAne/AJ9IHhzVJF+GSZNM/mGe9tLdoWD92ACfYAJB
PXvE9rKfSHlijteQWlfG3JE=
=o+GE
-----END PGP SIGNATURE-----



More information about the sudo-users mailing list