All of lore.kernel.org
 help / color / mirror / Atom feed
From: Timothy Wood <timothy@hallcomp.com>
To: Stephen Smalley <sds@tislabs.com>
Cc: SELinux <SELinux@tycho.nsa.gov>
Subject: Re: udp receive
Date: 03 Jul 2002 12:39:36 -0400	[thread overview]
Message-ID: <1025714377.3620.18.camel@phobos> (raw)
In-Reply-To: <Pine.GSO.4.33.0207031002290.29509-100000@raven>

> I need more detail from the audit message, in particular the two types
> from the scontext and tcontext fields. 

avc:  denied  { recvfrom } for  pid=1791 exe=/usr/sbin/rpc.rquotad
saddr=127.0.0.1 source=696 daddr=127.0.0.1 dest=111 netif=lo
scontext=system_u:system_r:portmap_t tcontext=root:sysadm_r:sysadm_t
tclass=udp_socket


> The can_udp_send macro
> (defined in macros/global_macros.te) grants appropriate permissions for
> the sender domain and the receiver domain, so you likely just need a
> can_udp_send macro between the particular sender and receiver.  Of course,
> this is only significant for loopback communication (or if you are using

It looks to me like it's loopback between the rpc quota daemon and the
portmapper.

> By the way, please note that the rpcd_t domain is simply a placeholder
> for rpc daemons, and that you should really define an individual
> domain for any rpc daemon that requires privilege (e.g. nfsd).  You
> should also consider limiting this domain to true least privilege by
> removing every_domain and only adding the bare minimum set of
> permissions needed for operation.

Is there a template I could use or could someone please explain how to
go about creating a new domain?  I understand how to do some basic
modifications so far but I'm no expert yet.  Thanks


Timothy,



--
You have received this message because you are subscribed to the selinux 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:[~2002-07-03 16:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-03 13:56 udp receive Timothy Wood
2002-07-03 14:08 ` Stephen Smalley
2002-07-03 16:39   ` Timothy Wood [this message]
2002-07-03 16:48     ` Stephen Smalley
2002-07-03 14:13 ` Stephen Smalley

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=1025714377.3620.18.camel@phobos \
    --to=timothy@hallcomp.com \
    --cc=SELinux@tycho.nsa.gov \
    --cc=sds@tislabs.com \
    /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.