From: Casey Schaufler <casey@schaufler-ca.com>
To: Steve G <linux_4ever@yahoo.com>
Cc: selinux@tycho.nsa.gov
Subject: Re: Question on networking accesses
Date: Tue, 22 May 2007 07:56:18 -0700 (PDT) [thread overview]
Message-ID: <497871.6976.qm@web36614.mail.mud.yahoo.com> (raw)
In-Reply-To: <827038.22839.qm@web51509.mail.re2.yahoo.com>
--- Steve G <linux_4ever@yahoo.com> wrote:
>
> >I guess with SELinux you could think of it as the following:
> >
> > - process A (subject) writes to socket A1 (object)
> > - socket A1 (subject) sends packet to compat_net/SECMARK (object)
> >
> > packet traverses the ether (real magic)
> >
> > - socket B1 (subject) receives the packet via int/ext labels (object)
> > - process B (subject) receives the data via socket B1 (object)
>
> I think this is missing the access control decisions. First, the sender has
> to be
> in a domain that allows a connect/sendto, the connection between domains must
> be
> allowed by policy, and the receiver has to be in a domain that allows
> listen/recvfrom. This is omitting any DAC restrictions, capability
> requirements,
> and IPTables rules which have first vote on denying the activity. The access
> control is mostly at the entry points to the transaction and not on a packet
> by
> packet basis (except perhaps udp where every packet is an entry point to the
> transaction).
The nut of my question, which I think Paul has answered, is about
the subtle distintion between A writing to B and B reading from A.
There sure is a lot of sophistication involved in the process, and
it looks as if A thinks it is writing and B thinks it is reading.
That implies an intermediate object for A to write and B to read.
As I noted before, models with insubstantial objects have been frowned
upon in the past. Y'all may be better positioned to argue in their
favor than I was back in '95 an '02.
Casey Schaufler
casey@schaufler-ca.com
--
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.
prev parent reply other threads:[~2007-05-22 14:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-21 13:48 Question on networking accesses Casey Schaufler
2007-05-21 15:22 ` Paul Moore
2007-05-21 16:07 ` Casey Schaufler
2007-05-21 18:20 ` Paul Moore
2007-05-21 20:18 ` Casey Schaufler
2007-05-21 20:30 ` Paul Moore
2007-05-21 21:06 ` Casey Schaufler
2007-05-22 3:46 ` Paul Moore
2007-05-22 4:59 ` Casey Schaufler
2007-05-22 12:39 ` Steve G
2007-05-22 14:13 ` Paul Moore
2007-05-22 14:56 ` Casey Schaufler [this message]
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=497871.6976.qm@web36614.mail.mud.yahoo.com \
--to=casey@schaufler-ca.com \
--cc=linux_4ever@yahoo.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.