All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
To: Daniel Jurgens <danielj-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: Paul Moore <paul-r2n+y4ga6xFZroRs9YW3xA@public.gmane.org>,
	"chrisw-69jw2NvuJkxg9hUCZPvPmw@public.gmane.org"
	<chrisw-69jw2NvuJkxg9hUCZPvPmw@public.gmane.org>,
	Stephen Smalley <sds-+05T5uksL2qpZYMLLGbcSA@public.gmane.org>,
	Eric Paris <eparis-FjpueFixGhCM4zKIHC2jIg@public.gmane.org>,
	"dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org"
	<dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	"sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org"
	<sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	"hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org"
	<hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	"selinux-+05T5uksL2qpZYMLLGbcSA@public.gmane.org"
	<selinux-+05T5uksL2qpZYMLLGbcSA@public.gmane.org>,
	"linux-security-module-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-security-module-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Yevgeny Petrilin
	<yevgenyp-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: Re: [PATCH v3 0/9] SELinux support for Infiniband RDMA
Date: Tue, 30 Aug 2016 18:01:51 +0300	[thread overview]
Message-ID: <20160830150151.GP594@leon.nu> (raw)
In-Reply-To: <VI1PR0501MB242949202A1DA23E5C8E1E8AC4E00-o1MPJYiShEyB6Z+oivrBG8DSnupUy6xnnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 3745 bytes --]

On Tue, Aug 30, 2016 at 02:06:53PM +0000, Daniel Jurgens wrote:
> On 8/30/2016 8:53 AM, Paul Moore wrote:
> > On Tue, Aug 30, 2016 at 3:46 AM, Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> wrote:
> >> On Mon, Aug 29, 2016 at 08:00:32PM -0400, Paul Moore wrote:
> >>> On Mon, Aug 29, 2016 at 5:48 PM, Daniel Jurgens <danielj-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> wrote:
> >>>> On 8/29/2016 4:40 PM, Paul Moore wrote:
> >>>>> On Fri, Jul 29, 2016 at 9:53 AM, Dan Jurgens <danielj-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org> wrote:
> >>>>>> From: Daniel Jurgens <danielj-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> >>>>> ...
> >>>>>
> >>>>>> Daniel Jurgens (9):
> >>>>>>   IB/core: IB cache enhancements to support Infiniband security
> >>>>>>   IB/core: Enforce PKey security on QPs
> >>>>>>   selinux lsm IB/core: Implement LSM notification system
> >>>>>>   IB/core: Enforce security on management datagrams
> >>>>>>   selinux: Create policydb version for Infiniband support
> >>>>>>   selinux: Allocate and free infiniband security hooks
> >>>>>>   selinux: Implement Infiniband PKey "Access" access vector
> >>>>>>   selinux: Add IB Port SMP access vector
> >>>>>>   selinux: Add a cache for quicker retreival of PKey SIDs
> >>>>> Hi Daniel,
> >>>>>
> >>>>> My apologies for such a long delay in responding to this latest
> >>>>> patchset; conferences, travel, and vacation have made for a very busy
> >>>>> August.  After you posted the v2 patchset we had an off-list
> >>>>> discussion regarding testing the SELinux/IB integration; unfortunately
> >>>>> we realized that IB hardware would be needed to test this (no IB
> >>>>> loopback device), but we agreed that having tests would be beneficial.
> >>>>>
> >>>>> Have you done any work yet towards adding SELinux/IB tests to the
> >>>>> selinux-testsuite project?
> >>>>>
> >>>>> * https://github.com/SELinuxProject/selinux-testsuite
> >>>> Hi Paul, I've not started doing that yet.  I've been waiting for feedback of any kind from the RDMA list.  I thought the test updates would be more appropriate around the time I'm submitting the changes to the user space utilities to allow labeling the new types.
> >>> Okay, no problem.  I just want the tests in place and functional when
> >>> we merge the kernel code.
> >> Hi Paul,
> >>
> >> IMHO, you can use Soft RoCE (RXE) [1] for it.
> >>
> >> ----
> >> Soft RoCE (RXE) - The software RoCE driver
> >>
> >> ib_rxe implements the RDMA transport and registers to the RDMA core
> >> device as a kernel verbs provider. It also implements the packet IO
> >> layer. On the other hand ib_rxe registers to the Linux netdev stack
> >> as a udp encapsulating protocol, in that case RDMA, for sending and
> >> receiving packets over any Ethernet device.  This yields a RDMA
> >> transport over the UDP/Ethernet network layer forming a RoCEv2
> >> compatible device.
> >>
> >> The configuration procedure of the Soft RoCE drivers requires
> >> binding to any existing Ethernet network device. This is done with
> >> /sys interface.
> >> ----
> >>
> >> [1]
> >> https://git.kernel.org/cgit/linux/kernel/git/dledford/rdma.git/tree/drivers/infiniband/sw/rxe
> > Hi Leon,
> >
> > It looks like v4.8 will have all the necessary pieces for this, yes?
> > Is there any documentation on this other than the git log?  Keep in
> > mind I'm looking at this from the SELinux side, I'm very Infiniband
> > ignorant at the moment; although Daniel has been very patient in
> > walking me through some of the basics.
> >
> > Daniel, does this look like something we might be able to use?
> >
> I don't this will be useful, RoCE doesn't have partitions/PKeys because it uses Ethernet as the transport instead of Infiniband.
>

Yeah, sorry for the noise.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: Leon Romanovsky <leon@kernel.org>
To: Daniel Jurgens <danielj@mellanox.com>
Cc: Paul Moore <paul@paul-moore.com>,
	"chrisw@sous-sol.org" <chrisw@sous-sol.org>,
	Stephen Smalley <sds@tycho.nsa.gov>,
	Eric Paris <eparis@parisplace.org>,
	"dledford@redhat.com" <dledford@redhat.com>,
	"sean.hefty@intel.com" <sean.hefty@intel.com>,
	"hal.rosenstock@gmail.com" <hal.rosenstock@gmail.com>,
	"selinux@tycho.nsa.gov" <selinux@tycho.nsa.gov>,
	"linux-security-module@vger.kernel.org"
	<linux-security-module@vger.kernel.org>,
	"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
	Yevgeny Petrilin <yevgenyp@mellanox.com>
Subject: Re: [PATCH v3 0/9] SELinux support for Infiniband RDMA
Date: Tue, 30 Aug 2016 18:01:51 +0300	[thread overview]
Message-ID: <20160830150151.GP594@leon.nu> (raw)
In-Reply-To: <VI1PR0501MB242949202A1DA23E5C8E1E8AC4E00@VI1PR0501MB2429.eurprd05.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 3635 bytes --]

On Tue, Aug 30, 2016 at 02:06:53PM +0000, Daniel Jurgens wrote:
> On 8/30/2016 8:53 AM, Paul Moore wrote:
> > On Tue, Aug 30, 2016 at 3:46 AM, Leon Romanovsky <leon@kernel.org> wrote:
> >> On Mon, Aug 29, 2016 at 08:00:32PM -0400, Paul Moore wrote:
> >>> On Mon, Aug 29, 2016 at 5:48 PM, Daniel Jurgens <danielj@mellanox.com> wrote:
> >>>> On 8/29/2016 4:40 PM, Paul Moore wrote:
> >>>>> On Fri, Jul 29, 2016 at 9:53 AM, Dan Jurgens <danielj@mellanox.com> wrote:
> >>>>>> From: Daniel Jurgens <danielj@mellanox.com>
> >>>>> ...
> >>>>>
> >>>>>> Daniel Jurgens (9):
> >>>>>>   IB/core: IB cache enhancements to support Infiniband security
> >>>>>>   IB/core: Enforce PKey security on QPs
> >>>>>>   selinux lsm IB/core: Implement LSM notification system
> >>>>>>   IB/core: Enforce security on management datagrams
> >>>>>>   selinux: Create policydb version for Infiniband support
> >>>>>>   selinux: Allocate and free infiniband security hooks
> >>>>>>   selinux: Implement Infiniband PKey "Access" access vector
> >>>>>>   selinux: Add IB Port SMP access vector
> >>>>>>   selinux: Add a cache for quicker retreival of PKey SIDs
> >>>>> Hi Daniel,
> >>>>>
> >>>>> My apologies for such a long delay in responding to this latest
> >>>>> patchset; conferences, travel, and vacation have made for a very busy
> >>>>> August.  After you posted the v2 patchset we had an off-list
> >>>>> discussion regarding testing the SELinux/IB integration; unfortunately
> >>>>> we realized that IB hardware would be needed to test this (no IB
> >>>>> loopback device), but we agreed that having tests would be beneficial.
> >>>>>
> >>>>> Have you done any work yet towards adding SELinux/IB tests to the
> >>>>> selinux-testsuite project?
> >>>>>
> >>>>> * https://github.com/SELinuxProject/selinux-testsuite
> >>>> Hi Paul, I've not started doing that yet.  I've been waiting for feedback of any kind from the RDMA list.  I thought the test updates would be more appropriate around the time I'm submitting the changes to the user space utilities to allow labeling the new types.
> >>> Okay, no problem.  I just want the tests in place and functional when
> >>> we merge the kernel code.
> >> Hi Paul,
> >>
> >> IMHO, you can use Soft RoCE (RXE) [1] for it.
> >>
> >> ----
> >> Soft RoCE (RXE) - The software RoCE driver
> >>
> >> ib_rxe implements the RDMA transport and registers to the RDMA core
> >> device as a kernel verbs provider. It also implements the packet IO
> >> layer. On the other hand ib_rxe registers to the Linux netdev stack
> >> as a udp encapsulating protocol, in that case RDMA, for sending and
> >> receiving packets over any Ethernet device.  This yields a RDMA
> >> transport over the UDP/Ethernet network layer forming a RoCEv2
> >> compatible device.
> >>
> >> The configuration procedure of the Soft RoCE drivers requires
> >> binding to any existing Ethernet network device. This is done with
> >> /sys interface.
> >> ----
> >>
> >> [1]
> >> https://git.kernel.org/cgit/linux/kernel/git/dledford/rdma.git/tree/drivers/infiniband/sw/rxe
> > Hi Leon,
> >
> > It looks like v4.8 will have all the necessary pieces for this, yes?
> > Is there any documentation on this other than the git log?  Keep in
> > mind I'm looking at this from the SELinux side, I'm very Infiniband
> > ignorant at the moment; although Daniel has been very patient in
> > walking me through some of the basics.
> >
> > Daniel, does this look like something we might be able to use?
> >
> I don't this will be useful, RoCE doesn't have partitions/PKeys because it uses Ethernet as the transport instead of Infiniband.
>

Yeah, sorry for the noise.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  parent reply	other threads:[~2016-08-30 15:01 UTC|newest]

Thread overview: 79+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-29 13:53 [PATCH v3 0/9] SELinux support for Infiniband RDMA Dan Jurgens
2016-07-29 13:53 ` Dan Jurgens
2016-07-29 13:53 ` [PATCH v3 1/9] IB/core: IB cache enhancements to support Infiniband security Dan Jurgens
     [not found] ` <1469800416-125043-1-git-send-email-danielj-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-07-29 13:53   ` [PATCH v3 2/9] IB/core: Enforce PKey security on QPs Dan Jurgens
2016-07-29 13:53     ` Dan Jurgens
2016-07-29 13:53   ` [PATCH v3 3/9] selinux lsm IB/core: Implement LSM notification system Dan Jurgens
2016-07-29 13:53     ` Dan Jurgens
     [not found]     ` <1469800416-125043-4-git-send-email-danielj-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-07-29 22:40       ` kbuild test robot
2016-07-29 22:40         ` kbuild test robot
2016-09-01  1:35     ` Paul Moore
2016-07-29 13:53   ` [PATCH v3 4/9] IB/core: Enforce security on management datagrams Dan Jurgens
2016-07-29 13:53     ` Dan Jurgens
2016-07-29 13:53   ` [PATCH v3 5/9] selinux: Create policydb version for Infiniband support Dan Jurgens
2016-07-29 13:53     ` Dan Jurgens
     [not found]     ` <1469800416-125043-6-git-send-email-danielj-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2016-09-01  1:39       ` Paul Moore
2016-09-01  1:39         ` Paul Moore
2016-07-29 13:53   ` [PATCH v3 9/9] selinux: Add a cache for quicker retreival of PKey SIDs Dan Jurgens
2016-07-29 13:53     ` Dan Jurgens
2016-07-29 13:53 ` [PATCH v3 6/9] selinux: Allocate and free infiniband security hooks Dan Jurgens
2016-07-29 13:53 ` [PATCH v3 7/9] selinux: Implement Infiniband PKey "Access" access vector Dan Jurgens
2016-07-29 13:53 ` [PATCH v3 8/9] selinux: Add IB Port SMP " Dan Jurgens
2016-08-29 21:40 ` [PATCH v3 0/9] SELinux support for Infiniband RDMA Paul Moore
2016-08-29 21:48   ` Daniel Jurgens
2016-08-30  0:00     ` Paul Moore
2016-08-30  7:46       ` Leon Romanovsky
2016-08-30 13:53         ` Paul Moore
2016-08-30 14:06           ` Daniel Jurgens
2016-08-30 14:06             ` Daniel Jurgens
     [not found]             ` <VI1PR0501MB242949202A1DA23E5C8E1E8AC4E00-o1MPJYiShEyB6Z+oivrBG8DSnupUy6xnnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2016-08-30 15:01               ` Leon Romanovsky [this message]
2016-08-30 15:01                 ` Leon Romanovsky
2016-08-30 18:46             ` Jason Gunthorpe
2016-08-30 18:52               ` Daniel Jurgens
2016-08-30 18:52                 ` Daniel Jurgens
2016-08-30 18:55                 ` Jason Gunthorpe
2016-08-30 19:10                   ` Daniel Jurgens
2016-08-30 19:10                     ` Daniel Jurgens
2016-09-01 16:34                     ` Jason Gunthorpe
     [not found]                       ` <20160901163418.GA6479-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-09-01 18:06                         ` Paul Moore
2016-09-01 18:06                           ` Paul Moore
2016-09-06 20:02                           ` Jason Gunthorpe
2016-09-06 20:35                             ` Daniel Jurgens
2016-09-06 20:35                               ` Daniel Jurgens
2016-09-06 21:55                               ` Jason Gunthorpe
2016-09-08  0:01                                 ` ira.weiny
2016-09-08 14:12                                   ` Daniel Jurgens
2016-09-08 14:12                                     ` Daniel Jurgens
2016-09-08 16:19                                     ` Jason Gunthorpe
2016-09-08 16:44                                       ` Daniel Jurgens
2016-09-08 16:44                                         ` Daniel Jurgens
2016-09-08 18:36                                         ` Jason Gunthorpe
2016-09-08 18:59                                           ` Daniel Jurgens
2016-09-08 18:59                                             ` Daniel Jurgens
2016-09-08 19:32                                             ` Jason Gunthorpe
2016-09-21 16:16                                               ` ira.weiny
     [not found]                                                 ` <20160921161626.GA27837-W4f6Xiosr+yv7QzWx2u06xL4W9x8LtSr@public.gmane.org>
2016-09-22 15:04                                                   ` Liran Liss
2016-09-22 15:04                                                     ` Liran Liss
     [not found]                                       ` <20160908161948.GA21614-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2016-09-08 19:14                                         ` ira.weiny
2016-09-08 19:14                                           ` ira.weiny
2016-09-08 19:35                                           ` Jason Gunthorpe
2016-09-15  1:52                                             ` ira.weiny
     [not found]                                     ` <DB6PR0501MB2422EA34EED4EE35EE7B1D28C4FB0-wTfl6qNNZ1ODMMyMbWtEF8DSnupUy6xnnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2016-09-08 17:47                                       ` Liran Liss
2016-09-08 17:47                                         ` Liran Liss
2016-09-08 18:37                                         ` Jason Gunthorpe
2016-09-08 19:01                                           ` Daniel Jurgens
2016-09-08 19:01                                             ` Daniel Jurgens
2016-09-08 18:34                                     ` ira.weiny
2016-09-20 23:43                             ` Paul Moore
2016-09-23 13:26                               ` Daniel Jurgens
2016-09-23 13:26                                 ` Daniel Jurgens
     [not found]                                 ` <VI1PR0501MB24299E036F1FCD335A2C2049C4C80-o1MPJYiShEyB6Z+oivrBG8DSnupUy6xnnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2016-09-29 22:16                                   ` Paul Moore
2016-09-29 22:16                                     ` Paul Moore
     [not found]                                     ` <CAHC9VhShCgxonV1rN-J7LyezamzZtKNZ1SR7ywnTB9Kgia_u1w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-09-29 22:41                                       ` Jason Gunthorpe
2016-09-29 22:41                                         ` Jason Gunthorpe
2016-09-30 19:59                                         ` Paul Moore
     [not found]                                           ` <CAHC9VhTBW9VsMHag41x1GWUbwPQeLngi8_iq9CPuQ=UMxDebkg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-09-30 20:46                                             ` Jason Gunthorpe
2016-09-30 20:46                                               ` Jason Gunthorpe
2016-09-26 18:17                               ` Jason Gunthorpe
     [not found]         ` <20160830074607.GN594-2ukJVAZIZ/Y@public.gmane.org>
2016-08-30 15:02           ` Or Gerlitz
2016-08-30 15:02             ` Or Gerlitz

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=20160830150151.GP594@leon.nu \
    --to=leon-dgejt+ai2ygdnm+yrofe0a@public.gmane.org \
    --cc=chrisw-69jw2NvuJkxg9hUCZPvPmw@public.gmane.org \
    --cc=danielj-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=eparis-FjpueFixGhCM4zKIHC2jIg@public.gmane.org \
    --cc=hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-security-module-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=paul-r2n+y4ga6xFZroRs9YW3xA@public.gmane.org \
    --cc=sds-+05T5uksL2qpZYMLLGbcSA@public.gmane.org \
    --cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=selinux-+05T5uksL2qpZYMLLGbcSA@public.gmane.org \
    --cc=yevgenyp-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    /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.