Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2308491lqo; Mon, 13 May 2024 14:23:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVv91ZBp1wcMZS1ZqOJGy7KaFfcCWf0dLEX7GqaMNqUFVMQdi52Q/2V4R99WlEIywLr1AelaDdYkqadNcIMYjvViXCljnw0t4HO0pC40w== X-Google-Smtp-Source: AGHT+IHIWfYC6qGDyjWpSkAFEXNTdV8NrFUfKWFCFyQynpS7p+M+XXpoOM9qqyCPY3RagU/3QPaI X-Received: by 2002:a05:6a00:1912:b0:6ec:db05:36cd with SMTP id d2e1a72fcca58-6f4e02aacecmr11335901b3a.9.1715635393824; Mon, 13 May 2024 14:23:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715635393; cv=pass; d=google.com; s=arc-20160816; b=qDWUgt5jYHpwKBPXthCYGj3JlyeF9mLb2Df6nr5P6WoztP9QN87aT6FPMuDIMn4yY5 8WMpwe/w/djZIAxdBTVdqmaB9/DQXDUaaSuZac534pnDAmVmLSBWPtjiotufG6IwYj9Z Gae7UVUbdL1hwQ3TcDZ6K8jfnMRvMw5fZz3WhksfzgHqyBVX4aTvhfivNAMYe2EjSMbY UJJ1BXtciqAwGF8kVpNlQJq0GD91apUA5crTomORvrs/lH1WN6MrufDEe6axKINqjaMP dgbKL104v/7iT2dfK8k5mRJ0mBKwiUw/oRB5IrcF6ZCnWZhuMfL6d/VU4kG1N7L/xZqo 364Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:subject:cc:to :from:message-id:date:dkim-signature; bh=cb8wPi+KZnMkYbJ5IU839Hv5TQgYYO/fRuvxhtwV9Vk=; fh=voeBkTroKv2Lh3j3hU4ArzN8h8ng+bZcmiDXj7f7xKc=; b=TERGV+GzJ3r+bir63WHWkHUrXTGCjHZ8KI24wzgaRbpBAhf0Iikzr3wG0srCzpJOoh z5W3p3HbAgywRhfu8UmJGfm+0c+GzDYDrJGQZV/KjKNwNMLOHM/Hk2HOfXZa40+HZf3S VZjkzEP2i6BpWTPi27bMb3b2+R9XCka7rtAdLVNjV3SzETCMGJeHNED9rnFwT18kHLtW EGFY7IS21ij2MxwKTFT+755CWm1iZUJ4HtrcAfeY5j00WAr19pPc24K1jYjWNvHcj10O DjESLqte39bD/hOYLnAA0Ow1SZEjFv9wWTTqrHj5wlMtsPXt3wsBIMgxfWcJw7e6J2aM jV5g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@paul-moore.com header.s=google header.b=Nl1fCdn4; 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-178104-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178104-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 41be03b00d2f7-6341405026bsi10136437a12.898.2024.05.13.14.23.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 14:23:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178104-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=Nl1fCdn4; 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-178104-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178104-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 D7B29281786 for ; Mon, 13 May 2024 21:23:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D96782C60; Mon, 13 May 2024 21:23:07 +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="Nl1fCdn4" Received: from mail-qt1-f174.google.com (mail-qt1-f174.google.com [209.85.160.174]) (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 CDD9D824B1 for ; Mon, 13 May 2024 21:23:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715635386; cv=none; b=JJxph4kJ0Nk6d+U0vWyj4i2DI7HWVfNKQmSwGjFytZXYstC0oefx3vi1h5cyswc9GOsx2hOaZmKMBQmGJSXecWUvZeP+7jaPjoghdbOYlzvYCIl9bgTqmw2zurDNlyS2Hq6Kkm2MZMVR5pSgNvjKTkmE4GSsGqCADv9Rqf2//Ac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715635386; c=relaxed/simple; bh=vLna6LECv+0HMYVMV351U1LfIFCPTAckesZrx9GAj1w=; h=Date:Message-ID:From:To:Cc:Subject; b=Xqby+esyVogIT1xG5RZdhdel+/HaKaxew7DZpLc7Ohyz7orLoY+KIOzT2BGeTgjeK9x6Zx/R84b8FNN1y7Vu1/B9f3ByHurvRC9zbR7tkyOjXIRTVwmc59poMqbZdtFFuZ+vg9Eqpanai8DndsLqkzM5TSDL2XDn2Ou9FiKWRbk= 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=Nl1fCdn4; arc=none smtp.client-ip=209.85.160.174 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-qt1-f174.google.com with SMTP id d75a77b69052e-43de92e228aso28103391cf.1 for ; Mon, 13 May 2024 14:23:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore.com; s=google; t=1715635384; x=1716240184; darn=vger.kernel.org; h=subject:cc:to:from:message-id:date:from:to:cc:subject:date :message-id:reply-to; bh=cb8wPi+KZnMkYbJ5IU839Hv5TQgYYO/fRuvxhtwV9Vk=; b=Nl1fCdn4vNLjDW0JrhbwdNyd5hqtJ91fLHjMaAXEfwPHY3eRodW4By2snmqymVIqkT IICv61VZwCMhSD4rhFzlhPEZMDbtP7mntDE0jyqmlSHrzYTiM+iREM8S8gdT64e4qbJf hn5Z4BU2flzODRXxRcFOSRnHRVF80EVozSDi/DVPCKKn6kbVs8glrATxWxqKGSWQwp7m 4ZsU20ZKs+FHVSNcs7NjjogJYXn7bSHwLjXVEZynQ3kxdN8RHkyUdkkr1/K3JvsnIuGK FsC1JFUuZTkGULQ55XLFes/bhN+/cNXjMwS/Uz7MJmjo0mg1F9y/I9WD/p15Zm8rVaP1 WKXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715635384; x=1716240184; h=subject:cc:to:from:message-id:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cb8wPi+KZnMkYbJ5IU839Hv5TQgYYO/fRuvxhtwV9Vk=; b=LB8U5cOqPwzdwaxb+6AlCXJTgRJqIpfpiE3IvGXoVtw0VK43fMuLRBbASeZkh0f4Ll XLqDScD8moxJKdCdcAZ44y1Eg6r94GD1npXdbqSj+XyAcINF4D0HFaDSLMiaMgQ9AuZF SemIwRBhgp9G3ASdMoUpe44t/FuL27CKFrnhKO57vybFzY6j5FW8ef2p9NuW3jKQ/sAN XWZdj9R7lPKGGLKmInhRmZf4RRLQNX03e0ilkeqEHjOrQrjKGTYYX4ek3DXP0rfiUOCb 0MJWxbZxRgE6LP7CLKi/ADjxjlZQS4kX1NN1/TGuaK4cdd6IYPnjXRm9ArqAFV87ygz+ rOaA== X-Forwarded-Encrypted: i=1; AJvYcCUMif3H1Mxsh/AUIPlw1kSHN09Mz4RivGlsrdkctmWk8JMc3ev/DoWXe7LzoinMZv25YMIqqbrSUWEQF43jxUpOibY9MjuLRskysIUP X-Gm-Message-State: AOJu0YynJLRQG26CwTpZh9Ipe+3PTOAhPbEkd1ts2rq0kXpne6j+19nE pUBtyuSY8h40bUakjGu2fmILlidwFbmjsPC5ge7o01JdNEmBY8nSwCAo1e5S2w== X-Received: by 2002:a05:622a:24d:b0:43d:e71e:9772 with SMTP id d75a77b69052e-43dfdb2b230mr104484941cf.40.1715635383622; Mon, 13 May 2024 14:23:03 -0700 (PDT) Received: from localhost ([70.22.175.108]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-43e166e3755sm19959021cf.40.2024.05.13.14.23.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 14:23:03 -0700 (PDT) Date: Mon, 13 May 2024 17:23:02 -0400 Message-ID: <32b581d2da1208a912f4ad200b08bdf1@paul-moore.com> From: Paul Moore To: Linus Torvalds Cc: selinux@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] selinux/selinux-pr-20240513 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Linus, We've got a variety of SELinux patches queued for Linux v6.10, the highlights are below: - Attempt to pre-allocate the SELinux status page so it doesn't appear to userspace that we are skipping SELinux policy sequence numbers. - Reject invalid SELinux policy bitmaps with an error at policy load time. - Consistently use the same type, u32, for ebitmap offsets. - Improve the "symhash" hash function for better distribution on common policies. - Correct a number of printk format specifiers in the ebitmap code. - Improved error checking in sel_write_load(). - Ensure we have a proper return code in the filename_trans_read_helper_compat() function. - Make better use of the current_sid() helper function. - Allow for more hash table statistics when debugging is enabled. - Migrate from printk_ratelimit() to pr_warn_ratelimited(). - Miscellaneous cleanups and tweaks to selinux_lsm_getattr(). - More consitification work in the conditional policy space. Please merge, -Paul -- The following changes since commit 4cece764965020c22cff7665b18a012006359095: Linux 6.9-rc1 (2024-03-24 14:10:05 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux.git tags/selinux-pr-20240513 for you to fetch changes up to 581646c3fb98494009671f6d347ea125bc0e663a: selinux: constify source policy in cond_policydb_dup() (2024-04-30 19:01:04 -0400) ---------------------------------------------------------------- selinux/stable-6.10 PR 20240513 ---------------------------------------------------------------- Christian Göttsche (9): selinux: reject invalid ebitmaps selinux: update numeric format specifiers for ebitmaps selinux: make more use of current_sid() selinux: dump statistics for more hash tables selinux: improve symtab string hashing selinux: use u32 as bit position type in ebitmap code selinux: pre-allocate the status page selinux: avoid printk_ratelimit() selinux: constify source policy in cond_policydb_dup() Ondrej Mosnacek (1): selinux: clarify return code in filename_trans_read_helper_compat() Paul Moore (2): selinux: cleanup selinux_lsm_getattr() selinux: improve error checking in sel_write_load() security/selinux/hooks.c | 58 ++++++++++++++--------------------- security/selinux/selinuxfs.c | 36 ++++++++++++++---------- security/selinux/ss/conditional.c | 18 +++++++----- security/selinux/ss/conditional.h | 2 +- security/selinux/ss/ebitmap.c | 50 +++++++++++++++++++++------------ security/selinux/ss/ebitmap.h | 38 ++++++++++++------------- security/selinux/ss/hashtab.c | 10 ++++--- security/selinux/ss/hashtab.h | 4 +-- security/selinux/ss/policydb.c | 24 +++++++++++----- security/selinux/ss/services.c | 3 +- security/selinux/ss/symtab.c | 20 +++++++------- security/selinux/xfrm.c | 7 ++--- 12 files changed, 145 insertions(+), 125 deletions(-) -- paul-moore.com