From: Paolo Abeni <pabeni@redhat.com>
To: Casey Schaufler <casey@schaufler-ca.com>
Cc: linux-security-module@vger.kernel.org, mptcp@lists.01.org,
Stephen Smalley <stephen.smalley.work@gmail.com>,
Paul Moore <paul@paul-moore.com>,
SELinux <selinux@vger.kernel.org>
Subject: Re: [PATCH] linux: handle MPTCP consistently with TCP
Date: Wed, 16 Dec 2020 18:22:11 +0100 [thread overview]
Message-ID: <02d190afcb6e32f4aa3d1d228f762ab620f3c406.camel@redhat.com> (raw)
In-Reply-To: <27d6afd1-9a2e-e258-dd09-e943de06f480@schaufler-ca.com>
Hello,
On Wed, 2020-12-16 at 08:31 -0800, Casey Schaufler wrote:
> On 12/16/2020 3:55 AM, Paolo Abeni wrote:
> > The MPTCP protocol uses a specific protocol value, even if
> > it's an extension to TCP. Additionally, MPTCP sockets
> > could 'fall-back' to TCP at run-time, depending on peer MPTCP
> > support and available resources.
> >
> > As a consequence of the specific protocol number, selinux
> > applies the raw_socket class to MPTCP sockets.
>
> Have you looked at the implications for Smack?
AFAICS, the only hooks which can be affected is
smack_socket_post_create() - that is, the only hook with a 'protocol'
argument coming directly from the socket APIs.
If I read the code correctly, such hook behaves independently from
'protocol' value. Overall no changes should be needed for smack.
Thanks!
Paolo
next prev parent reply other threads:[~2020-12-16 17:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-16 11:55 [PATCH] linux: handle MPTCP consistently with TCP Paolo Abeni
2020-12-16 16:31 ` Casey Schaufler
2020-12-16 17:22 ` Paolo Abeni [this message]
2020-12-23 14:53 ` Paul Moore
2020-12-23 15:10 ` Paolo Abeni
2020-12-23 15:28 ` Paul Moore
2021-01-05 0:47 ` Paul Moore
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=02d190afcb6e32f4aa3d1d228f762ab620f3c406.camel@redhat.com \
--to=pabeni@redhat.com \
--cc=casey@schaufler-ca.com \
--cc=linux-security-module@vger.kernel.org \
--cc=mptcp@lists.01.org \
--cc=paul@paul-moore.com \
--cc=selinux@vger.kernel.org \
--cc=stephen.smalley.work@gmail.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).