From patchwork Thu Nov 15 13:02:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Moore X-Patchwork-Id: 10684291 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3400314DB for ; Thu, 15 Nov 2018 13:03:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A37F2C5E3 for ; Thu, 15 Nov 2018 13:03:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E5922C5D9; Thu, 15 Nov 2018 13:03:02 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5BB742C5DD for ; Thu, 15 Nov 2018 13:03:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733254AbeKOXKq (ORCPT ); Thu, 15 Nov 2018 18:10:46 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:34830 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729024AbeKOXKq (ORCPT ); Thu, 15 Nov 2018 18:10:46 -0500 Received: by mail-lf1-f67.google.com with SMTP id e26so12283691lfc.2 for ; Thu, 15 Nov 2018 05:02:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=fU0bSahDOVLphCMLSHPEdDcSEo/lWX0hmnXsSE8SHtE=; b=JjJGa1cVNvAjxasjq32pTy2r7G6/zLKQWghQAftoNiR7KSNvcEacIq4aAaCVWiQ9z2 Xmoz3waCssQ9WSvN4QIRBGWeYm+bMIapBEIl8Ayfer+yeOCP92SemG9iaNcLrEK406Lk 64T2l9V6+KHkwViSWdAL7T8JNXW+GMKRKPEcu7kB2CxpQPjyS2McnbasbzeAw9ELCRjF IKzWgy/STZO+VJWu5lde5lf4TirVF3G0Iz58ZiGsu6CtaHzFT+FhXPkezXYmMw3AtsNK NnZgb3iBAoX+rvqaDo5smvdguTUzQuFzv0cn3NqjfpwUI6FZEDKuQpPndPbvr2dLfd1K RmkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=fU0bSahDOVLphCMLSHPEdDcSEo/lWX0hmnXsSE8SHtE=; b=WjTI/ZnHbU5wQBZ7L5wCvnBPOAwY6H0yOj+I+LaMR8BRrqGz0EOc244ynCxsnXTJVb 9R/GdoeUUI35XkD414Gm+gnStujtR8kyjgkZjrhC+JjuT2wySh7iohY+RxoBHPnFLqJt 79NWdsFTiBW4aI9IZMLWaozNuoRJDwTtQcFQHdh5IJgEbribrr8GDCB9khuKKP1S33Ln Ygf2xD4uXfWM9wSyj61jlAxLuiTGUtQZLqCyYwX/jHbxHaVlWMe5RBttgieg+oUnGX0f ju17wZjuXhnUlJcbLoPSDj52/evKMkhdaZe2VUqvxmvXYoyhG9IV1BGICMQQGnwj/dXS Vl+w== X-Gm-Message-State: AGRZ1gIjflvW11cblvVvPp03SAsB9ChkexEp/1AGEJ1pflQj38IHLe/0 znGb1CHNxXLVA/rAx2Sup0obyZw9NdCVNOG1ULp9 X-Google-Smtp-Source: AJdET5c5LRJPfYcCYNAtxewzKAyacBPE0MRcxhDW3MUowdf8MCl5aC/vDgvI6kXI4KpA7KwiDjkf6Z1FYtN6VmLL/sA= X-Received: by 2002:a19:a7c1:: with SMTP id q184mr3255399lfe.4.1542286978330; Thu, 15 Nov 2018 05:02:58 -0800 (PST) MIME-Version: 1.0 From: Paul Moore Date: Thu, 15 Nov 2018 08:02:47 -0500 Message-ID: Subject: [GIT PULL] SELinux fixes for v4.20 (#1) To: Linus Torvalds Cc: selinux@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Sender: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: X-Virus-Scanned: ClamAV using ClamSMTP Hi Linus, Two small SELinux fixes for v4.20; Ondrej's patch adds a check on user input, and my patch ensures we don't look past the end of a buffer. Both patches are quite small and pass the selinux-testsuite, please merge them into the next v4.20-rc. Thanks, -Paul --- The following changes since commit 4458bba09788e70e8fb39ad003f087cd9dfbd6ac: selinux: Add __GFP_NOWARN to allocation at str_read() (2018-09-13 15:36:25 -0400) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git tags/selinux-pr-20181115 for you to fetch changes up to 877181a8d9dc663f7a73f77f50af714d7888ec3b: selinux: fix non-MLS handling in mls_context_to_sid() (2018-11-13 21:44:33 -0500) ---------------------------------------------------------------- selinux/stable-4.20 PR 20181115 ---------------------------------------------------------------- Ondrej Mosnacek (1): selinux: check length properly in SCTP bind hook Paul Moore (1): selinux: fix non-MLS handling in mls_context_to_sid() security/selinux/hooks.c | 3 +++ security/selinux/ss/mls.c | 10 +++++++--- 2 files changed, 10 insertions(+), 3 deletions(-)