Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (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 C7F1980632 for ; Mon, 13 May 2024 21:23:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715635387; cv=none; b=t7RW6FiYSQylnNJCiUxJXOaeV2f3OomFcETnFS9j+f8SekR2rKRlXR1KidSmO7VqVabbQp3ov3+hfbzbsccRN1q6TAcvQ8CWLa4QImdLk9Efu/k2Z6tm3mmGv0+IgaWmHxAofR143aj6fhIJetI4S39i1nJw/nQokGJcHQJ6ISs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715635387; c=relaxed/simple; bh=vLna6LECv+0HMYVMV351U1LfIFCPTAckesZrx9GAj1w=; h=Date:Message-ID:From:To:Cc:Subject; b=Ipe2gb8Q7hwa1SCfLOjytyyzKWq8ZEE9Magot/HKDWVGTEdVNm4xeVZZ7lUrbDcWlnT42cXKiDBXTqHgLNzTaCWHBoMqrLCBdzfLxMhQFcizwvJzDazV4GugySbDIDU3znfL8wK8Vqqu8aCRIQE1jKYfpbDiY9R560e9o5wBzFM= 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.175 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 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: by mail-qt1-f175.google.com with SMTP id d75a77b69052e-43d2b4d4d3eso26188481cf.2 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=jdO/8FSnQdQXfaFo5ceVolQUhD2L5egfM6L/rruzryiX4Hsf8hRv/tvKGwg1+Wpc9o adVbN4nEDby8jPOsBYRCySi70+1RC0yTFedDEnR9LdD1lQ1gIeRgdnv9TDyxDBYWC18M PY+TrrDpeZo1yokCHTNCf0Nh7BYRm2Kd/g0JPQPOzUicpT3SH/BkBFktsF9WeuzHjmeH ijjZErEQigg+wOvO8XEXXu+G34qNVngZPnJLzTz5Y/XZxpzKeNvSMfE8sR4fh2vof6h8 QAGUXqfijoE5FBau8OjoShfSTjr2jLvwHNCRcOI/dnwB/Saam/8JEaFkCAzhM2ezyOh6 XPkA== X-Forwarded-Encrypted: i=1; AJvYcCVOEeFG/8/kNkNNDqjwvBkq+Gk7UBpNtKYGW2wj4HLcgH/nkYpZFLAViV+zMSUdyhIkN+nTNKqVK10Hjhj5Fqm9fwWBFeeCNeAf03tuX/h4JfkzLDkB X-Gm-Message-State: AOJu0Yx5AKdzKFfhl496HWMyO0D7Gwf/FqpMIjST2B2CpsDgdsPyQDPM 2Zb13W0opy8zHF0sYDV0LQFBQVvnCAqMZAd3FfwbihMOOxvKs00L3Jp8MovMQmv9YLkP1oxViFc = X-Google-Smtp-Source: AGHT+IGTl7fHLmqwsnzbbNq35xBGLNS++kzizFC7K2TTwi/qzO/1S4yJ8nsIIASTA+0mcFQVGJ6wYA== 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-security-module@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