Received: by 2002:ab2:f03:0:b0:1ef:ffd0:ce49 with SMTP id i3csp41330lqf; Tue, 26 Mar 2024 13:41:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVLtEpgbZGxrsx5biLFsGIqWjbGrw72o2p2HSdPJnQBIhUG28NPgZpWADacG9KzjQcHMXqJnQLR6lSgWc/EW7/IuYf8Q/tk/gNVE+n8MQ== X-Google-Smtp-Source: AGHT+IHAWA6K/y2BVx7eL67pH9YVjLOS1WsuGYD2CczZ8vEnGR+tZV7HDs2cMxD55Xu8/rGLPphi X-Received: by 2002:a17:902:a3c6:b0:1de:e5aa:5ce with SMTP id q6-20020a170902a3c600b001dee5aa05cemr800929plb.41.1711485712637; Tue, 26 Mar 2024 13:41:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711485712; cv=pass; d=google.com; s=arc-20160816; b=x8DfEquQ9w3yZdC0YvMiR1MfvhDebQZWHlcVQ+ddZHCJKNRoGk547rGQ7j2G/Y7lX0 YRjnkQfkPUMfnfr+p4TTvyBjIxKETQfCOc8vffbz4Os03TFyZfvgt6kv/3a2/EojHHwf ylbd9RVPA+8TMUppyBNF+9penBHPt6MX8qeIjDnUcaxT6Hhpdy/UfIO+nmaOViJzqkRh 4faSOClUGS+xfry9hy29Dqx73mm/l4efiKrolHL8h7YrudnoK6tunCDd/TTUchBoC28O w4ZxzZHn65DEZkY/xP7O12K8TShtz6pQSKxZMFiQv7ChsmiiJZ6XJf3ad9rnEhefhSQ0 Z24g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:date:dkim-signature; bh=QDvVmoc+Z0deH7JQ50OPy/sr+BDc5aYDtiEhzcQSmg8=; fh=W6Ufa0+f1K3LN8vZ4IxKKent6xqL2LRu6VJFOWusa1A=; b=yxo5LFsq1n5O0UvRQp9IbL+hyF5ob88PyxBnQCJUKrlZZasAWcQI90iDVpYcetkFvn IUQuQH1hYpk1a8klvOVvk1WItduPVeSh2ipvOoForNLWzTP3SA+ex2kDhoTRJMzZ91jm hGNLL0Li092wvnrTRQ7ygQIm+ZTYlhXseS9BulXXv2QqLFeuqrWGmffdh05o0GK6sHTL OV2/fbTTA+h0ABNr3GMr/MeCsZ+v5QQilntWWG83cgaNbmW1czkj1dcoMxj96OVb2T2T H8TrFESlciG8UT3cigPzKbIpzKuQsLedD281+2YXQ1vcXiuWcmELwDSKFqmwToMU5a4K FoZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=PqYh1sGs; arc=pass (i=1 spf=pass spfdomain=paul-moore.com dkim=pass dkdomain=paul-moore.com dmarc=pass fromdomain=paul-moore.com); spf=pass (google.com: domain of linux-kernel+bounces-119942-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119942-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id iw21-20020a170903045500b001dc879b3b04si7626494plb.237.2024.03.26.13.41.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 13:41:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119942-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=PqYh1sGs; arc=pass (i=1 spf=pass spfdomain=paul-moore.com dkim=pass dkdomain=paul-moore.com dmarc=pass fromdomain=paul-moore.com); spf=pass (google.com: domain of linux-kernel+bounces-119942-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119942-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=paul-moore.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 98D13340FE4 for ; Tue, 26 Mar 2024 20:41:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 689A513F44E; Tue, 26 Mar 2024 20:36:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b="PqYh1sGs" Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D9D7313F429 for ; Tue, 26 Mar 2024 20:36:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711485376; cv=none; b=S7URs8+7RbtQt/Y5HgFZ6MX5yl4uh0+WLi4T6Jw5C1d1z3JrKIHZ4+EJZrxBUx/U5fsikMM3XnncCnU7PMhHKY8flqk6V9sy4T0hROX1NxiVStAVrjZjJ447HNGhJvTsiHpk4AJyceojnIgyNnNwQVeFijbf+4kXGQlDszB0Oug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711485376; c=relaxed/simple; bh=IMQPAjJ49lPvW6zxfZ7McTwU3P05cr/HzeW5oDoOwLU=; h=Date:Message-ID:MIME-Version:Content-Type:Content-Disposition: From:To:Cc:Subject:References:In-Reply-To; b=FbWgFKfd5pon1Xv8udkb9pehUQTPecKsGj6qX1gWqUst35dzyK3cEh1sK5tB9y88ixWp6kAjWjI72vhoskZ1sqlkvXNKS+0P2k5enEB56pWnKNBNshlsUNZtGNtwp/sPJV9XB5uXRIuN9DImIZ9HCjnGP1+x16zWaE2gaaR3hrI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com; spf=pass smtp.mailfrom=paul-moore.com; dkim=pass (2048-bit key) header.d=paul-moore.com header.i=@paul-moore.com header.b=PqYh1sGs; arc=none smtp.client-ip=209.85.219.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=paul-moore.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=paul-moore.com Received: by mail-qv1-f49.google.com with SMTP id 6a1803df08f44-69185f093f5so41385176d6.3 for ; Tue, 26 Mar 2024 13:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1711485374; x=1712090174; darn=vger.kernel.org; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :content-disposition:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=QDvVmoc+Z0deH7JQ50OPy/sr+BDc5aYDtiEhzcQSmg8=; b=PqYh1sGscrdevCMakkxJ37hwdtdtuLbu/BWxlWZHjNaj+KFKKq7KVwsECngfroRoMq 8/KBocQu1vYPYoYVXwFkR0SdPp8AScBIi85GcWxm8WTkTHo01b+fiHd8dE2Ubu7QzEQq Wi3KclJKtZOrnKC8TTPyVFNLxwYOKKB+cH/DxUw0dW1+RTdJCSxUTDBb2DKvQmZmueB5 adRp1kFG2R7OTHSGRn4JniPhAh+YIIK8zz1Q2eaPuiQVqowsd2Z5NKtQTnboLwYm+Y9L iQ8Qeldc6Ml8FVBsi2AAOh1RvfDkkC8qhD9tYfu8xXU5MvoZzVOW9yauy0vT1YKXdfRU RZLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711485374; x=1712090174; h=in-reply-to:references:subject:cc:to:from:content-transfer-encoding :content-disposition:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=QDvVmoc+Z0deH7JQ50OPy/sr+BDc5aYDtiEhzcQSmg8=; b=gtre0gJzqGKPDejpy6zWewl7Q4rK+gbTAaFuR6VzJZl3Xt0TzXobZFJufMBX/By2Nr lF/7Llpzzr/0exraiJyxF+d/L1ggtZwH83wTdY58LAvNzQndv4oOD5glJJJ/R9/tp+tZ qkzGGg37Bwq3ywvEQECPmvjUE25h7I4QEX56fOhoE9P7tl5Gbc88l3tMznqdzvdP6UC2 QT+9xBRdQ6PzlDj30AbK4wvIKE/pOKm3KD0ramF79+J8QDXyICsRMt5H5qPEXgROSbAQ CN9QWutE2sRymO6jzzTkIUeqpXTqYBxo8E0YGwZdXij4KvZrvOENJldmzdvZThSIRllP 4W+A== X-Forwarded-Encrypted: i=1; AJvYcCVcgy/hI+RZOsUyBZEw4qJV73H339XyHQW6Fl1WRX0zyboRJ3I0AxD6CPjbY4eMp+Jr+6RZs/PkA8cnekvrig0uwS2JECZTeI3ls3cz X-Gm-Message-State: AOJu0Ywe95Xf8QLiDd8vnto/iKp9mefPHBRNtxJO8F9LzM4O+xbcHdJU YLMprSlGgbdM9cVlSSfa6xw22DpWvlCQ3mvkIhoV9khihvSXhkzTvWWjWxzguw== X-Received: by 2002:a05:6214:2626:b0:696:19d7:49ae with SMTP id gv6-20020a056214262600b0069619d749aemr655883qvb.13.1711485373750; Tue, 26 Mar 2024 13:36:13 -0700 (PDT) Received: from localhost ([70.22.175.108]) by smtp.gmail.com with ESMTPSA id q15-20020ad45caf000000b0069124066c2fsm5491304qvh.140.2024.03.26.13.36.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 13:36:12 -0700 (PDT) Date: Tue, 26 Mar 2024 16:36:12 -0400 Message-ID: <1852474c48afe6b3f3cd3960d80033fa@paul-moore.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit From: Paul Moore To: =?UTF-8?q?Christian=20G=C3=B6ttsche?= , selinux@vger.kernel.org Cc: Stephen Smalley , Ondrej Mosnacek , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] selinux: reject invalid ebitmaps References: <20240315172859.634263-1-cgzones@googlemail.com> In-Reply-To: <20240315172859.634263-1-cgzones@googlemail.com> On Mar 15, 2024 =?UTF-8?q?Christian=20G=C3=B6ttsche?= wrote: > > Reject ebitmaps with a node containing an empty map or with an incorrect > highbit. Both checks are already performed by userspace, the former > since 2008 (patch 13cd4c896068 ("initial import from svn trunk revision > 2950")), the latter since v2.7 in 2017 (patch 75b14a5de10a ("libsepol: > ebitmap: reject loading bitmaps with incorrect high bit")). > > Signed-off-by: Christian Göttsche > --- > v2: > update wording as suggested in [1] > > [1]: https://lore.kernel.org/selinux/d476b21729cafb28c1b881113a563b1f.paul@paul-moore.com/ > --- > security/selinux/ss/ebitmap.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) Merged into selinux/dev, thanks. -- paul-moore.com