From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5405834632411306197==" MIME-Version: 1.0 From: Paul Moore To: mptcp at lists.01.org Subject: [MPTCP] Re: [RFC PATCH] selinux: handle MPTCP consistently with TCP Date: Thu, 03 Dec 2020 21:24:39 -0500 Message-ID: In-Reply-To: 20201203235415.GD5710@breakpoint.cc X-Status: X-Keywords: X-UID: 7040 --===============5405834632411306197== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Thu, Dec 3, 2020 at 6:54 PM Florian Westphal wrote: > Paul Moore wrote: > > I'm not very well versed in MPTCP, but this *seems* okay to me, minus > > the else-crud chunk. Just to confirm my understanding, while MPTCP > > allows one TCP connection/stream to be subdivided and distributed > > across multiple interfaces, it does not allow multiple TCP streams to > > be multiplexed on a single connection, yes? > > Its the latter. The application sees a TCP interface (socket), but > data may be carried over multiple individual tcp streams on the wire. Hmm, that may complicate things a bit from a SELinux perspective. Maybe no= t. Just to make sure I understand, with MPTCP, a client that traditionally opened multiple TCP sockets to talk to a server would now just open a single MPTCP socket and create multiple sub-flows instead of multiple TCP sockets? -- = paul moore www.paul-moore.com --===============5405834632411306197==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB13BC433FE for ; Fri, 4 Dec 2020 02:25:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 886B022511 for ; Fri, 4 Dec 2020 02:25:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726332AbgLDCZc (ORCPT ); Thu, 3 Dec 2020 21:25:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726080AbgLDCZb (ORCPT ); Thu, 3 Dec 2020 21:25:31 -0500 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74DDAC061A4F for ; Thu, 3 Dec 2020 18:24:51 -0800 (PST) Received: by mail-ej1-x644.google.com with SMTP id m19so6468847ejj.11 for ; Thu, 03 Dec 2020 18:24:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vfNYS6MLlkiU5bhAM8lpLHEUCLkxO4vhhPJPNj6ZzNQ=; b=jzqTqHQxAL0LS5ScINSdTvJ5zKHIN4mzyc3RDRQIbl1EF4UgJZkgm9+LksrAiBWdBS GbvMqruzlhYe+6b/80eR3GUHCGeL2fngGwBJalds+M32lrMq4284PqYPLJ6VCgZT0OEH 2qW55y14gA+aX3cIEzRC4/lE/OOde1EoiPcRzs7HsJ1mK/uRwagNqXDpHB4NAsufXXsS GKZEFR9a3A2ntPCAr3/+zwppZHZ0ymofctxTh2kzctf9p1ikhaOgAM1FH2Eof5su65oc NEUSsLlzwbrrGXb16IOK4N6YXa7SNMamWo2j3yHi+43Dwxz40xoj0BUpq4Ln7L59FnQ7 fKNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vfNYS6MLlkiU5bhAM8lpLHEUCLkxO4vhhPJPNj6ZzNQ=; b=JOsXxBerB9yb6Dg+kU5j3fSRZ4E5Re8NnPlR5zIdZ4oENm7H8hw5gbag352dp0HmMw pHbLMW8+/5ZULr+4ZyLfrvNc8Q6JdPg8UJJvI91jVn5O8rbT7VaTsW3QZ9wpJ7kb1U+M 1hUXMrRvh5RS0EEgeqFE9VV/CYWbhnLudJykGKTlgr5uib0r8WS9OYqisZ7yXbLNdqD1 76YaBdJhRL4J42kqr/fD8L+kHsXMIIbqQtAZw8rNqK0BR5OZvaUbYM5u30xjVwW5yF+8 nrsbZ/WrepW85oBAiPm7nTCub8KtlLTPz0foJdfdpZeKx2rYRPJUJ7TZRykhobqpJ4UO cdKA== X-Gm-Message-State: AOAM5324DBmLq3lqxHlNnqUedI6VCdhFvDAbZuQ69PiXBD+h9LnV7EOL 9M+QVcROrRpBGE5n0FVPlv3sXMm9aSrdcVj4r7i9 X-Google-Smtp-Source: ABdhPJw/wDaom2dKRiHEelptoKI7eTgbi/3h3Sigmu3HEvydpnNloOUiujb1l7lVayhrH7BWfiJip3s+9gbSZ/u8Evc= X-Received: by 2002:a17:906:46d6:: with SMTP id k22mr5088315ejs.542.1607048690170; Thu, 03 Dec 2020 18:24:50 -0800 (PST) MIME-Version: 1.0 References: <3336b397dda1d15ee9fb87107f9cc21a5d1fe510.1606904940.git.pabeni@redhat.com> <3a5f156da4569957b91bb5aa4d2a316b729a2c69.camel@redhat.com> <539f376-62c2-dbe7-fbfd-6dc7a53eafa@linux.intel.com> <20201203235415.GD5710@breakpoint.cc> In-Reply-To: <20201203235415.GD5710@breakpoint.cc> From: Paul Moore Date: Thu, 3 Dec 2020 21:24:39 -0500 Message-ID: Subject: Re: [MPTCP] Re: [RFC PATCH] selinux: handle MPTCP consistently with TCP To: Florian Westphal Cc: Mat Martineau , Stephen Smalley , selinux@vger.kernel.org, mptcp@lists.01.org, linux-security-module@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org On Thu, Dec 3, 2020 at 6:54 PM Florian Westphal wrote: > Paul Moore wrote: > > I'm not very well versed in MPTCP, but this *seems* okay to me, minus > > the else-crud chunk. Just to confirm my understanding, while MPTCP > > allows one TCP connection/stream to be subdivided and distributed > > across multiple interfaces, it does not allow multiple TCP streams to > > be multiplexed on a single connection, yes? > > Its the latter. The application sees a TCP interface (socket), but > data may be carried over multiple individual tcp streams on the wire. Hmm, that may complicate things a bit from a SELinux perspective. Maybe not. Just to make sure I understand, with MPTCP, a client that traditionally opened multiple TCP sockets to talk to a server would now just open a single MPTCP socket and create multiple sub-flows instead of multiple TCP sockets? -- paul moore www.paul-moore.com