All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dale Amon <amon@vnl.com>
To: Russell Coker <russell@coker.com.au>
Cc: Dale Amon <amon@vnl.com>, SELinux Mail List <selinux@tycho.nsa.gov>
Subject: Re: Boot time avc messages
Date: Sat, 20 Sep 2003 13:21:08 +0100	[thread overview]
Message-ID: <20030920122108.GE12158@vnl.com> (raw)
In-Reply-To: <200309201632.59282.russell@coker.com.au>

On Sat, Sep 20, 2003 at 04:32:59PM +1000, Russell Coker wrote:
> > Still loads of messages from syslog-ng. I wonder if I'm the
> > first user of this policy who actually uses the full capability
> > of remote logging with syslog-ng? I'm going to see if I can
> 
> Probably.  Let me know what you are getting and I'll change my policy 
> accordingly.

The test machine is a particularly simple setup and doesn't
use as much of the capabilities of the remote logging as some
of my "real" machines. However, this is what I have at the moment:

allow syslogd_t port_t:tcp_socket { name_bind };
allow syslogd_t syslogd_t:capability { fsetid };
allow syslogd_t tty_device_t:chr_file { setattr };

avc:  denied  { name_bind } for  pid=221 
      exe=/sbin/syslog-ng 
      port=999 
      scontext=system_u:system_r:syslogd_t 
      tcontext=system_u:object_r:port_t 
      tclass=tcp_socket

avc:  denied  { fsetid } for  pid=221 
      exe=/sbin/syslog-ng 
      capability=4 
      scontext=system_u:system_r:syslogd_t 
      tcontext=system_u:system_r:syslogd_t 
      tclass=capability

avc:  denied  { setattr } for  pid=221 
      exe=/sbin/syslog-ng 
      dev=sda2 
      ino=946940 
      scontext=system_u:system_r:syslogd_t 
      tcontext=system_u:object_r:tty_device_t 
      tclass=chr_file

> Why does it use port 999?

There are 3 ports discussed in the manual
(found at http://www.balabit.com/products/syslog_ng/reference/book1.html).

The internal default is to listen on 514 tcp and/or udp or send to
that port. However it is also used by rshell, so many people
use the document's example ports instead and place this line in 
syslog-ng.conf:

	    destination d_tcp { tcp("10.1.2.3" port(1999); localport(999)); };
 

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  reply	other threads:[~2003-09-20 12:21 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20030915214153.GE8988@vnl.com>
2003-09-16 14:53 ` Boot time avc messages Dale Amon
2003-09-17 10:14   ` Russell Coker
2003-09-17 10:14   ` Russell Coker
2003-09-17 12:37     ` Dale Amon
2003-09-17 12:45       ` Russell Coker
2003-09-19 15:41         ` Dale Amon
2003-09-20  6:32           ` Russell Coker
2003-09-20 12:21             ` Dale Amon [this message]
2003-09-20 13:39               ` Russell Coker
2003-09-22 10:34                 ` Dale Amon
2003-09-22 13:25                 ` Dale Amon
2003-09-20 13:13             ` Dale Amon
2003-09-20 13:35               ` Russell Coker
2003-09-20 14:38                 ` Dale Amon
2003-09-20 14:51                   ` Dale Amon
2003-09-18 13:07     ` Dale Amon
2003-09-18 13:11       ` Russell Coker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030920122108.GE12158@vnl.com \
    --to=amon@vnl.com \
    --cc=russell@coker.com.au \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.