run_init
One thing that has bitten me a couple of times is that I have tried to use run_init when I had not mounted /dev/pts. run_init gives an error message about "Fork:" which doesn't help anyone in tracking down the problem (it seems much more likely to have a /dev/pts problem than an actual fork problem).
The misleading error message is currently in Debian and a quick scan of the source code in rawhide suggests that Fedora has it too.
I suggest the following change, but something more verbose could be useful too.
open_init_pty.c 2009-02-16 21:48:06.000000000 +1100 renamed from open_init_pty.c.bak 2009-02-16 21:47:28.000000000 +1100 +1 -1
@@ -153,7 +153,7 @@ } if (child_pid < 0) { - perror("Fork:"); + perror("forkpty():"); fflush(stdout); fflush(stderr); exit(EX_OSERR);
Signature · 8 lines
[email protected] http://etbe.coker.com.au/ My Main Blog http://doc.coker.com.au/ My Documents Blog -- 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.