From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=83.166.143.168 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795290870; b=GdQll08AX5tsyi2Hvp/nMJbxQzsHf81xsDsS3i4A+fsXpPO6Pw1+GtVSybcUn+9Nsdm3 yr3Ao9Lxea13DuyF5J1fvRfoYkWB2t9ihAokGXrz0cY4kvbtGikzlQVaQJ1NF2c83OvbO 19zIGQdjLhzmirrV1YYFRMdDM8VJALxfxG0NVx3Fh3k53R1QFBrFepOT37G9zpYDd0iSG pi1xnDRjQEXSU8ixGAqK0KQeVLN48dMyTXenNBEcZt6PrOC53r32AABsbZuFUUmvXR7jv 6dRckudV21BEPi8eJO75/OO8oF8X6X7t1qflhXVLRuWmB0PuNS4xum4XZ2BZ1zSYehQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795290870; h=DMARC-Filter:Received:DKIM-Signature:Received:From:To:Cc:Subject: Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding: X-Infomaniak-Routing; bh=Bcg6serWzzJut+m/VDVYqdkm+Bbwlucwp+T1gHr1Az4=; b=GOR6r2nNEFiSGkaYvTt8hXSi+pcOUT/YZhyciLoH5AkUWsD1kIAEIUOwFLcCHOVcomN1 omviH1b3XOuL5BAVAjzHTSZ3N5MzHLC2X7zguPrWb38bCAXhqckU24OP1jcDUaKWPGZfj 2x1+Shg31gip/sUqbpo1IKvKTLUJUzvL7j9qkB0tDZMvzKWzRhJfN2Bz6Ch9PymrFRyvI HV7dQvrNv67D6kHW1Hal37B2eFVH6l/RyVovNa7M5T48BhHNaDWiyiCgZJ0YfzzovNFRq XoSlovwHQJ8T7dKMbOT5O+ikaF8SIuw2broutyGOI269R/8WK9su+XW9ps1U0FS6oMg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=digikod.net; spf=pass smtp.mailfrom=digikod.net; dkim=pass header.d=digikod.net header.i=@digikod.net header.a=rsa-sha256 header.s=20191114 header.b=lrp1DGXF; arc=none smtp.remote-ip=83.166.143.168 Received: from smtp-8fa8.mail.infomaniak.ch (smtp-8fa8.mail.infomaniak.ch [83.166.143.168]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE8A4606A32A for ; Sat, 21 Nov 2026 19:54:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AE8A4606A32A Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=digikod.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=digikod.net header.i=@digikod.net header.a=rsa-sha256 header.s=20191114 header.b=lrp1DGXF Received: from smtp-4-0001 (smtp-4-0001.mail.infomaniak.ch [10.7.10.108]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4jX2wC2ctHzJnk; Sat, 21 Nov 2026 20:54:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digikod.net; s=20191114; t=1795290859; bh=Bcg6serWzzJut+m/VDVYqdkm+Bbwlucwp+T1gHr1Az4=; h=From:To:Cc:Subject:Date:From; b=lrp1DGXF4sMHXSB3dtPD0en1W8ZbNQqcUk0qSl+hXng2yaAiv4JfOL4HSkavI/gyp q20acMGCiabqFSv9uLS8PtZejk73WjxFCjde9H26R0qKwOKUikHKp9hQ4uoJwytvnB epYTtoDF8nBsb67W0+/F0YH2f7rWwLwn4lQC2iAU= Received: from unknown by smtp-4-0001 (Postfix) with ESMTPA id 4jX2wB2QdWzCSW; Sat, 21 Nov 2026 20:54:18 +0100 (CET) From: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= To: Linus Torvalds Cc: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , Bart Van Assche , Dwi Siswanto , =?UTF-8?q?G=C3=BCnther=20Noack?= , Serge Hallyn , Tingmao Wang , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: [GIT PULL] Landlock fixes for v7.4-rc4 Date: Sat, 21 Nov 2026 20:54:04 +0100 Message-ID: <20261121195404.2775730-1-mic@digikod.net> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Infomaniak-Routing: alpha Hi, This fixes several Landlock and LSM issues: - prevent composed rulesets from denying link and rename operations that each ruleset allows separately; - close capability-mediation gaps for low-address mappings, inheritable capabilities, the admin memory reserve, and PR_SET_SECUREBITS, so LSM capability denials apply consistently; - distinguish namespace creation from entry in denial records and expose the checked capability context to BPF tracepoint consumers, so they can interpret denials correctly. Tests and documentation are updated. This also fixes clang-format's handling of guard() and a missing landlock_add_rule(2) error description. Please pull these changes for v7.4-rc4 . These commits merge cleanly with your master branch. Kernel changes have been tested in the latest linux-next releases. Test coverage for security/landlock is 91.8% of 2894 lines according to LLVM 23, and it was 91.8% of 2864 lines before this PR. Regards, Mickaël -- The following changes since commit aebb7274476403040d582c61478df8f4a7bf9cd3: Linux 7.4-rc3 (2026-11-15 14:30:11 -0800) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/mic/linux.git tags/landlock-7.4-rc4 for you to fetch changes up to 4feb6879b9ab42cacb905f27a44160b7f1f49d85: landlock: Add missing EINVAL case in the doc for landlock_add_rule (2026-11-19 17:51:43 +0100) ---------------------------------------------------------------- Landlock fixes for v7.4-rc4 ---------------------------------------------------------------- Günther Noack (5): landlock: Fix layer composition of LANDLOCK_ACCESS_FS_REFER landlock: Add KUnit test for landlock_get_fs_access_mask() selftests/landlock: Test that layering does not break refer landlock: Simplify landlock_get_fs_access_mask() landlock: Clarify implicit handling of LANDLOCK_ACCESS_FS_REFER Mickaël Salaün (13): landlock: Factor out capability denial checks landlock: Mediate CAP_SYS_RAWIO for mappings below mmap_min_addr landlock: Mediate CAP_SETPCAP for inheritable capabilities landlock: Mediate CAP_SYS_ADMIN for the admin memory reserve selftests/landlock: Test capability checks outside the capable hook landlock: Fix capability restriction documentation capabilities: Check PR_SET_SECUREBITS with ns_capable() selftests/landlock: Test PR_SET_SECUREBITS mediation landlock: Distinguish namespace creation and entry denials landlock: Add capability objects to denial tracing selftests/landlock: Test namespace denial operations landlock: Document namespace denial operations clang-format: Fix formatting of guard() Tingmao Wang (1): landlock: Add missing EINVAL case in the doc for landlock_add_rule .clang-format | 1 - Documentation/admin-guide/LSM/landlock.rst | 21 +- Documentation/security/landlock.rst | 8 +- Documentation/trace/events-landlock.rst | 26 +- Documentation/userspace-api/landlock.rst | 11 +- include/trace/events/landlock.h | 36 ++- include/uapi/linux/landlock.h | 24 +- security/commoncap.c | 45 ++-- security/landlock/access.h | 11 +- security/landlock/audit.c | 10 +- security/landlock/cap.c | 130 ++++++++- security/landlock/domain.c | 44 +++ security/landlock/domain.h | 9 +- security/landlock/errata/abi-4.h | 21 ++ security/landlock/log.c | 6 +- security/landlock/log.h | 12 +- security/landlock/ns.c | 10 +- security/landlock/syscalls.c | 1 + security/landlock/trace.c | 12 +- tools/testing/selftests/landlock/cap_test.c | 397 ++++++++++++++++++++++++++++ tools/testing/selftests/landlock/common.h | 4 +- tools/testing/selftests/landlock/fs_test.c | 61 ++++- tools/testing/selftests/landlock/ns_test.c | 25 +- tools/testing/selftests/landlock/trace.h | 1 + 24 files changed, 815 insertions(+), 111 deletions(-)