From patchwork Tue Dec 6 15:00:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Smalley X-Patchwork-Id: 9462731 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 767B360231 for ; Tue, 6 Dec 2016 14:58:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6552A28417 for ; Tue, 6 Dec 2016 14:58:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 581402841C; Tue, 6 Dec 2016 14:58:40 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from emsm-gh1-uea11.nsa.gov (emsm-gh1-uea11.nsa.gov [8.44.101.9]) (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 2BE0628417 for ; Tue, 6 Dec 2016 14:58:38 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.33,310,1477958400"; d="scan'208";a="1323419" IronPort-PHdr: =?us-ascii?q?9a23=3AwRPrVxEIAYjwxklGMfUc1J1GYnF86YWxBRYc798d?= =?us-ascii?q?s5kLTJ79pM+4bnLW6fgltlLVR4KTs6sC0LuN9f24EjdZqb+681k6OKRWUBEEjc?= =?us-ascii?q?hE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRo?= =?us-ascii?q?LerpBIHSk9631+ev8JHPfglEnjSwbLd8IRmsrQjdqsYajIV/Jq0s1hbHv3xEdv?= =?us-ascii?q?hMy2h1P1yThRH85smx/J5n7Stdvu8q+tBDX6vnYak2VKRUAzs6PW874s3rrgTD?= =?us-ascii?q?QhCU5nQASGUWkwFHDBbD4RrnQ5r+qCr6tu562CmHIc37SK0/VDq+46t3ThLjlS?= =?us-ascii?q?kINyQ98GrKlMJ+iqxVqw+lqxBm3YLYfISZOfxjda3fYNwaX3JMUMZPWSJcDI2y?= =?us-ascii?q?bIwBD/IDMOpFoYTyqEcBoxSgCgm3H+7v1j1Fi2Xq0aAgz+gtDwfL1xEgEdIUt3?= =?us-ascii?q?TUqc34OroOUe+r1KnIzSvMb/VL0jng7YjHaBQhofWSUrNwbMHczlIvGB7ejliL?= =?us-ascii?q?tYzkPy+a1uQKs2SB6epgTvigh3QoqwF2vDii38EhgZTKiIIN0l3I6Cp0zYkvKd?= =?us-ascii?q?C4VUJ3e8CoHZROuy2AKod7RN4pTXtytyYg0LIGvIa2fC0NyJs62RHSc+eHc42U?= =?us-ascii?q?4hL7U+aRPCt4iGpleL2hgxay9lCtyvHmWcmu0VZKszFFnsPQtnENyxPT6s+HRu?= =?us-ascii?q?F7/ki9wjaAyxrf6uRFIUAwjabbKpghzaAslpcLrEjOESD7lF/2gaOLbEko5Oel?= =?us-ascii?q?5/r9brn7vpOcMpV7igD6MqQggMy/BuE4PxAVX2eF/eS81bvj/VD2QblTlfI2lb?= =?us-ascii?q?TZsJbGKssFva60GBNV04Y/5Ba/CDeqytIYnWIdI15fdxKHiJbpN0nUIP/kFfe/?= =?us-ascii?q?n0iskDBzyvHGP7zhBZPNI2PGkLflZLp96khcxBA1zd9F/ZJUCbABIOztVUPrst?= =?us-ascii?q?zXEAM5ORSuw+n7ENV9yp8eWWWXD6CHKKPdq0WI5uM0I+SXfI8aoiz9K/k+5/72?= =?us-ascii?q?iX82g0MScrez0ZsQcnC4EexsI1+Fbnr0ntcBDWAKsxIwTOzwklKCVyJcZ3epX6?= =?us-ascii?q?8n4zE7EIOmAZ7YRoGjm7yNxiC7HodZZmpeEFCDDW/od5mYW/cLcC+SIdVukj8D?= =?us-ascii?q?Vbi8UIIh1guhtAz9y7p6NObU/TcYtZ373thv++LTjQ0y9SBzD8mFyW6CUnt0nm?= =?us-ascii?q?IWSD8sx61wu1ByylKZ3ah/mfxYGsRZ5+lVXQciKZ7c0+t6BsjyWg3feteJTFGm?= =?us-ascii?q?T86iATEsUtIxxNoObFxnF9WllBDD0DKgA6UJmLyTGJw07qXc0mDqJ8Zz0XbG07?= =?us-ascii?q?Ihj0U9T8tUM22mgaB+9w3JCI7PiUmZkbildbgE1i7X6GiD1XaOvF1fUANoX6TK?= =?us-ascii?q?R3QfZlfIotTj/UPPVKGuBqo9MgRa1M6CL7FGatrzjVVJXP3jIsjRY3qtm2esAh?= =?us-ascii?q?aF3q+MY5f3dGUcxirdDFMJnBwU/XaDKQcxHDyho37EADxoC13vf1vm8fNip3Oj?= =?us-ascii?q?Uk800waKYlVn17q0/h4VgeKTS+gI070epighsTJ0EEy639LMBNqKvxBhc7lEYd?= =?us-ascii?q?Mh/FdH0nrUuBFnMZy8Na9tmFAecgtsskzy1xV4EJ9AkdQ0o3Mw1gZyL7yX0E9Z?= =?us-ascii?q?fTOCwZ/wIqHXKnX1/B23da7W203R0MqR+qcV8vg3t1XjvAavFkot6Hhn19hV03?= =?us-ascii?q?2G6ZXQCwoeS5XxUlw49xJivbHVfjE955/I1X1rKaS0tj7C28k1BOc80RavYdNf?= =?us-ascii?q?MKKCFA/vHMwXHNOuKPQrm1ivbxILIPtS+LQyP8y4a/uMwLSrM/p4nDK6kWRH55?= =?us-ascii?q?hw0liL9yp4Tu7HwYwFzO2f3gqJTDr8l0qhvdzsmYxeYjESBGW/wzD+BIFNfq1y?= =?us-ascii?q?YZoLCWC2Ls2v3Np+mprtV2RC+1K5HFwG38upeQaVb1z7xgBQ0FgboXqgmSSk1T?= =?us-ascii?q?B0lS8mrraH1izU3+vibAYHOnJMRGR6iFfsJZG4gM4cXEWzcQgmih+l5ULkyKhB?= =?us-ascii?q?vqh/KXfcQVtQdSjsM25iSrewtqaFY8NX65MnryNXUP+nbFCZVLH9pQAa0yX9EG?= =?us-ascii?q?tC3jw7cCuquprhlRxglG2dNGpzrGbeecxo2xff4sHTSOVP3joAWSZ4iSPbBl6i?= =?us-ascii?q?MNm15d+UjYvMsviiV2K9UZ1eaTHrwpmdtCu//mBlHRy/n+yzm9H+Hwg1yyn728?= =?us-ascii?q?NtVSXSoxb2epPr2LiiMeJ7YkloA0fx69BnFY5jiYYwi5QQ2HcAipWT43UHjX/5?= =?us-ascii?q?Mc9H1qLmcHoNWTkLzsbN4Af/xU1jKmyGx5rjWXWb3stuecO6b3gL2iIm8c9KEr?= =?us-ascii?q?yU4KZfnStyv1q4tx7ebuZznjca0/su52AVj/sPuAUz0iWXGqoSElVAPSzwixSI?= =?us-ascii?q?6MizrKtNa2apbbiw009+kMuvDL6cvw5cX2z5dY06HS9q6cV/MkzD32Hv6o3+f9?= =?us-ascii?q?nQd90TvAWOkxjcl+hVNI4xlv0SiCpoOWLyoWclyu4jjRxy2pG3p46HJHtx/KKi?= =?us-ascii?q?HhFXLCX1aN0J9jHrk6legt6c35qzEZV5BjULQJzoQOqtED0IsfTnMxiBECEgqn?= =?us-ascii?q?iBA7XSBgmf51l6r3LUD5+kLWmXK2cDwdVkWhadOFRVgBoIUzUigp45CgeqydT7?= =?us-ascii?q?cEtj6DEd/Fv4pQFIyuJvNxjySX3QqxutajsuT5ifNhVW5BlY50jJKcye8v5zHy?= =?us-ascii?q?ZA852ntgyCMHSbZxxTAGEHW0yEHUvjPqWg5dnB9eiXHOy+IOfPYbqUrexSTfCI?= =?us-ascii?q?xYig0oF+5TaDKt2PPmV+D/08wkdDRW52FN/HlDUJSiwXiyXNYtWapBii5CJ4sN?= =?us-ascii?q?qz8PPxWALg/YGPEaddMc1z+xCqhqeOL/Wfiz1+JTZc15MM3mPIyKMF0F4JlS5h?= =?us-ascii?q?ayOhEa8eui7JTaLQnLJXDhEAZixvNMpI9b883h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IZcJNtW4jEQRjdDuzOds8WuSMdbw895E4cMIstju3f6AK5FNoKd?= =?us-ascii?q?rGE2urzuz3/Z+iozsFShyTWyBaC3UfxW83cZGgUzKGSUslMvAPc08mfO7lDNtU?= =?us-ascii?q?h58P1BBriSi0V9ujV9E4tPBjZI1HClM098QGNAs+pENKTfa9ZcTOUqZR+zJxw+?= =?us-ascii?q?EuYr30OT/U5um3f5fzd/tgpd+yHTWQk0SSkVjansmT0YtsGoJyUaR4hObTo/cy?= =?us-ascii?q?fPMxibljxPvBZDd0FqXIgUAspC+7EexoZU4tbOSUO3Ji0fWhxtKB442+JFlUFf?= =?us-ascii?q?qEWYZTzdDQ2wePbPqBJ3Z92erMq0I/ni4QhIlJvnsPgm+KUHWXKmgxehQdfEr4?= =?us-ascii?q?/zrteKrFeBdL/kM+2gZn/MVDrMjReuiro/EpbF4TPTPxRBK5lm13UrfILtCWjV?= =?us-ascii?q?MhRaP6gbPVZUVbhmadVapeBXf9RreKgV9qNxBB+LWx3iFZezo/lBK1bcWS7RLz?= =?us-ascii?q?6d8uClp4Lc86DdQ/D6ZsOQ33bHX753PpBi5DnhBbjlzI9e9VDq2vp28kN6TkbG?= =?us-ascii?q?PD6foNv9IQME+detelHkvpI3ATPcGI1wn2b1xkFca8oXRDWn8IwDyJNF8nn/VP?= =?us-ascii?q?5431PosO1V6rlk85U47K5vyceoP6fdM/BavVVgAhiOCQVg7o8tD3RnR2BNfu8R?= =?us-ascii?q?L+/cfbgDjc/wte/4Crca6ACR++xFc9vIPV/Bmsi4CjGYVxNEgB0NqTkALguTz/?= =?us-ascii?q?SFgbN7Sd65pejl3UIg+0WxLhgcw712+IiE/LCHqPXQbxvLwrgOQrLqSd/rrrQw?= =?us-ascii?q?p0OS4uUplLwUdWxvZA2nC+wdWdQDxmr7yKAq0CYsE9/CH738+f5MTXQ5nin6l5?= =?us-ascii?q?B6BVUWFeseHaCX8oRGgmc4h+vZO8UUcq9YnGaPGwSkErgfxnG18CaXPHNqghfV?= =?us-ascii?q?0xH3W2+z6kH5rTNgSyvW09jjilZVVqWwBUpKWSqpPVR1sDKJPArtrtb3uKI17E?= =?us-ascii?q?8sMmP+r9KNiHGhOK5LEM3jOdycOzc7qEgQjJ0rSdylwZobFsalINcN7HF+aePT?= =?us-ascii?q?62WqkyBdpKdHg5DR4tqP9vXWGnmgiLaaq66WyTBdxXU5sksz6te6NvHB/9eKWe?= =?us-ascii?q?in134NTydjvAvMRwK6pabfr18KIkyLzEfKmIsRM9FCwXY411/p5O4/QNIy7gpS?= =?us-ascii?q?DIDAaO0epTrrIjv73U6fY84rVimZyzZXGkn1EVx4FaUn1mL/ot/GlXDK+1IyXo?= =?us-ascii?q?lwbUvnhR5pAIokNUIh8l8XwjAMEQIVcxCUEKmoBVj5LYsDTUUDbBCH06a/eqcw?= =?us-ascii?q?w0Jzxqii5ODNYux7HKoNLuxSjhKPnFdBHpIWsKseQK5idF9Z8K7XpwfiBJbhX/?= =?us-ascii?q?f6i3U8L/u1Td5G8coBrXst/h6/Rwa86ZdE97sbipGIdqtfbJjJos9971lo5SQO?= =?us-ascii?q?dixLjxhzlRW5Xv4ApOr7+NjUrIKo6vqyVKYqX+gX9hk1CH5kgJTsm10jus/Y1/?= =?us-ascii?q?tCRYLJk4j/9xpNI3GSsobAzxZ8MfYOK56sfLt47HoHJjMeJnwUMtqUavk8/zdt?= =?us-ascii?q?Py/O51xGGc4DedQYM9fTlg9Ol03pQrZT9tDBFVOCDIdzbc8o5XLtyD8p6Zs8Tv?= =?us-ascii?q?rg6DiuKJDH9V5NI+9MjCVildLFvugVwuPeCDMJ7nmdahh1xD6CypaWBvbo5+qM?= =?us-ascii?q?1M3bV1MIHy4xSYddJyCO+Q+5SeqvkpXmTAeU5tX0gJIke0KaXmaxk7gdsqZQDe?= =?us-ascii?q?5AjT323iREFo/rg/Kaqdys53VMu1JaEYZz4hzFGLlFMZVgIxv4jNSrSlJ6BiTh?= =?us-ascii?q?ZMHebgAut/aOxucQ/+V+MFPzZYABLRIe1b369XpVQxBqSL73olaWQ+IRa8F7SP?= =?us-ascii?q?PftHxV75xvK7MXNliHuJPqtitIqEwxAAIxZ78/sDpadlXJnA1SXKr0o6APig8d?= =?us-ascii?q?Ud5/pE9NFnm9OGYg6DrdVaValrOdCPoL/TWPVqYOSVlnMjtiQxOp35VjY76pnf?= =?us-ascii?q?dBsmNakSNyvuMn0zlnRBSmvy3jub4N2Dwn+LGitzUBomZJTuOAnCfUEV9D1ugF?= =?us-ascii?q?jb8AC3b+7lyxeHYDY5fp4Ll8PMju6IYv7XI+YRUlYi0HUv+tCy71j6ySBIyArs?= =?us-ascii?q?hQhBmXuMXBdbWzNzQdNqwhyRL/QHhwygrenBFo8GsNWDmv8N8kJIGgOck4xyuo?= =?us-ascii?q?GG7bdE0P4qNIq8bxq18LTPUsZlNl3Wpj09KLRisTS8zTA2w1lBQraX1YcJJf7h?= =?us-ascii?q?8XD6gogiiSsalA5QwUZCrUHZmk+onXhsfEw349Tc1lxmjOvK2Kmosq0GF5m9Nz?= =?us-ascii?q?9iOOumodd+LWU89oGXXy2J1QyergaPWxqOwHTpVpyKi5Wv8YLsaj4Xe22IltWk?= =?us-ascii?q?K9ybQeG125MeEdybffVyeoUnaYWeONc2iNgzk1KEjy6ge0LlcvcsdFs1c9Mvfe?= =?us-ascii?q?hp5bjwDhU7N0RyWIpV/cyGwjMP8aeBwttYeiegwKUPQRaPaGKegp2v0+B0MGb2?= =?us-ascii?q?XVEituF++2rVmtkZBnO3Vh5EX3evjt8gH6P9uRBBYEFZTWrphv9vymXmiBI2Nv?= =?us-ascii?q?zAVuPElo8OfSD1Extu5fc5aSmtjdnNZ73vQGd/dqNy0ypNgTlphl6YaKzMeAaQ?= =?us-ascii?q?vRwYrqJdHJvviYBOXSwF80dWFcTroUehj154E9Pt4lR73TA6VWsgkGCag9Wpwh?= =?us-ascii?q?OH/79LtoIwNrbg7ReLO0j9HypuKMYptbvWXW71w3LCfYtR0O0fm0TQt8b5CxmX?= =?us-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6tT+RD1VDgQKZ66DQBr5zxqVe5Wkk+PF7RkOPQzTZcmjD0Yem?= =?us-ascii?q?DtxAyjpgoXDjzcrbov5iOKFcp45nHFdZSR5xc8vQ+TFHTHHcxBq5vxH9Gi+XZj?= =?us-ascii?q?0e/mUlPysAI91pwvd7vRCATdPI7Uedpup1s0ewIRqaAbqznppQA4fm0hvuOnoD?= =?us-ascii?q?SimiC50j8qUFr90Ve65yINLmDg=3D=3D?= X-IPAS-Result: =?us-ascii?q?A2FaBgCs0UZY/wHyM5BeGwEBAQMBAQEJAQEBFgEBAQMBAQE?= =?us-ascii?q?JAQEBgw4BAQEBAR+BUBC7VSKIJVMBAQEBAQEBAQIBAl8oQg4BgWIagiMCNxQgC?= =?us-ascii?q?wMDCQIXKQgIAwEtFR8LBRgEiE6rdSoCiyMljzMRAYJoC4MKBY98imqRGAKBcYR?= =?us-ascii?q?9gzmGFodhijBWYRcCEQ4jgzkcgXtUg2KCfoIuAQEB?= Received: from unknown (HELO tarius.tycho.ncsc.mil) ([144.51.242.1]) by emsm-gh1-uea11.nsa.gov with ESMTP; 06 Dec 2016 14:58:25 +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 uB6EvMWa014469; Tue, 6 Dec 2016 09:57:36 -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 uB6EvLSl247826 for ; Tue, 6 Dec 2016 09:57:21 -0500 Received: from moss-pluto.infosec.tycho.ncsc.mil (moss-pluto [192.168.25.131]) by tarius.tycho.ncsc.mil (8.14.4/8.14.4) with ESMTP id uB6EvJ8Q014462; Tue, 6 Dec 2016 09:57:19 -0500 From: Stephen Smalley To: selinux@tycho.nsa.gov Subject: [PATCH v2] selinux: support distinctions among all network address families Date: Tue, 6 Dec 2016 10:00:19 -0500 Message-Id: <1481036419-30057-1-git-send-email-sds@tycho.nsa.gov> X-Mailer: git-send-email 2.7.4 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: Stephen Smalley MIME-Version: 1.0 Errors-To: selinux-bounces@tycho.nsa.gov Sender: "Selinux" X-Virus-Scanned: ClamAV using ClamSMTP Extend SELinux to support distinctions among all network address families implemented by the kernel by defining new socket security classes and mapping to them. Otherwise, many sockets are mapped to the generic socket class and are indistinguishable in policy. This has come up previously with regard to selectively allowing access to bluetooth sockets, and more recently with regard to selectively allowing access to AF_ALG sockets. Guido Trentalancia submitted a patch that took a similar approach to add only support for distinguishing AF_ALG sockets, but this generalizes his approach to handle all address families implemented by the kernel. Socket security classes are also added for ICMP and SCTP sockets. Socket security classes were not defined for AF_* values that are reserved but unimplemented in the kernel, e.g. AF_NETBEUI, AF_SECURITY, AF_ASH, AF_ECONET, AF_SNA, AF_WANPIPE. Backward compatibility is provided by only enabling the finer-grained socket classes if a new policy capability is set in the policy; older policies will behave as before. The legacy redhat1 policy capability that was only ever used in testing within Fedora for ptrace_child is reclaimed for this purpose; as far as I can tell, this policy capability is not enabled in any supported distro policy. Add a pair of conditional compilation guards to detect when new AF_* values are added so that we can update SELinux accordingly rather than having to belatedly update it long after new address families are introduced. Signed-off-by: Stephen Smalley --- v2 reworks the style based on comments from Guido Trentalancia and adds security classes for SCTP and ICMP sockets. The security class support for SCTP sockets was based on Richard Haines' SCTP patch set. For now, we only duplicate the class definition for rawip_socket for SCTP and ICMP sockets since that is how they were previously mapped. The SCTP definition can be further fleshed out by the SCTP patch set itself. security/selinux/hooks.c | 73 +++++++++++++++++++++++++++++++++++++ security/selinux/include/classmap.h | 68 ++++++++++++++++++++++++++++++++++ security/selinux/include/security.h | 3 +- security/selinux/selinuxfs.c | 2 +- security/selinux/ss/services.c | 3 ++ 5 files changed, 147 insertions(+), 2 deletions(-) diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 98a2e92..b4402b2 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -1268,6 +1268,8 @@ static inline int default_protocol_dgram(int protocol) static inline u16 socket_type_to_security_class(int family, int type, int protocol) { + int extsockclass = selinux_policycap_extsockclass; + switch (family) { case PF_UNIX: switch (type) { @@ -1282,13 +1284,18 @@ static inline u16 socket_type_to_security_class(int family, int type, int protoc case PF_INET6: switch (type) { case SOCK_STREAM: + case SOCK_SEQPACKET: if (default_protocol_stream(protocol)) return SECCLASS_TCP_SOCKET; + else if (extsockclass && protocol == IPPROTO_SCTP) + return SECCLASS_SCTP_SOCKET; else return SECCLASS_RAWIP_SOCKET; case SOCK_DGRAM: if (default_protocol_dgram(protocol)) return SECCLASS_UDP_SOCKET; + else if (extsockclass && protocol == IPPROTO_ICMP) + return SECCLASS_ICMP_SOCKET; else return SECCLASS_RAWIP_SOCKET; case SOCK_DCCP: @@ -1342,6 +1349,72 @@ static inline u16 socket_type_to_security_class(int family, int type, int protoc return SECCLASS_APPLETALK_SOCKET; } + if (extsockclass) { + switch (family) { + case PF_AX25: + return SECCLASS_AX25_SOCKET; + case PF_IPX: + return SECCLASS_IPX_SOCKET; + case PF_NETROM: + return SECCLASS_NETROM_SOCKET; + case PF_BRIDGE: + return SECCLASS_BRIDGE_SOCKET; + case PF_ATMPVC: + return SECCLASS_ATMPVC_SOCKET; + case PF_X25: + return SECCLASS_X25_SOCKET; + case PF_ROSE: + return SECCLASS_ROSE_SOCKET; + case PF_DECnet: + return SECCLASS_DECNET_SOCKET; + case PF_ATMSVC: + return SECCLASS_ATMSVC_SOCKET; + case PF_RDS: + return SECCLASS_RDS_SOCKET; + case PF_IRDA: + return SECCLASS_IRDA_SOCKET; + case PF_PPPOX: + return SECCLASS_PPPOX_SOCKET; + case PF_LLC: + return SECCLASS_LLC_SOCKET; + case PF_IB: + return SECCLASS_IB_SOCKET; + case PF_MPLS: + return SECCLASS_MPLS_SOCKET; + case PF_CAN: + return SECCLASS_CAN_SOCKET; + case PF_TIPC: + return SECCLASS_TIPC_SOCKET; + case PF_BLUETOOTH: + return SECCLASS_BLUETOOTH_SOCKET; + case PF_IUCV: + return SECCLASS_IUCV_SOCKET; + case PF_RXRPC: + return SECCLASS_RXRPC_SOCKET; + case PF_ISDN: + return SECCLASS_ISDN_SOCKET; + case PF_PHONET: + return SECCLASS_PHONET_SOCKET; + case PF_IEEE802154: + return SECCLASS_IEEE802154_SOCKET; + case PF_CAIF: + return SECCLASS_CAIF_SOCKET; + case PF_ALG: + return SECCLASS_ALG_SOCKET; + case PF_NFC: + return SECCLASS_NFC_SOCKET; + case PF_VSOCK: + return SECCLASS_VSOCK_SOCKET; + case PF_KCM: + return SECCLASS_KCM_SOCKET; + case PF_QIPCRTR: + return SECCLASS_QIPCRTR_SOCKET; +#if PF_MAX > 43 +#error New address family defined, please update this function. +#endif + } + } + return SECCLASS_SOCKET; } diff --git a/security/selinux/include/classmap.h b/security/selinux/include/classmap.h index e2d4ad3a..8dc67f4 100644 --- a/security/selinux/include/classmap.h +++ b/security/selinux/include/classmap.h @@ -169,5 +169,73 @@ struct security_class_mapping secclass_map[] = { { COMMON_CAP_PERMS, NULL } }, { "cap2_userns", { COMMON_CAP2_PERMS, NULL } }, + { "sctp_socket", + { COMMON_SOCK_PERMS, + "node_bind", NULL } }, + { "icmp_socket", + { COMMON_SOCK_PERMS, + "node_bind", NULL } }, + { "ax25_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "ipx_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "netrom_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "bridge_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "atmpvc_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "x25_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "rose_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "decnet_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "atmsvc_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "rds_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "irda_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "pppox_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "llc_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "ib_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "mpls_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "can_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "tipc_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "bluetooth_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "iucv_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "rxrpc_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "isdn_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "phonet_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "ieee802154_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "caif_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "alg_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "nfc_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "vsock_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "kcm_socket", + { COMMON_SOCK_PERMS, NULL } }, + { "qipcrtr_socket", + { COMMON_SOCK_PERMS, NULL } }, { NULL } }; + +#if PF_MAX > 43 +#error New address family defined, please update secclass_map. +#endif diff --git a/security/selinux/include/security.h b/security/selinux/include/security.h index 308a286..beaa14b 100644 --- a/security/selinux/include/security.h +++ b/security/selinux/include/security.h @@ -69,7 +69,7 @@ extern int selinux_enabled; enum { POLICYDB_CAPABILITY_NETPEER, POLICYDB_CAPABILITY_OPENPERM, - POLICYDB_CAPABILITY_REDHAT1, + POLICYDB_CAPABILITY_EXTSOCKCLASS, POLICYDB_CAPABILITY_ALWAYSNETWORK, __POLICYDB_CAPABILITY_MAX }; @@ -77,6 +77,7 @@ enum { extern int selinux_policycap_netpeer; extern int selinux_policycap_openperm; +extern int selinux_policycap_extsockclass; extern int selinux_policycap_alwaysnetwork; /* diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index cf9293e..0aac402 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c @@ -45,7 +45,7 @@ static char *policycap_names[] = { "network_peer_controls", "open_perms", - "redhat1", + "extended_socket_class", "always_check_network" }; diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index 082b20c..a70fcee 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c @@ -72,6 +72,7 @@ int selinux_policycap_netpeer; int selinux_policycap_openperm; +int selinux_policycap_extsockclass; int selinux_policycap_alwaysnetwork; static DEFINE_RWLOCK(policy_rwlock); @@ -1988,6 +1989,8 @@ static void security_load_policycaps(void) POLICYDB_CAPABILITY_NETPEER); selinux_policycap_openperm = ebitmap_get_bit(&policydb.policycaps, POLICYDB_CAPABILITY_OPENPERM); + selinux_policycap_extsockclass = ebitmap_get_bit(&policydb.policycaps, + POLICYDB_CAPABILITY_EXTSOCKCLASS); selinux_policycap_alwaysnetwork = ebitmap_get_bit(&policydb.policycaps, POLICYDB_CAPABILITY_ALWAYSNETWORK); }