sshd problem.
If I run run_init /etc/init.d/ssh start it fails to start, even in permissive mode. I have no idea why it fails, I see nothing in the logs.
If I run strace -f run_init /etc/init.d/ssh start, it starts without problems, which currently seems to be the only way I can make it start properly.
Note that it starts up properly when it boots.
I'm using Bryan May's version on debian woody.
run_init strace -f /etc/init.d/ssh start shows this at the end:
[pid 6267] fstat64(0, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
[pid 6267] read(0, "/etc/init.d/ssh: /usr/sbin/sshd:"..., 32768) = 51
[pid 6267] read(0, "", 32768) = 0 [pid 6267] close(1) = 0 [pid 6267] _exit(1) = ? [pid 6265] <... wait4 resumed> [WIFEXITED(s) && WEXITSTATUS(s)
== 1], 0, NULL)
= 6267
[pid 6265] wait4(-1, [WIFEXITED(s) && WEXITSTATUS(s) == 1], 0, NULL) = 6266
[pid 6265] rt_sigprocmask(SIG_BLOCK, [CHLD TTOU], [CHLD], 8) = 0
[pid 6265] rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
[pid 6265] rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0
[pid 6265] rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
[pid 6265] rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0
[pid 6265] rt_sigaction(SIGINT, {0x807a900, [], SA_RESTORER,
0x400826b8}, {0x806e2f8, [], SA_RESTORER, 0x400826b8}, 8) = 0
[pid 6265] close(3) = -1 EBADF (Bad file
descriptor)
[pid 6265] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
[pid 6265] --- SIGCHLD (Child exited) @ 0 (0) ---
[pid 6265] wait4(-1, 0xbffff620, WNOHANG, NULL) = -1 ECHILD (No
child processes)
[pid 6265] sigreturn() = ? (mask now [])
[pid 6265] _exit(1) = ?<... wait4 resumed> [WIFEXITED(s) && WEXITSTATUS(s) == 1], 0, NULL) = 6265rt_sigprocmask(SIG_BLOCK, [CHLD TTOU], [CHLD], 8) = 0 rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [CHLD], 8) = 0 rt_sigprocmask(SIG_SETMASK, [CHLD], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---wait4(-1, 0xbffff738, WNOHANG, NULL) = -1 ECHILD (No child
processes)sigreturn() = ? (mask now [])rt_sigaction(SIGINT, {SIG_DFL}, {0x806e2f8, [], SA_RESTORER, 0x400826b8}, 8) = 0rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0_exit(0) = ?
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 7 lines · Kurt Roeckx
If I run
run_init/etc/init.d/sshstart it fails to start, even in permissive mode. I have no idea why it fails, I see nothing in the logs.If I run strace -f
run_init/etc/init.d/sshstart, it starts without problems, which currently seems to be the only way I can make it start properly.
Try putting a "sleep 1" after the line in the /etc/init.d/ssh file that starts the sshd and it should work.
I'm not sure whether this is a bug in expect or in the daemon.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 9 lines · Russell Coker
Quoted 4 lines · Kurt Roeckx
If I run
run_init/etc/init.d/sshstart it fails to start, even in permissive mode. I have no idea why it fails, I see nothing in the logs.Try putting a "sleep 1" after the line in the
/etc/init.d/sshfile that starts the sshd and it should work.I'm not sure whether this is a bug in expect or in the daemon.
That worked, thanks.
Kurt
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.