fds 0, 1 and 2 need pointing at /dev/null [ver #2]

fds 0, 1 and 2 need pointing at /dev/null rather than leaving unopened to be
opened for critical services because it's always possible that glibc or
whatever will try to use them - particularly as stdin, stdout and stderr file
streams still point to them.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Make tpm_emulator-0.7.4 use /dev/tpm_emul [ver #2]

This patch makes tpm_emulator-0.7.4 use /dev/tpm_emul as well as a socket if
the device file exists.  Clients can then access the emulator via /dev/tpmN.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>