syslogd +realpath

Marc Leeman marc.leeman at gmail.com
Wed Feb 7 16:15:25 UTC 2007


I seem to have stumbled on another problem with syslogd in 1.4.0/1.4.1.
I did not notice it at first since I was developing on an NFS system and
not yet on a squashfs system with a ro /

The problem occurs when syslogd unlinks /dev/log and creates a socket in
/dev/log; on a RO fs, it cannot do that and will segfault all the time.

On a virgin NFS system; the following happens:

[mleeman at gemini target.scu.jodw]$ ls -al dev/log
lrwxrwxrwx 1 root root 10 Feb  7 17:04 dev/log -> ../tmp/log
[mleeman at gemini target.scu.jodw]$ ls -al dev/log
lrwxrwxrwx 1 root root 10 Feb  7 17:04 dev/log -> ../tmp/log
[mleeman at gemini target.scu.jodw]$ ls -al dev/log
srw-rw-rw- 1 root root 0 Feb  7 17:05 dev/log

The link is replaced with a socket (/ fs is RW).

-- 
  greetz, marc
Come on out, Chiana. Look, I don't have time to play this game. Durka's
gone Hannibal Lector on us.
	Crichton - Durka Returns
scorpius.homelinux.org 2.6.19 #1 Tue Dec 5 16:35:02 CET 2006 GNU/Linux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070207/9351ae79/attachment-0002.pgp 


More information about the busybox mailing list