From: peter enderborg <peter.enderborg@sonymobile.com>
To: "selinux@tycho.nsa.gov" <selinux@tycho.nsa.gov>
Subject: Re: Missing security labels for socket objects?
Date: Tue, 4 Nov 2014 09:33:05 +0100 [thread overview]
Message-ID: <54588F41.9050507@sonymobile.com> (raw)
In-Reply-To: <5452702C.2000704@tycho.nsa.gov>
Is there any work going on the make it more granular? I did not see
it in the "Remaning Work" backlog. It is a generic problem and should
have a generic solution.
On 10/30/2014 06:06 PM, Stephen Smalley wrote:
> 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
>
>
next prev parent reply other threads:[~2014-11-04 8:33 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
2014-11-04 8:33 ` peter enderborg [this message]
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=54588F41.9050507@sonymobile.com \
--to=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.