netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Venkat Yekkirala" <vyekkirala@trustedcs.com>
To: "'Stephen Smalley'" <sds@tycho.nsa.gov>,
	"Venkat Yekkirala" <vyekkirala@tcsfw4.tcs-sec.com>
Cc: "Paul Moore" <paul.moore@hp.com>, <netdev@vger.kernel.org>,
	<selinux@tycho.nsa.gov>, <jmorris@namei.org>
Subject: RE: [PATCH 3/3] mlsxfrm: Various fixes
Date: Wed, 8 Nov 2006 13:17:05 -0600	[thread overview]
Message-ID: <000701c7036a$7b269010$cc0a010a@tcssec.com> (raw)
In-Reply-To: <1163007248.12241.58.camel@moss-spartans.epoch.ncsc.mil>

> > >  Not sure
> > > though when
> > > that would apply here,
> >
> > It could apply to xfrms if they happen to be using the context
> > represented by any of the initial SIDs.
>
> Which would happen when?

If one were attempting to use a context pertaining to the unlabeled init
sid in the SPD and/or the SAD. But would I be correct in assuming that the
same sid (unlabeled init sid in all likelyhood) would end up being returned
when the context is turned into a sid, resulting in the SPD and the SAD
using
the same init sid, thus making a full-context compare unnecessary?

>
> > > and it would only apply if both SIDs
> > > were initial
> > > SIDs.
> >
> > OK. Will narrow the full context comparison to just this case.
>
> What's the harm from just using the SID comparison and
> allowing for the
> possibility that there might be a few duplicates in rare
> circumstances?
> Does it break any assumptions in the rest of the logic?

The best I can think of is if the SA's sid doesn't match the
socket's SID, IKE would come into play, if it's configured.

I also wanted to conversely ask what harm exists if we did
a full-context compare in the event the sids didn't match?

Are we just trying to generally avoid extra code?


  reply	other threads:[~2006-11-08 19:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-07 17:17 [PATCH 3/3] mlsxfrm: Various fixes Venkat Yekkirala
2006-11-07 20:29 ` Paul Moore
2006-11-07 20:48   ` Stephen Smalley
2006-11-08 14:34     ` Venkat Yekkirala
2006-11-08 17:34       ` Stephen Smalley
2006-11-08 19:17         ` Venkat Yekkirala [this message]
2006-11-08 21:57           ` 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='000701c7036a$7b269010$cc0a010a@tcssec.com' \
    --to=vyekkirala@trustedcs.com \
    --cc=jmorris@namei.org \
    --cc=netdev@vger.kernel.org \
    --cc=paul.moore@hp.com \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    --cc=vyekkirala@tcsfw4.tcs-sec.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).