From patchwork Thu Jan 8 18:51:29 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1355 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767898383; bh=o15fur3LslkE1xCwaO7U+x7AVxSTSSvrLzAM7ChSf6c=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=bzv0QgefTkflz76D4c//WPUYL3j908bpwJ5anMbI8iCn7+zzsszTm7amB8Z417eiG QFPnFij/+Td6Hbm8gjEwOV9U1QcuSuJ5huBAlRIwa3zttMsb+SEmvVktJh1KvaifzF j6+Wc4ENI65CRLOnYE0RHKOaTpehOqMbl2rBIczLK8Y4xp7ELmyuQjjQRqr0zl1Jas zzhpc/UdqsaJNBbHtWLyFGrwKMu7TvWc5XFQYJaSszXUCbl/1+gPYyhTCBkhCzr7cR VIHlS206FDbn8bnnf27vAIPyCXuNKzooqW3SmODsphBMWLdEqWh+83xzIkn8KPNPpG EX9kzXahJmR9g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 6749169101 for ; Thu, 8 Jan 2026 11:53:03 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id dk-fbJxZp36Q for ; Thu, 8 Jan 2026 11:53:03 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767898383; bh=o15fur3LslkE1xCwaO7U+x7AVxSTSSvrLzAM7ChSf6c=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=bzv0QgefTkflz76D4c//WPUYL3j908bpwJ5anMbI8iCn7+zzsszTm7amB8Z417eiG QFPnFij/+Td6Hbm8gjEwOV9U1QcuSuJ5huBAlRIwa3zttMsb+SEmvVktJh1KvaifzF j6+Wc4ENI65CRLOnYE0RHKOaTpehOqMbl2rBIczLK8Y4xp7ELmyuQjjQRqr0zl1Jas zzhpc/UdqsaJNBbHtWLyFGrwKMu7TvWc5XFQYJaSszXUCbl/1+gPYyhTCBkhCzr7cR VIHlS206FDbn8bnnf27vAIPyCXuNKzooqW3SmODsphBMWLdEqWh+83xzIkn8KPNPpG EX9kzXahJmR9g== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 55830691C8 for ; Thu, 8 Jan 2026 11:53:03 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767898381; bh=hkHdx3ZE3WB7211WLkBvmPLaAZGveYEAQq6CL2Zjh6A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vikCQ7XYcO/Ws7JWS8gpf/jCD3F98jZwlrUS5f/xLDYY3icS+6+N+alwGJwJhC2HX d8vjf6t5VrMAqFHMc21e21fp+xYr9wF/70wecc/P93qTDW0YdiCHXHNTzilqKqPg5e h/rirbLKvLYrkRw6F84fcQUgvY01F9S7XcA/SWaWGTnj+vJwmpS4FbaHUysYiOIYIA duIBaTpfZPxIHr4BIbW8GkJAnLOc2YbivitwyU8l9iSqyF6izwiWNyTpFpscJUNXfW TNmpIqoOzFZVB9j5tpwCjYVZr5sagv+SddZ6XEJvKTfSoZ3LHT7HedJrQe+F9mlXQq IS47C7Sa7kgTQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B3554691C4; Thu, 8 Jan 2026 11:53:01 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id D-9gIWSyFfHi; Thu, 8 Jan 2026 11:53:01 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767898377; bh=9GgJI/ch2cMQdDyiWBQOfe/xSB2JXo3EnEv/8wuBfrg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hA3UfiXrt1b0udIEG5BX4SaO1Wgg5UerS/zX4gZdqiTqBxXGdQMOdwoB9ry7SUi20 ZoyQ5DOk7GxXEWD8u4aQJwCt3eKG8Xck2UC57HD1skkIgO6x8l2p2/dDGyAylb7c+x 89+X5crV8GjJAJ8tBs/EKiEteDbSVkaLrGdeIpX+7o6Kz/9nDTmnrKJXrLnY/LzTlA 8Q6KmUigQl69Rs2yn2V/VxtHg82wsT77h3T7Gff5RfLjF6/jUvdHInnT0p+3+EdSer AC/uIoctVh0dWqWEQmGlTc9xtl9ImcXSjQfJ1ZIKFEmRQPg5ArbivaXsAyAEW3s9nM MCb5z3BOGd8Ug== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 58F1969057; Thu, 8 Jan 2026 11:52:57 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Thu, 8 Jan 2026 11:51:29 -0700 Message-ID: <20260108185149.1995917-15-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260108185149.1995917-1-sjg@u-boot.org> References: <20260108185149.1995917-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: QPGAIZEOVZT7STKSQZ3IQVDIFXCLQ3FY X-Message-ID-Hash: QPGAIZEOVZT7STKSQZ3IQVDIFXCLQ3FY X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 14/21] ext4l: Add a CONFIG_EXT4_FS_POSIX_ACL option List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass Add Kconfig option to make POSIX ACL support optional. The acl.c and acl.h files already have proper #ifdef CONFIG_EXT4_FS_POSIX_ACL guards with stub functions when disabled. ACLs require extended attributes, so this option depends on EXT4_XATTR. It is unlikely to be useful in U-Boot but is included for completeness. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- fs/ext4l/Kconfig | 11 +++++++++++ fs/ext4l/Makefile | 1 + 2 files changed, 12 insertions(+) diff --git a/fs/ext4l/Kconfig b/fs/ext4l/Kconfig index 22b290778b7..1dce08d9474 100644 --- a/fs/ext4l/Kconfig +++ b/fs/ext4l/Kconfig @@ -142,3 +142,14 @@ config EXT4_FAST_COMMIT_REPLAY created with -O ^fast_commit). If unsure, say Y. + +config EXT4_FS_POSIX_ACL + bool "Enable ext4 POSIX Access Control Lists" + depends on FS_EXT4L && EXT4_XATTR + help + Enable POSIX Access Control Lists (ACLs) support for ext4 + filesystems. ACLs provide more fine-grained access control + than the standard Unix permission model. + + ACLs require extended attributes support (EXT4_XATTR). + If unsure, say N. diff --git a/fs/ext4l/Makefile b/fs/ext4l/Makefile index 85ddaaa104e..fd86ce56d2e 100644 --- a/fs/ext4l/Makefile +++ b/fs/ext4l/Makefile @@ -19,3 +19,4 @@ obj-$(CONFIG_EXT4_XATTR) += xattr.o xattr_hurd.o xattr_trusted.o \ xattr_user.o obj-$(CONFIG_EXT4_INLINE_DATA) += inline.o obj-$(CONFIG_EXT4_INDIRECT) += indirect.o +obj-$(CONFIG_EXT4_FS_POSIX_ACL) += acl.o