[syslog-ng] messed up permissions on /dev/null destination on
solaris
Balazs Scheidler
bazsi at balabit.hu
Mon Oct 17 13:06:34 CEST 2005
On Sun, 2005-10-16 at 11:52 -0700, Nate Campi wrote:
> On Sun, Oct 16, 2005 at 11:39:21AM -0700, Nate Campi wrote:
> > When using /dev/null as a destination on Solaris 8 (sparc) with
> > syslog-ng 1.6.7 the perms of /dev/null get messed up:
> >
> > $ ls -l /dev/null
> > lrwxrwxrwx 1 root other 27 Apr 19 2003 /dev/null -> ../devices/pseudo/mm at 0:null
> > $ ls -l /devices/pseudo/mm at 0:null
> > crw-r--r-- 1 root root 13, 2 Oct 16 18:27 /devices/pseudo/mm at 0:null
> >
> >
> > I thought this was addressed at some point, was that only on Linux
> > perhaps?
>
> Oh, of course I'm going to manually set the correct perms with perm() in
> the file destination clause, but I thought we made this automatic is my
> point.
I can't remember doing so, syslog-ng 1.6 issues a warning in this case,
but nothing else.
I'm wondering what the best solution would be. My idea is to completely
refuse changing permissions if the filename begins with /dev (and don't
issue a log message), is that reasonable?
--
Bazsi
More information about the syslog-ng
mailing list