Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp990094lqt; Tue, 19 Mar 2024 09:31:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXr+6XBjWsGE1VtvcrXiOjZk/X0OxE3EjByVb12Vdzyfaj3+8/eWAjmWRvbvbv/AQs+p6iVU8FOTizIaPvIjLSOLzN52zZWehENfmSTlQ== X-Google-Smtp-Source: AGHT+IHIU7VHoaTH2HWEfwWVPsTwUnm2SzyvJ62L/9KI3skxu384rwLRZQk22tsYmUkJ1Ki0B/zl X-Received: by 2002:a17:90a:fd95:b0:29e:e0a:e8c8 with SMTP id cx21-20020a17090afd9500b0029e0e0ae8c8mr7970642pjb.5.1710865910142; Tue, 19 Mar 2024 09:31:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710865910; cv=pass; d=google.com; s=arc-20160816; b=UxfDnWcjtWBCryGsidOMPv0/2Itq4VIECujDVzmjxAkqkhgyf3vxLmOIirQeyPchDq 70k/BRDFpvY5rin/ACiovSxmEAo2BeptBWcH+fNcVOtvb+ld+Ezp5LlMXelp8UKUIS1j 8nq4IO11TGpu4ruwX6nvqlXy6/rCJr8L3XcWB5iPfdCLL0kkr9cpd0y+qhQkG8rQm8+O EZlcHxVhcVYHrQe7Y5vj8185gprLHaPKXSbQ+1/9iAB8jlCwvwzfWHPC3cEgk7GY2613 YptjPVKinG8Myz1i+NPALup/VzDQ4OnIPl6TU7o6mku8Yg4+TQUjYGZ4synHNqgsC9ns 9pHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=a5ZV04B3087nTBI9YjrbqvxdFGEmZHzmTErkjqlhRds=; fh=k/ntoYyfhVXlJ6dO7vhvqOSVlhGJ2dvIyOJFv53VJIU=; b=UxwAdD9XljLN/TlXF6gkJK1Xww4T7t9V+LtRyID7vv+0Ug0U5kCJ3EYCOzOuEps3k4 oB0NH5n0xm/z11BCLh0KkQ1ZiBGUR+GD9TAdkNCXtoIOjGmXg/VKozPOhrXXifQ+YETH V7GCVRZDr4aQG0zNGJTPqVnC4VtyNvmOv0tUXpteiNbeur0apKYfV/bqtbdcmxBEqafH jkWJV733f3D7kZyYnFqKKXrurX6ppIjXGO+G7663UmWl93lgOdV7O/j2Ge4hmV6cw/EM oXPvIV6nxFmDNs/0Rh7YfZlNupttKXFklM73f/FlYAtoyOaXKO8dGkN+9isoaE7C2ITi OlRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-107823-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107823-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id t18-20020a17090aba9200b0029fbe952f32si3330056pjr.22.2024.03.19.09.31.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 09:31:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107823-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-107823-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107823-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E786EB224E6 for ; Tue, 19 Mar 2024 16:24:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B56983CCC; Tue, 19 Mar 2024 16:17:02 +0000 (UTC) Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52CAA83A12 for ; Tue, 19 Mar 2024 16:16:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.35 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710865022; cv=none; b=ecTlcKbVafLpwNHcahkKCENAQmjSt7SCjb2AnsHl1jAGwzIwtfqo3bQ39dTEQ9vjh7DZoDqG1GgLk3VYupNBdjLf3ciEILmJnPI4z+6Se2/SoO4lCItPQ6aKiAw3saU0TOFjGE1OCii01eSupyLj3/IbcStna98Lgq9KmPSD/qg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710865022; c=relaxed/simple; bh=kHPe25315jm6MEoKSd8sEDMfbyuoVewOhJ62IUt1SqE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ENvckGz0wnA0Tu8WzRD2k0x1U4ROiVOATRYuvVd8PiLbqdJqcWQuOzLCYxu7YAsQRSubt0e1kn8nWRy1wzM2a3v5yjWb7roBZXAYxCkGV2tiGMOWW6dHRAGjPALetjaeznfpKJZ2LVxcGbxArJRvVEjirms7mXddNxszjw81i4c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.35 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.234]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4TzcHM57mDz1R7QS; Wed, 20 Mar 2024 00:14:23 +0800 (CST) Received: from kwepemd500012.china.huawei.com (unknown [7.221.188.25]) by mail.maildlp.com (Postfix) with ESMTPS id C42E71400CA; Wed, 20 Mar 2024 00:16:56 +0800 (CST) Received: from huawei.com (10.90.53.73) by kwepemd500012.china.huawei.com (7.221.188.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.28; Wed, 20 Mar 2024 00:16:56 +0800 From: Li Zetao To: , CC: , , Subject: [RFC PATCH 5/5] ubifs: Add ACLs config option Date: Wed, 20 Mar 2024 00:16:46 +0800 Message-ID: <20240319161646.2153867-6-lizetao1@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240319161646.2153867-1-lizetao1@huawei.com> References: <20240319161646.2153867-1-lizetao1@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemd500012.china.huawei.com (7.221.188.25) Add CONFIG_UBIFS_FS_POSIX_ACL to select ACL for UBIFS, but it should be noted that this config option depends on UBIFS_FS_XATTR. Signed-off-by: Li Zetao --- fs/ubifs/Kconfig | 14 ++++++++++++++ fs/ubifs/Makefile | 1 + 2 files changed, 15 insertions(+) diff --git a/fs/ubifs/Kconfig b/fs/ubifs/Kconfig index 45d3d207fb99..9ac5ddd5ded3 100644 --- a/fs/ubifs/Kconfig +++ b/fs/ubifs/Kconfig @@ -98,4 +98,18 @@ config UBIFS_FS_AUTHENTICATION sha256, these are not selected automatically since there are many different options. +config UBIFS_FS_POSIX_ACL + bool "UBIFS POSIX Access Control Lists" + depends on UBIFS_FS_XATTR + select FS_POSIX_ACL + default y + help + Posix Access Control Lists (ACLs) support permissions for users and + groups beyond the owner/group/world scheme. + + To learn more about Access Control Lists, visit the Posix ACLs for + Linux website . + + If you don't know what Access Control Lists are, say N + endif # UBIFS_FS diff --git a/fs/ubifs/Makefile b/fs/ubifs/Makefile index 314c80b24a76..1e0733a647d5 100644 --- a/fs/ubifs/Makefile +++ b/fs/ubifs/Makefile @@ -9,3 +9,4 @@ ubifs-y += misc.o sysfs.o ubifs-$(CONFIG_FS_ENCRYPTION) += crypto.o ubifs-$(CONFIG_UBIFS_FS_XATTR) += xattr.o ubifs-$(CONFIG_UBIFS_FS_AUTHENTICATION) += auth.o +ubifs-$(CONFIG_UBIFS_FS_POSIX_ACL) += acl.o \ No newline at end of file -- 2.34.1