syslogd config

Dan Fandrich dan at coneharvesters.com
Mon Nov 22 08:08:40 UTC 2010


On Sun, Nov 21, 2010 at 01:10:25PM +0300, Sergey Naumov wrote:
> I want to write a patch to implement restricted config support for
> busybox's syslogd, but as we keep size in mind, it is not good to keep
> several full file paths permanently (we need it because busybox's
> syslog reopens log file to allow to delete it without restarting of
> syslog). To solve this problem, we can use /proc/self/fd to determine
> file name by fd (even if file was moved, we need only the original
> name, so it suits us). How do you think, is it better to mess with
> /proc, or simply store file names?

You could have problems if someone plays games with file links, deletes the
file or moves it. It's also not portable to other OSes. I'd vote for 
spending the few extra bytes and keeping the file name around.

>>> Dan


More information about the busybox mailing list