From: James Morris <jmorris@namei.org>
To: Sami Farin <safari-kernel@safari.iki.fi>
Cc: Stephen Smalley <sds@tycho.nsa.gov>,
linux-kernel Mailing List <linux-kernel@vger.kernel.org>,
Eric Paris <eparis@parisplace.org>
Subject: Re: oprofile / selinux / security_port_sid
Date: Tue, 27 Mar 2007 10:12:17 -0400 (EDT) [thread overview]
Message-ID: <Line.LNX.4.64.0703271005460.21437@d.namei> (raw)
In-Reply-To: <20070327135433.xh5mtwgey3pr7u3r@m.safari.iki.fi>
On Tue, 27 Mar 2007, Sami Farin wrote:
> On Tue, Mar 27, 2007 at 09:40:23 -0400, Stephen Smalley wrote:
> > On Tue, 2007-03-27 at 13:06 +0300, Sami Farin wrote:
> > > is there room for improvement in security_port_sid() ?
> >
> > Yes, lots of room. Also, it won't get called per-packet if you enable
> > secmark (echo 0 > /selinux/compat_net or boot with selinux_compat_net=0
> > or build with SECURITY_SELINUX_ENABLE_SECMARK_DEFAULT), although that
> > may require updating your policy.
>
> Hmm, test was done with
> CONFIG_NETWORK_SECMARK=y
> CONFIG_SECURITY_SELINUX_ENABLE_SECMARK_DEFAULT=y
> and /selinux/compat_net = 0
Even with this setting, you'll be hitting security_port_sid() via
connect(2) and bind(2). We need to fix it.
- James
--
James Morris
<jmorris@namei.org>
prev parent reply other threads:[~2007-03-27 14:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-27 10:06 Sami Farin
2007-03-27 13:40 ` Stephen Smalley
2007-03-27 13:54 ` Sami Farin
2007-03-27 14:12 ` James Morris [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=Line.LNX.4.64.0703271005460.21437@d.namei \
--to=jmorris@namei.org \
--cc=eparis@parisplace.org \
--cc=linux-kernel@vger.kernel.org \
--cc=safari-kernel@safari.iki.fi \
--cc=sds@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®