From patchwork Tue Nov 22 19:40:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Jurgens X-Patchwork-Id: 9442041 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C7FCE605EE for ; Tue, 22 Nov 2016 19:46:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B47611FF0B for ; Tue, 22 Nov 2016 19:46:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A93501FF13; Tue, 22 Nov 2016 19:46:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from emsm-gh1-uea10.nsa.gov (smtp.nsa.gov [8.44.101.8]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7F8AE1FF0B for ; Tue, 22 Nov 2016 19:46:13 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.31,682,1473120000"; d="scan'208";a="1226665" IronPort-PHdr: =?us-ascii?q?9a23=3AZDnsHBI6DxQTB3ox7tmcpTZWNBhigK39O0sv0rFi?= =?us-ascii?q?tYgQLvT9rarrMEGX3/hxlliBBdydsKMfzbCL+Pm6BiQp2tWoiDg6aptCVhsI24?= =?us-ascii?q?09vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7?= =?us-ascii?q?Ovr6GpLIj8Swyuu+54Dfbx9GiTe5b75+Ngu6oAXeusULn4dvKLs6xwfUrHdPZ+?= =?us-ascii?q?lY335jK0iJnxb76Mew/Zpj/DpVtvk86cNOUrj0crohQ7BAAzsoL2465MvwtRne?= =?us-ascii?q?VgSP/WcTUn8XkhVTHQfI6gzxU4rrvSv7sup93zSaPdHzQLspVzmu87tnRRn1gy?= =?us-ascii?q?gJLT459HzchNJ2gqxVvRmtowVzz5PIbI2QMvd1Y6HTcs4ARWdZXshfSTFPDI2/?= =?us-ascii?q?YYUIDeUBM/5Yoovgq1YAohSxGQaiC/30yjJTmn/737c33/g7HA3awgAtGc8Fvn?= =?us-ascii?q?TOrNXyMacfSe67w7POzT7ea/1WxC396IfWfRAnuvGHQLV9ftfLxkkpFgPKkFGQ?= =?us-ascii?q?qY7+MjOQyOsNt2yb4PBmVeKohG8rsR1+oj+qxso1jITCm4Ebykjc+Clkz4s4Ks?= =?us-ascii?q?e0RU5mbdK+DpdduD+WO5FrTs86Xm1lvCg3xqcJtJO5ZiQG1ZUqyh7FZ/CabYSF?= =?us-ascii?q?5hTuX/uLLzhinnJqYre/ig638Uin1+LzSNG50E1PripZitnMsW0N1wDL5siHVP?= =?us-ascii?q?R9+kCh1C6T1w/J8OFEIF00lbHBJ549wr8/ipoTsUPZEi/whEr2l7OZel8h+uip?= =?us-ascii?q?7+TrerTmppmCOI9okgzyL6sjl8OlDek4LwQCRXaX9Oui2LH54EH1WLBKgec3kq?= =?us-ascii?q?ndvpDaP8MbpquhDg9OzIkj7xe/DzG70NUXhHUIN1VFeA+Bj4f1JV7OO+v1Deu/?= =?us-ascii?q?gluwkDdrwOrKPrv6AprXNHTDn7Dhfahl505G1AUz1cxf545TCrwZIPPyW0jxtN?= =?us-ascii?q?rDAx88Nwy42ufnCNNn2oMYQ22PGKyZMKLMsVCW/O4vJfeDZJMNsjbnN/cl/+Lu?= =?us-ascii?q?jWM+mVIFc6ip3J8XaHWmEfR8OEiZb2TjjcoGEWcQpAU+VPbqiFqAUTFNe3myQ7?= =?us-ascii?q?gw5jYhCIKpFY3DXJyigKSd3CenGZ1bfm5GCkqWHnfua4qEWuwMZTmXIs95kzwI?= =?us-ascii?q?TKOhSoE61R20sw/60bVnJPLO+iIErZLjyMR15+rLmBEx7zN0DMOd03yWQmF3hG?= =?us-ascii?q?wIRDg23L1lrUx60FeD3rByg+ZEGtxL+/NJTgA6OIbGwONnEdDyWxzOfs2SRVm8?= =?us-ascii?q?XtqmBCs9TtUrw98Be0x9Acmtjgjf3yq2BL8Yj6CEC4Yw8q3CxHjxO8Z8y3Hd2a?= =?us-ascii?q?k6k1YmQ9VANWu6hq5+7QffHYjJnFuFl6yyb6QTwDbN9HufzWqJpExYUBB/UaHB?= =?us-ascii?q?XXAYfUbWqcn55l/FT7+rE7srKAxBydSNKqFScN3mkU1GROv/ONTZe2+xgGmwBQ?= =?us-ascii?q?yPxrOXcIrnYH4d3CPaCEkKlgAc53CGORI4Bii/v2LUFCZuGk73Y0Pw7el+r2u2?= =?us-ascii?q?T0EuwAGOc01uyaC1+gUOiPyCVfwTxKkLuDokqzluG1a9xd3WAcKapwV9ZKVcfc?= =?us-ascii?q?894FBf2GLFqgNyI52gILpmhlMFbwt3uEbu2AltBYVbjcgmtnUqwxRuKaiAylNO?= =?us-ascii?q?ayuY3YzsOr3QMmTy+hGva6rS2l7Ay9ab4b0A5+oiq1Xkpg2pEVAi83p/2dlPz3?= =?us-ascii?q?Sc/onKDBYVUZ/pT0k47QR6qKvEbSkz6ILZzmFjMamuvT/Yx9ImGvElxgymf9hB?= =?us-ascii?q?LKOODBXyHNECB8iyNOwqnECkbgwFPO9O6K40ONmme+Ga166rO+Zgmj2mgH9D4I?= =?us-ascii?q?B81EKD7TB8SunS05YC2fGY0RONVy3gg1e5rsD3hYdEaCkWHmq+0ijkGJddZrZs?= =?us-ascii?q?coYPCGeuJdC3x9plip72Q35Y9VijB1Ia18+yYxaSaULy3RFI30QNvXOngTe4zy?= =?us-ascii?q?BzkzwxtKqf2yjOw+D8exodJmFLQ2djgEz3IYipk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?us-ascii?q?pxH1IMGvMbBbCL55hRnn8km+zFMd0baqJClXyJFR6qCL8CzmOk5DWMLWl5mB7O?= =?us-ascii?q?1QrwQWSp4F/wsyB4XTPGz83/nUpNSrm3GUBSUjKmOU9lsTOPOA7ou8Tyuaku8U?= =?us-ascii?q?45LHfrtNOXm2unIr9XGNf/JNOEKykuuF0XlIExRsCo2Y0DH9q9JMwc8HB4bvvb?= =?us-ascii?q?8W+rkilBo6ldh4XE+cGV5u/XHWS8gK2GtrWN3i5XxmI/vVEl5dCqLuvO6MGSQ/?= =?us-ascii?q?S0y2YRSD9yuw7GXx6ztrzboE4bNFeO0EfKgoMKOM9W3WU210Hh/ugjQ8kz+B9Y?= =?us-ascii?q?Fonee/MIvSrzNyfswVaDf9I3UTGT0yFKEV3oClR4F6082W3qsMLPi3jQ50UiRp?= =?us-ascii?q?NseEz/mRx3E4I4JFop6FgMxyoOERMAaR6FA761AkTlN5ELVVAZaRSA3ri1ZLs4?= =?us-ascii?q?3VFpzrOo/u/TYvR2B7AROfZFkg6OgF9bF4oTsa0aXr18flhd+7DTpgX5BIjoQf?= =?us-ascii?q?/mlWEoNfKvXsBa8NoWt38j4ga5Wxqv95ND77IaiJCHaKFEZ4TDs95m40dh+zEP?= =?us-ascii?q?ajRHgAJjgBOhTeAcuOfj78DAsJWy9OahTqktSPsM9xUvHGRxlYXwj0osod7JzO?= =?us-ascii?q?dQUIvVhprj8ApVOX6FpJ7a0wVgKeoJM4+rfrdg93AcKigbOX0PPcSZa+M94y9r?= =?us-ascii?q?PzXf/VpCDd0QZdkAJsrChRhUilH1WLFU7sfbG16ZBJ1peM809Gf30y468YciXe?= =?us-ascii?q?n88jO2Iorf715VNfNZkCpsjM7CpPQSwffKEycX4GKZahZvzSOAypmNF+7w8v+R?= =?us-ascii?q?yNHQTF4JAik2XJpDKzWY5AynXO21lI/zXQ+O7c/zmp0+flqKRnOthKQFrrpMEe?= =?us-ascii?q?lYhyXjxDdeCpz6h/Kbstqr8mtXtUR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bA6QIA9?= =?us-ascii?q?N2f27Kx0KQJzcg3SZLSzmcTqpPiEZphTp3/Q8F0wKj3QuxsdxfyoVQZ7dYylh2?= =?us-ascii?q?3uIJAsQTJMt8ZiBQVgHItTAM4AtA6nA5mImKGnld++5V51t/UNsarqBfDAzM65?= =?us-ascii?q?0JlpX5hG+UyLOy7cBKd1jURhj+SymunP34LwCMPjfNMEUfZ0QnTBarDYBIm/LS?= =?us-ascii?q?iOOs3kcU5c77GcyK55UgmWZC3hUauGrDekNPR47kol0YF4eevTzCA3777Fwtfy?= =?us-ascii?q?YHtbpii7p36TKJRf9EDKBfDZXx9MTvqF9HhqELYPbYvw7ugOKsAiwNmA7Alv9j?= =?us-ascii?q?RNztWKL7KnrkDSxkJxbYjbI1fx2yYlRYkKJwyyMU8tgW/ft3TcDm1QLsylKcl2?= =?us-ascii?q?nNaVFQfg50hrlmErYW5NAG3oRc2eOWIDwcKxeBWK9B5XD9YEh+O3YlA3tqmzSe?= =?us-ascii?q?luJ5VEluKmurobkdZpNS7PXtZVPznKI7JtPTpeEP/PpF42bR4AqLc1R4g1aYKJ?= =?us-ascii?q?IEMdP0eK0Tnywhfa0U3oa9ys076EICIX8nVc07LIyjlNpxC/ufmDmMHjVq7WbI?= =?us-ascii?q?3uVv7ILCUlTi2aRSg1EUux/FeroeYLvPqZIWcZpVAZeTySCA8Vpq9xqdjQD2nT?= =?us-ascii?q?mfBsfZEQg/CaQS/wQjVilKUuHiZLqVyMQ/0bGAnUdXDhg21ctxe5K/9R+3Llc7?= =?us-ascii?q?2Yxq1IW+wZAotMbueVQ93GdvBCPz0ojCkWOP6gf93AqLY0yl3IQnECHKnS9V2R?= =?us-ascii?q?UkqWT+eCxzLvR4oVpIk0ujcy9tLWgCB3D7zCP6yDqD627o64kCGYtPXcVmkoZE?= =?us-ascii?q?w1mvgCAGiawBRbLmELEdQVt1/sQqKaYEZMzn0pg/p02xAQYARzTmFu0npOkfmj?= =?us-ascii?q?GM1ZTl4UjGW1QP0BalB6Fzww/VWX4g3sf9MAo9rfR2lA+bsQUYAdNuUn6JHLOK?= =?us-ascii?q?sMx/YkxClmoCI/syqBDl5QjRmI87TOE6Jmx71D5G44//dsUkGJXTzfbnDNypC6?= =?us-ascii?q?BMJX2SduvXfk2tLWvuBqMrtao5p0AFIUDi1rKNDd+ipBXn3q1weouRa0Aiiec3?= =?us-ascii?q?ol52MAJTYEbfld1Ohmq1PTcdKH7lmf8+o5oVavIR6CF77x3ZtMEMyv3gK9LWFQ?= =?us-ascii?q?fS6DC4F9qvELks0bJ6wge8z2DkjINAnlJhqRoSEX7BzjqbntCtBFhi0SlqggJt?= =?us-ascii?q?bzU6EQANXZ1S0+yHFNgNIUwGSXRNPSaIHow81+GXwKcJK6TD2jYJvNeS/1r/0F?= =?us-ascii?q?yYspHEW6Z+ATPWYduJkzxUnwaFb91Y72tg2QNK61cyfxbM0HNpWlj2tmh6vFMo?= =?us-ascii?q?ro4OwEAn0Cq/tvwfjcvGzT/2zPKe28eWXzl1BwbhA=3D?= X-IPAS-Result: =?us-ascii?q?A2HYBABknzRY/wHyM5BdHAEBBAEBCgEBFwEBBAEBCgEBgn8?= =?us-ascii?q?OAQEBAQEfgVmkWZZlK4ggUwEBAQEBAQEBAgECXyiCMxqCHAIEAQIkExQgCwMDC?= =?us-ascii?q?QEBFwghCAgDAS0VEQcHCwUYBIhMBLFHPSoCiyQBCgEBASOMZ4JMEQGFfQEEjmy?= =?us-ascii?q?LYpB/ihqGEJFyVV40HoMqHIFfcIVRDRcHghABAQE?= Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by emsm-gh1-uea10.nsa.gov with ESMTP; 22 Nov 2016 19:46:10 +0000 Received: from prometheus.infosec.tycho.ncsc.mil (prometheus [192.168.25.40]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id uAMJk5de018933; Tue, 22 Nov 2016 14:46:05 -0500 Received: from tarius.tycho.ncsc.mil (tarius.infosec.tycho.ncsc.mil [144.51.242.1]) by prometheus.infosec.tycho.ncsc.mil (8.15.2/8.15.2) with ESMTP id uAMJfB8T031451 for ; Tue, 22 Nov 2016 14:41:11 -0500 Received: from goalie.tycho.ncsc.mil (goalie [144.51.242.250]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id uAMJf23X017043 for ; Tue, 22 Nov 2016 14:41:10 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A1B6BAC6njRY/4GlL8FdHAEBBAEBCgEBgyoOAQEBAQGBeKRZkl+EFIYhAoJtAQIBAQEBAQJiKIRpAgQnUhAYCDFXBxKIcbFRPYtQAQsljGeIWwWObItikH+QKpFyVYESHoMqHIFfPDSFUSuCEAEBAQ X-IPAS-Result: A1B6BAC6njRY/4GlL8FdHAEBBAEBCgEBgyoOAQEBAQGBeKRZkl+EFIYhAoJtAQIBAQEBAQJiKIRpAgQnUhAYCDFXBxKIcbFRPYtQAQsljGeIWwWObItikH+QKpFyVYESHoMqHIFfPDSFUSuCEAEBAQ X-IronPort-AV: E=Sophos;i="5.31,682,1473134400"; d="scan'208";a="5839021" Received: from emsm-gh1-uea11.corp.nsa.gov (HELO emsm-gh1-uea11.nsa.gov) ([10.208.41.37]) by goalie.tycho.ncsc.mil with ESMTP; 22 Nov 2016 14:41:10 -0500 IronPort-PHdr: =?us-ascii?q?9a23=3ATU6ktxBefhR7ewWp75gWUyQJP3N1i/DPJgcQr6Af?= =?us-ascii?q?oPdwSPT+oMbcNUDSrc9gkEXOFd2CrakV0KyM7uu5AzdIyK3CmUhKSIZLWR4BhJ?= =?us-ascii?q?detC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+?= =?us-ascii?q?KPjrFY7OlcS30P2594HObwlSijewZb1/IA+ooQjRucUanJVuJ6gswRbVv3VEfP?= =?us-ascii?q?hby3l1LlyJhRb84cmw/J9n8ytOvv8q6tBNX6bncakmVLJUFDspPXw7683trhnD?= =?us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xPz17cydrmcwSYfr5+2kYEtv+A=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0F4BAA+njRY/4GlL8FdHAEBBAEBCgEBF?= =?us-ascii?q?wEBBAEBCgEBgn8OAQEBAQGBeKRZkl+EFIYhAoJtAQEBAQEBAQECAQJfKIIzGgG?= =?us-ascii?q?CGwIEJ1IQGAgxVwcSiHGxUD2LUAELJYxniFsFjmyLYpB/kCqRclWBEh6DKhyBX?= =?us-ascii?q?zw0hVErghABAQE?= X-IPAS-Result: =?us-ascii?q?A0F4BAA+njRY/4GlL8FdHAEBBAEBCgEBFwEBBAEBCgEBgn8?= =?us-ascii?q?OAQEBAQGBeKRZkl+EFIYhAoJtAQEBAQEBAQECAQJfKIIzGgGCGwIEJ1IQGAgxV?= =?us-ascii?q?wcSiHGxUD2LUAELJYxniFsFjmyLYpB/kCqRclWBEh6DKhyBXzw0hVErghABAQE?= X-IronPort-AV: E=Sophos;i="5.31,682,1473120000"; d="scan'208";a="995706" Received: from mail-il-dmz.mellanox.com (HELO mellanox.co.il) ([193.47.165.129]) by emsm-gh1-uea11.nsa.gov with ESMTP; 22 Nov 2016 19:41:07 +0000 Received: from Internal Mail-Server by MTLPINE1 (envelope-from danielj@mellanox.com) with ESMTPS (AES256-SHA encrypted); 22 Nov 2016 21:41:04 +0200 Received: from x-vnc01.mtx.labs.mlnx. (x-vnc01.mtx.labs.mlnx [10.12.150.16]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id uAMJenMY005134; Tue, 22 Nov 2016 21:41:02 +0200 From: Dan Jurgens To: chrisw@sous-sol.org, paul@paul-moore.com, sds@tycho.nsa.gov, eparis@parisplace.org, dledford@redhat.com, sean.hefty@intel.com, hal.rosenstock@gmail.com Subject: [PATCH v5 4/9] IB/core: Enforce security on management datagrams Date: Tue, 22 Nov 2016 21:40:33 +0200 Message-Id: <1479843638-67136-5-git-send-email-danielj@mellanox.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1479843638-67136-1-git-send-email-danielj@mellanox.com> References: <1479843638-67136-1-git-send-email-danielj@mellanox.com> X-Mailman-Approved-At: Tue, 22 Nov 2016 14:41:47 -0500 X-BeenThere: selinux@tycho.nsa.gov X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Security-Enhanced Linux \(SELinux\) mailing list" List-Post: List-Help: Cc: linux-rdma@vger.kernel.org, linux-security-module@vger.kernel.org, selinux@tycho.nsa.gov MIME-Version: 1.0 Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Virus-Scanned: ClamAV using ClamSMTP From: Daniel Jurgens Allocate and free a security context when creating and destroying a MAD agent. This context is used for controlling access to PKeys and sending and receiving SMPs. When sending or receiving a MAD check that the agent has permission to access the PKey for the Subnet Prefix of the port. During MAD and snoop agent registration for SMI QPs check that the calling process has permission to access the manage the subnet and register a callback with the LSM to be notified of policy changes. When notificaiton of a policy change occurs recheck permission and set a flag indicating sending and receiving SMPs is allowed. When sending and receiving MADs check that the agent has access to the SMI if it's on an SMI QP. Because security policy can change it's possible permission was allowed when creating the agent, but no longer is. Signed-off-by: Daniel Jurgens --- v2: - Squashed LSM hook additions. Paul Moore - Changed security blobs to void*. Paul Moore - Shorten end_port to port. Paul Moore - Change "smp" to "manage_subnet". Paul Moore - Use the LSM policy change notification and a flag to track permission instead of calling the LSM hook for every SMP. Dan Jurgens - Squashed PKey and SMP enforcement into the same patch and moved the logic into security.c. Dan Jurgens v3: - ib_port -> ib_endport. Paul Moore - Use notifier chains for LSM notification. Paul Moore - Reorder LSM hook parameters to put sec first. Paul Moore --- drivers/infiniband/core/core_priv.h | 35 ++++++++++++++ drivers/infiniband/core/mad.c | 52 +++++++++++++++++---- drivers/infiniband/core/security.c | 92 +++++++++++++++++++++++++++++++++++++ include/linux/lsm_hooks.h | 8 ++++ include/linux/security.h | 6 +++ include/rdma/ib_mad.h | 4 ++ security/security.c | 8 ++++ 7 files changed, 197 insertions(+), 8 deletions(-) diff --git a/drivers/infiniband/core/core_priv.h b/drivers/infiniband/core/core_priv.h index 68e3de0..2c35162 100644 --- a/drivers/infiniband/core/core_priv.h +++ b/drivers/infiniband/core/core_priv.h @@ -37,6 +37,8 @@ #include #include +#include +#include "mad_priv.h" struct pkey_index_qp_list { struct list_head pkey_index_list; @@ -166,6 +168,11 @@ int ib_get_cached_subnet_prefix(struct ib_device *device, u64 *sn_pfx); #ifdef CONFIG_SECURITY_INFINIBAND +int ib_security_pkey_access(struct ib_device *dev, + u8 port_num, + u16 pkey_index, + void *sec); + void ib_security_destroy_port_pkey_list(struct ib_device *device); void ib_security_cache_change(struct ib_device *device, @@ -183,7 +190,19 @@ void ib_destroy_qp_security_abort(struct ib_qp_security *sec); void ib_destroy_qp_security_end(struct ib_qp_security *sec); int ib_open_shared_qp_security(struct ib_qp *qp, struct ib_device *dev); void ib_close_shared_qp_security(struct ib_qp_security *sec); +int ib_mad_agent_security_setup(struct ib_mad_agent *agent, + enum ib_qp_type qp_type); +void ib_mad_agent_security_cleanup(struct ib_mad_agent *agent); +int ib_mad_enforce_security(struct ib_mad_agent_private *map, u16 pkey_index); #else +static inline int ib_security_pkey_access(struct ib_device *dev, + u8 port_num, + u16 pkey_index, + void *sec) +{ + return 0; +} + static inline void ib_security_destroy_port_pkey_list(struct ib_device *device) { } @@ -232,5 +251,21 @@ static inline int ib_open_shared_qp_security(struct ib_qp *qp, static inline void ib_close_shared_qp_security(struct ib_qp_security *sec) { } + +static inline int ib_mad_agent_security_setup(struct ib_mad_agent *agent, + enum ib_qp_type qp_type) +{ + return 0; +} + +static inline void ib_mad_agent_security_cleanup(struct ib_mad_agent *agent) +{ +} + +static inline int ib_mad_enforce_security(struct ib_mad_agent_private *map, + u16 pkey_index) +{ + return 0; +} #endif #endif /* _CORE_PRIV_H */ diff --git a/drivers/infiniband/core/mad.c b/drivers/infiniband/core/mad.c index 40cbd6b..b6041ec 100644 --- a/drivers/infiniband/core/mad.c +++ b/drivers/infiniband/core/mad.c @@ -40,9 +40,11 @@ #include #include #include +#include #include #include "mad_priv.h" +#include "core_priv.h" #include "mad_rmpp.h" #include "smi.h" #include "opa_smi.h" @@ -367,6 +369,12 @@ struct ib_mad_agent *ib_register_mad_agent(struct ib_device *device, atomic_set(&mad_agent_priv->refcount, 1); init_completion(&mad_agent_priv->comp); + ret2 = ib_mad_agent_security_setup(&mad_agent_priv->agent, qp_type); + if (ret2) { + ret = ERR_PTR(ret2); + goto error4; + } + spin_lock_irqsave(&port_priv->reg_lock, flags); mad_agent_priv->agent.hi_tid = ++ib_mad_client_id; @@ -384,7 +392,7 @@ struct ib_mad_agent *ib_register_mad_agent(struct ib_device *device, if (method) { if (method_in_use(&method, mad_reg_req)) - goto error4; + goto error5; } } ret2 = add_nonoui_reg_req(mad_reg_req, mad_agent_priv, @@ -400,14 +408,14 @@ struct ib_mad_agent *ib_register_mad_agent(struct ib_device *device, if (is_vendor_method_in_use( vendor_class, mad_reg_req)) - goto error4; + goto error5; } } ret2 = add_oui_reg_req(mad_reg_req, mad_agent_priv); } if (ret2) { ret = ERR_PTR(ret2); - goto error4; + goto error5; } } @@ -416,9 +424,10 @@ struct ib_mad_agent *ib_register_mad_agent(struct ib_device *device, spin_unlock_irqrestore(&port_priv->reg_lock, flags); return &mad_agent_priv->agent; - -error4: +error5: spin_unlock_irqrestore(&port_priv->reg_lock, flags); + ib_mad_agent_security_cleanup(&mad_agent_priv->agent); +error4: kfree(reg_req); error3: kfree(mad_agent_priv); @@ -489,6 +498,7 @@ struct ib_mad_agent *ib_register_mad_snoop(struct ib_device *device, struct ib_mad_agent *ret; struct ib_mad_snoop_private *mad_snoop_priv; int qpn; + int err; /* Validate parameters */ if ((is_snooping_sends(mad_snoop_flags) && !snoop_handler) || @@ -523,17 +533,25 @@ struct ib_mad_agent *ib_register_mad_snoop(struct ib_device *device, mad_snoop_priv->agent.port_num = port_num; mad_snoop_priv->mad_snoop_flags = mad_snoop_flags; init_completion(&mad_snoop_priv->comp); + + err = ib_mad_agent_security_setup(&mad_snoop_priv->agent, qp_type); + if (err) { + ret = ERR_PTR(err); + goto error2; + } + mad_snoop_priv->snoop_index = register_snoop_agent( &port_priv->qp_info[qpn], mad_snoop_priv); if (mad_snoop_priv->snoop_index < 0) { ret = ERR_PTR(mad_snoop_priv->snoop_index); - goto error2; + goto error3; } atomic_set(&mad_snoop_priv->refcount, 1); return &mad_snoop_priv->agent; - +error3: + ib_mad_agent_security_cleanup(&mad_snoop_priv->agent); error2: kfree(mad_snoop_priv); error1: @@ -579,6 +597,8 @@ static void unregister_mad_agent(struct ib_mad_agent_private *mad_agent_priv) deref_mad_agent(mad_agent_priv); wait_for_completion(&mad_agent_priv->comp); + ib_mad_agent_security_cleanup(&mad_agent_priv->agent); + kfree(mad_agent_priv->reg_req); kfree(mad_agent_priv); } @@ -597,6 +617,8 @@ static void unregister_mad_snoop(struct ib_mad_snoop_private *mad_snoop_priv) deref_snoop_agent(mad_snoop_priv); wait_for_completion(&mad_snoop_priv->comp); + ib_mad_agent_security_cleanup(&mad_snoop_priv->agent); + kfree(mad_snoop_priv); } @@ -1219,12 +1241,16 @@ int ib_post_send_mad(struct ib_mad_send_buf *send_buf, /* Walk list of send WRs and post each on send list */ for (; send_buf; send_buf = next_send_buf) { - mad_send_wr = container_of(send_buf, struct ib_mad_send_wr_private, send_buf); mad_agent_priv = mad_send_wr->mad_agent_priv; + ret = ib_mad_enforce_security(mad_agent_priv, + mad_send_wr->send_wr.pkey_index); + if (ret) + goto error; + if (!send_buf->mad_agent->send_handler || (send_buf->timeout_ms && !send_buf->mad_agent->recv_handler)) { @@ -1958,6 +1984,14 @@ static void ib_mad_complete_recv(struct ib_mad_agent_private *mad_agent_priv, struct ib_mad_send_wr_private *mad_send_wr; struct ib_mad_send_wc mad_send_wc; unsigned long flags; + int ret; + + ret = ib_mad_enforce_security(mad_agent_priv, + mad_recv_wc->wc->pkey_index); + if (ret) { + ib_free_recv_mad(mad_recv_wc); + deref_mad_agent(mad_agent_priv); + } INIT_LIST_HEAD(&mad_recv_wc->rmpp_list); list_add(&mad_recv_wc->recv_buf.list, &mad_recv_wc->rmpp_list); @@ -2015,6 +2049,8 @@ static void ib_mad_complete_recv(struct ib_mad_agent_private *mad_agent_priv, mad_recv_wc); deref_mad_agent(mad_agent_priv); } + + return; } static enum smi_action handle_ib_smi(const struct ib_mad_port_private *port_priv, diff --git a/drivers/infiniband/core/security.c b/drivers/infiniband/core/security.c index 45800dd..bc09af5 100644 --- a/drivers/infiniband/core/security.c +++ b/drivers/infiniband/core/security.c @@ -39,6 +39,7 @@ #include #include #include "core_priv.h" +#include "mad_priv.h" static struct pkey_index_qp_list *get_pkey_idx_qp_list(struct ib_port_pkey *pp) { @@ -614,4 +615,95 @@ int ib_security_modify_qp(struct ib_qp *qp, } EXPORT_SYMBOL(ib_security_modify_qp); +int ib_security_pkey_access(struct ib_device *dev, + u8 port_num, + u16 pkey_index, + void *sec) +{ + u64 subnet_prefix; + u16 pkey; + int ret; + + ret = ib_get_cached_pkey(dev, port_num, pkey_index, &pkey); + if (ret) + return ret; + + ret = ib_get_cached_subnet_prefix(dev, port_num, &subnet_prefix); + + if (ret) + return ret; + + return security_ib_pkey_access(sec, subnet_prefix, pkey); +} +EXPORT_SYMBOL(ib_security_pkey_access); + +static int ib_mad_agent_security_change(struct notifier_block *nb, + unsigned long event, + void *data) +{ + struct ib_mad_agent *ag = container_of(nb, struct ib_mad_agent, lsm_nb); + + if (event != LSM_POLICY_CHANGE) + return NOTIFY_DONE; + + ag->smp_allowed = !security_ib_endport_manage_subnet(ag->security, + ag->device->name, + ag->port_num); + + return NOTIFY_OK; +} + +int ib_mad_agent_security_setup(struct ib_mad_agent *agent, + enum ib_qp_type qp_type) +{ + int ret; + + ret = security_ib_alloc_security(&agent->security); + if (ret) + return ret; + + if (qp_type != IB_QPT_SMI) + return 0; + + ret = security_ib_endport_manage_subnet(agent->security, + agent->device->name, + agent->port_num); + if (ret) + return ret; + + agent->lsm_nb.notifier_call = ib_mad_agent_security_change; + ret = register_lsm_notifier(&agent->lsm_nb); + if (ret) + return ret; + + agent->smp_allowed = true; + agent->lsm_nb_reg = true; + return 0; +} + +void ib_mad_agent_security_cleanup(struct ib_mad_agent *agent) +{ + security_ib_free_security(agent->security); + if (agent->lsm_nb_reg) + unregister_lsm_notifier(&agent->lsm_nb); +} + +int ib_mad_enforce_security(struct ib_mad_agent_private *map, u16 pkey_index) +{ + int ret; + + if (map->agent.qp->qp_type == IB_QPT_SMI && !map->agent.smp_allowed) + return -EACCES; + + ret = ib_security_pkey_access(map->agent.device, + map->agent.port_num, + pkey_index, + map->agent.security); + + if (ret) + return ret; + + return 0; +} + #endif /* CONFIG_SECURITY_INFINIBAND */ diff --git a/include/linux/lsm_hooks.h b/include/linux/lsm_hooks.h index d576efc..3936216 100644 --- a/include/linux/lsm_hooks.h +++ b/include/linux/lsm_hooks.h @@ -911,6 +911,11 @@ * @subnet_prefix the subnet prefix of the port being used. * @pkey the pkey to be accessed. * @sec pointer to a security structure. + * @ib_endport_manage_subnet: + * Check permissions to send and receive SMPs on a end port. + * @dev_name the IB device name (i.e. mlx4_0). + * @port_num the port number. + * @sec pointer to a security structure. * @ib_alloc_security: * Allocate a security structure for Infiniband objects. * @sec pointer to a security structure pointer. @@ -1629,6 +1634,8 @@ union security_list_options { #ifdef CONFIG_SECURITY_INFINIBAND int (*ib_pkey_access)(void *sec, u64 subnet_prefix, u16 pkey); + int (*ib_endport_manage_subnet)(void *sec, const char *dev_name, + u8 port_num); int (*ib_alloc_security)(void **sec); void (*ib_free_security)(void *sec); #endif /* CONFIG_SECURITY_INFINIBAND */ @@ -1865,6 +1872,7 @@ struct security_hook_heads { #endif /* CONFIG_SECURITY_NETWORK */ #ifdef CONFIG_SECURITY_INFINIBAND struct list_head ib_pkey_access; + struct list_head ib_endport_manage_subnet; struct list_head ib_alloc_security; struct list_head ib_free_security; #endif /* CONFIG_SECURITY_INFINIBAND */ diff --git a/include/linux/security.h b/include/linux/security.h index 0a5de0c..fbd4bc7 100644 --- a/include/linux/security.h +++ b/include/linux/security.h @@ -1419,6 +1419,7 @@ static inline int security_tun_dev_open(void *security) #ifdef CONFIG_SECURITY_INFINIBAND int security_ib_pkey_access(void *sec, u64 subnet_prefix, u16 pkey); +int security_ib_endport_manage_subnet(void *sec, const char *name, u8 port_num); int security_ib_alloc_security(void **sec); void security_ib_free_security(void *sec); #else /* CONFIG_SECURITY_INFINIBAND */ @@ -1427,6 +1428,11 @@ static inline int security_ib_pkey_access(void *sec, u64 subnet_prefix, u16 pkey return 0; } +static inline int security_ib_endport_manage_subnet(void *sec, const char *dev_name, u8 port_num) +{ + return 0; +} + static inline int security_ib_alloc_security(void **sec) { return 0; diff --git a/include/rdma/ib_mad.h b/include/rdma/ib_mad.h index c8a773f..23c4a4e 100644 --- a/include/rdma/ib_mad.h +++ b/include/rdma/ib_mad.h @@ -537,6 +537,10 @@ struct ib_mad_agent { u32 flags; u8 port_num; u8 rmpp_version; + void *security; + bool smp_allowed; + bool lsm_nb_reg; + struct notifier_block lsm_nb; }; /** diff --git a/security/security.c b/security/security.c index 40326d4..e4fd2b6 100644 --- a/security/security.c +++ b/security/security.c @@ -1470,6 +1470,12 @@ int security_ib_pkey_access(void *sec, u64 subnet_prefix, u16 pkey) } EXPORT_SYMBOL(security_ib_pkey_access); +int security_ib_endport_manage_subnet(void *sec, const char *dev_name, u8 port_num) +{ + return call_int_hook(ib_endport_manage_subnet, 0, sec, dev_name, port_num); +} +EXPORT_SYMBOL(security_ib_endport_manage_subnet); + int security_ib_alloc_security(void **sec) { return call_int_hook(ib_alloc_security, 0, sec); @@ -1943,6 +1949,8 @@ struct security_hook_heads security_hook_heads = { #ifdef CONFIG_SECURITY_INFINIBAND .ib_pkey_access = LIST_HEAD_INIT(security_hook_heads.ib_pkey_access), + .ib_endport_manage_subnet = + LIST_HEAD_INIT(security_hook_heads.ib_endport_manage_subnet), .ib_alloc_security = LIST_HEAD_INIT(security_hook_heads.ib_alloc_security), .ib_free_security =