All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Smalley <sds@tycho.nsa.gov>
To: peter enderborg <peter.enderborg@sonymobile.com>,
	"selinux@tycho.nsa.gov" <selinux@tycho.nsa.gov>
Subject: Re: Missing security labels for socket objects?
Date: Thu, 30 Oct 2014 13:06:52 -0400	[thread overview]
Message-ID: <5452702C.2000704@tycho.nsa.gov> (raw)
In-Reply-To: <54526941.3090208@sonymobile.com>

On 10/30/2014 12:37 PM, peter enderborg wrote:
> Hi! Im trying to see where the access control for some socket objects
> occurs.
> And it seems not to be very detailed resolution for sockets. For some
> protocols there is NOTHING. I did a test. I created a own protocol.
> AF_PEG_IPC.
> This can be accessed without specific type definition or contexts. It
> need socket access. In my system there is about 20 different protocols.
> They are "all or nothing".
> 
> The question is how do I select which root task that can access
> AF_PEG_IPC and who can not.  In selinux root is supposed to be
> in locked container.

SELinux applies a set of general socket permission checks (e.g. create,
bind, connect, ...) for all sockets, but it can only distinguish among
types of sockets for which security classes have been defined.  All
other socket address families are lumped together into the generic
socket security class.  If you want to be able to control this
AF_PEG_IPC separately, you need to introduce a security class for it.
See this similar answer on the seandroid-list,
http://marc.info/?l=seandroid-list&m=139056956927985&w=2

  reply	other threads:[~2014-10-30 17:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-30 16:37 Missing security labels for socket objects? peter enderborg
2014-10-30 17:06 ` Stephen Smalley [this message]
2014-11-04  8:33   ` peter enderborg
2014-11-04 14:01     ` Stephen Smalley
2014-11-04 14:28       ` peter enderborg

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=5452702C.2000704@tycho.nsa.gov \
    --to=sds@tycho.nsa.gov \
    --cc=peter.enderborg@sonymobile.com \
    --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.