* Re: syslog() blocks on glibc 2.1.3 with kernel 2.2.x
2000-10-29 16:35 ` Jesse Pollard
@ 2000-10-29 17:18 ` Stephen Harris
2000-10-30 0:45 ` Igmar Palsenberg
2000-10-30 14:17 ` Jesse Pollard
2000-10-29 18:48 ` James Sutherland
2000-10-30 14:06 ` Jesse Pollard
2 siblings, 2 replies; 11+ messages in thread
From: Stephen Harris @ 2000-10-29 17:18 UTC (permalink / raw)
To: pollard; +Cc: vonbrand, linux-kernel
> It was NOT ignored. If syslogd dies, then the system SHOULD stop, after a
Huh? "SHOULD"? Why? If syslog dies for any reason (bug, DOS, hack,
admin stupidity) then I sure don't want the system freezing up.
( heh... at work on Solaris I monitor 300+ systems, and it's not unusual
to find 1 box a week with syslog not running for some reason or another.
I can't decide whether it's admin stupidity or bugs in Solaris syslog - of
which there are many :-(( )
syslog is not meant to be a secure audit system. Messages can be
legitimately dropped. Applications have been coded assuming that they
will not be frozen in syslog(). Linux should not be different in this
respect. Hmm... it might be nice to be this a system tunable parameter
but I'm not sure the best way of doing that (glibc maybe?)
Stephen Harris
sweh@spuddy.mew.co.uk http://www.spuddy.org/
The truth is the truth, and opinion just opinion. But what is what?
My employer pays to ignore my opinions; you get to do it for free.
* Meeeeow ! Call Spud the Cat on > 01708 442043 < for free Usenet access *
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: syslog() blocks on glibc 2.1.3 with kernel 2.2.x
2000-10-29 17:18 ` Stephen Harris
@ 2000-10-30 0:45 ` Igmar Palsenberg
2000-10-30 14:17 ` Jesse Pollard
1 sibling, 0 replies; 11+ messages in thread
From: Igmar Palsenberg @ 2000-10-30 0:45 UTC (permalink / raw)
To: Stephen Harris; +Cc: pollard, vonbrand, Kernel devel list
> > It was NOT ignored. If syslogd dies, then the system SHOULD stop, after a
>
> Huh? "SHOULD"? Why? If syslog dies for any reason (bug, DOS, hack,
> admin stupidity) then I sure don't want the system freezing up.
In some cases, I find the syslog messages of more importance then a
working system. I like to know what's going on on my machines.
> ( heh... at work on Solaris I monitor 300+ systems, and it's not unusual
> to find 1 box a week with syslog not running for some reason or another.
> I can't decide whether it's admin stupidity or bugs in Solaris syslog - of
> which there are many :-(( )
>
> syslog is not meant to be a secure audit system. Messages can be
> legitimately dropped.
I find dropping messages unacceptable.
> Applications have been coded assuming that they
> will not be frozen in syslog(). Linux should not be different in this
> respect. Hmm... it might be nice to be this a system tunable parameter
> but I'm not sure the best way of doing that (glibc maybe?)
I needs to be in glibc, yes.
>
> Stephen Harris
Igmar
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: syslog() blocks on glibc 2.1.3 with kernel 2.2.x
2000-10-29 17:18 ` Stephen Harris
2000-10-30 0:45 ` Igmar Palsenberg
@ 2000-10-30 14:17 ` Jesse Pollard
1 sibling, 0 replies; 11+ messages in thread
From: Jesse Pollard @ 2000-10-30 14:17 UTC (permalink / raw)
To: sweh, pollard; +Cc: vonbrand, linux-kernel
Stephen Harris <sweh@spuddy.mew.co.uk>:
> > It was NOT ignored. If syslogd dies, then the system SHOULD stop, after a
>
> Huh? "SHOULD"? Why? If syslog dies for any reason (bug, DOS, hack,
> admin stupidity) then I sure don't want the system freezing up.
Should because this is the only audit logging facility presently available
to Linux.
> ( heh... at work on Solaris I monitor 300+ systems, and it's not unusual
> to find 1 box a week with syslog not running for some reason or another.
> I can't decide whether it's admin stupidity or bugs in Solaris syslog - of
> which there are many :-(( )
On these boxes you should be running the audit log. Which has the property
of shutting the system down when it is aborted...
> syslog is not meant to be a secure audit system. Messages can be
> legitimately dropped. Applications have been coded assuming that they
> will not be frozen in syslog(). Linux should not be different in this
> respect. Hmm... it might be nice to be this a system tunable parameter
> but I'm not sure the best way of doing that (glibc maybe?)
The best way would be to have a true audit daemon that has the property of
hanging/shutdown of the system. I would prefer a shutdown to single user
mode than a hang. That way I would get a chance to examine the log/restart
the daemon and examine the log. Even better would be a way to
suspend/checkpoint all processing, switch to a "audit emergency" mode with
no network activity allowed, and then examine things. It would provide an
option to clean the system and reboot, or restart the audit daemon and
resume multiuser mode (resuming all suspended/checkpointed processes).
Once there is an audit daemon then the security messages/alerts, and only
those messages, would be sent to it.
That way syslogd is available for non-security related events, and these
could be dropped when necessary.
-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil
Any opinions expressed are solely my own.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: syslog() blocks on glibc 2.1.3 with kernel 2.2.x
2000-10-29 16:35 ` Jesse Pollard
2000-10-29 17:18 ` Stephen Harris
@ 2000-10-29 18:48 ` James Sutherland
2000-10-30 14:06 ` Jesse Pollard
2 siblings, 0 replies; 11+ messages in thread
From: James Sutherland @ 2000-10-29 18:48 UTC (permalink / raw)
To: Jesse Pollard; +Cc: Stephen Harris, Horst von Brand, linux-kernel
On Sun, 29 Oct 2000, Jesse Pollard wrote:
> On Sun, 29 Oct 2000, Stephen Harris wrote:
> >Horst von Brand wrote:
> >
> >> > > If you send SIGSTOP to syslogd on a Red Hat 6.2 system (glibc 2.1.3,
> >> > > kernel 2.2.x), within a few minutes you will find your entire machine
> >> > > grinds to a halt. For example, nobody can log in.
> >>
> >> Great! Yet another way in which root can get the rope to shoot herself in
> >> the foot. Anything _really_ new?
> >
> >OK, let's go a step further - what if syslog dies or breaks in some way
> >shape or form so that the syslog() function blocks...?
> >
> >My worry is the one that was originally raised but ignored: syslog() should
> >not BLOCK regardless of whether it's local or remote. syslog is not a
> >reliable mechanism and many programs have been written assuming they can
> >fire off syslog() calls without worry.
>
> It was NOT ignored. If syslogd dies, then the system SHOULD stop, after a
> few seconds (depending on the log rate...).
No. You should have the OPTION of stopping the machine, if accurate syslog
information is more important to you than system functionality. This
should also be an OS function, rather than just freezing processes as and
when they call syslog()!
> I do believe that restarting syslog should be possible... Perhaps syslog
> should be started by inetd at the very beginning. Then it could be restarted
> after an exit/abort.
inetd? I'd have thought init would make a more suitable choice, perhaps
with a monitor to lock the machine up or reboot if syslog fails and can't
be restored.
> This can STILL fail if the syslog.conf is completely invalid - but then the
> system SHOULD be stopped pending the investigation of why the file has been
> corrupted, or syslogd falls back on a default configuration (record everything
> in the syslog file).
Again, that might be useful in some cases, but certainly shouldn't be the
only, or even default, mode.
James.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: syslog() blocks on glibc 2.1.3 with kernel 2.2.x
2000-10-29 16:35 ` Jesse Pollard
2000-10-29 17:18 ` Stephen Harris
2000-10-29 18:48 ` James Sutherland
@ 2000-10-30 14:06 ` Jesse Pollard
2 siblings, 0 replies; 11+ messages in thread
From: Jesse Pollard @ 2000-10-30 14:06 UTC (permalink / raw)
To: pollard, Stephen Harris, Horst von Brand; +Cc: linux-kernel
--------- Received message begins Here ---------
Jesse Pollard <pollard@cats-chateau.net>:
> On Sun, 29 Oct 2000, Stephen Harris wrote:
> >Horst von Brand wrote:
> >
> >> > > If you send SIGSTOP to syslogd on a Red Hat 6.2 system (glibc 2.1.3,
> >> > > kernel 2.2.x), within a few minutes you will find your entire machine
> >> > > grinds to a halt. For example, nobody can log in.
> >>
> >> Great! Yet another way in which root can get the rope to shoot herself in
> >> the foot. Anything _really_ new?
> >
> >OK, let's go a step further - what if syslog dies or breaks in some way
> >shape or form so that the syslog() function blocks...?
> >
> >My worry is the one that was originally raised but ignored: syslog() should
> >not BLOCK regardless of whether it's local or remote. syslog is not a
> >reliable mechanism and many programs have been written assuming they can
> >fire off syslog() calls without worry.
>
> It was NOT ignored. If syslogd dies, then the system SHOULD stop, after a
> few seconds (depending on the log rate...).
>
> I do believe that restarting syslog should be possible... Perhaps syslog
> should be started by inetd at the very beginning. Then it could be restarted
> after an exit/abort.
>
> This can STILL fail if the syslog.conf is completely invalid - but then the
> system SHOULD be stopped pending the investigation of why the file has been
> corrupted, or syslogd falls back on a default configuration (record everything
> in the syslog file).
As was pointed out in a separate E-mail: I ment to say "init" instead of
"inetd", since inetd can generate syslog messages...
-------------------------------------------------------------------------
Jesse I Pollard, II
Email: pollard@navo.hpc.mil
Any opinions expressed are solely my own.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 11+ messages in thread