[syslog-ng]route some messages to /dev/null
Jay Guerette
syslog-ng@lists.balabit.hu
Mon, 28 Feb 2005 03:24:30 -0500
Ah. Worth a shot. The as-shipped SELinux policies on FC3 don't expect
you to change things from their defaults. Causes problems.
That's a tangent anyway.
Here's what you need:
destination devnull {
file(/dev/null perm(0666));
};
On Mon, 28 Feb 2005 10:08:32 +0200, Denis Kot <denis.kot@gmail.com> wrote:
> no, it=B4s Gentoo linux without SELinux in USE
>=20
> On Mon, 28 Feb 2005 03:02:21 -0500, Jay Guerette <jayguerette@gmail.com> =
wrote:
> > This wouldn't happen to be a FC3 system with SELinux enabled?
> >
> > On Mon, 28 Feb 2005 09:04:51 +0200, Denis Kot <denis.kot@gmail.com> wro=
te:
> > > if I do this, then device /dev/null get permission 644 and any other
> > > application (for example postgresql) can=B4t write to /dev/null...
> > >
> > > On Mon, 28 Feb 2005 01:58:26 -0500, Jay Guerette <jayguerette@gmail.c=
om> wrote:
> > > > Add your filter:
> > > >
> > > > destination devnull {
> > > > file(/dev/null);
> > > > };
> > > > log {
> > > > source(syslog);
> > > > filter(...);
> > > > destination(devnull);
> > > > flags(final);
> > > > };
> > > >
> > > > On Tue, 22 Feb 2005 14:01:02 +0200, Denis Kot <denis.kot@gmail.com>=
wrote:
> > > > > I want to route some messages to /dev/null.
> > > > > how to do it?