Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1224833lqp; Fri, 22 Mar 2024 08:48:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUaDtGuI70TJ44J0Ay0WvRJbLDG4UgihJ6laSAQcxnphN2RwPUXrB9qGFNE5r269vDORngRdgMU8EFhKmHThhOwvzYutyIaHvxMFF3ztg== X-Google-Smtp-Source: AGHT+IE7nm17vWkEbNxp/lKuN4Oml3CE1tQ2S+XnVUKPVXy9ND3gUSR72yxE+pk2a5LHmtNaVYWL X-Received: by 2002:a05:6808:10d2:b0:3c1:f573:b68c with SMTP id s18-20020a05680810d200b003c1f573b68cmr129139ois.30.1711122512743; Fri, 22 Mar 2024 08:48:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711122512; cv=pass; d=google.com; s=arc-20160816; b=DC8XE0SxsNotNTVytca50zccf/mdRHqhbPVF3k4zk2K6uXo+Fd+mQ99LvfzWyyZLW4 9OyPakBQQvQYJtxC/CTy7rKa2zHhgmZvsrIq+f/GrsminxBnoZZ33JvpkJ8+tJSr6UUY N2ze2iiVq2jWr/KTBy+vY385j7GQCl3ZVCAnMY9ATE1/1E0FlKnLiyOmBj0t0A+L+q4C /44AWMQZ2m6pWLud3IKf3p0iAqeGjiZFgY2kaTLcbm2Zf2aIqPBBmsGamKPLKfKxH+4V x3OHuKXYrGoXXrk/iOpVNg7/PO1RO8FBErAulWNvml23FnR9m27fkznnN8Wa8XPRt8NZ ga0w== 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=wp6T2e1LmcDevKelJB7p69eFWVtL8AtsA5WWbok284w=; fh=1xzdCevvnfLOvZcaUAUwD/PlXBYI+9rUJSnP5t+NW80=; b=joziSkwfGhUcZ1+5unWpZkg3WJwobGuZhBOjWpzW42S2x5TAkM7x0/Ls/7fhTpb0vv 7vWr21f83koF2Eig5fOVgjffyzVA3tHSyQTlJd7caxz/Jopk7u6ZhhHCjRJHMDUXJ/Mx LbUypEonNTjg9aarDk3zg3HfAeN5AEtWl56ch9rU8uZSiFzmIa+lq0+Sr98co/6lFToO xQYMxNkAeDWv7jb4Xsag/Ysci59d3zIxz3rXV/bWiPiELNXJBGjlIJG2HbAPrqsmVHk+ MR+1tIjzwCumLUQeQGEQ2P1ILsPpGqQnx+hKXBEBQDBdc4NHq5gsbjHw76KmAVDWKQda VKvA==; 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-111719-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111719-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d13-20020ac85d8d000000b00430a5f1fbccsi2152796qtx.356.2024.03.22.08.48.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 08:48:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111719-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; 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-111719-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111719-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 749B61C228FF for ; Fri, 22 Mar 2024 15:48:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2AE9055C08; Fri, 22 Mar 2024 15:48:26 +0000 (UTC) Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (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 F0F2153811; Fri, 22 Mar 2024 15:48:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711122505; cv=none; b=mBPyuyIPvFYCdYv6iNA6bL2kUMwMFfi+O/XFFPyRz8yEh1TL6RtOR8DNFwhNRKi7xLkZlF7mCNL8lAOq4ZMMWSvj3v2+uyrEd7oSMINSPAI+DsDTvYF9abA5aSfDPb0Ca8jAkHLZAWZAMiv2JAO5hEI9o8dk0JFBWXL+FOMOxjo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711122505; c=relaxed/simple; bh=XHECZqNFfXYbkWZS+VFqR2nCwONd95UHFkfpDhF+1u0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qckDquzAbhQmX1MLywpwAnFc8+XuhAGZCHW+g1Q4u125IddKDm9zRc03gL/uYYAFry+5G0X0dCAlNsBpmhkkfhmSYupIqBR0YfbaIRTKaTZYBa5ZRB5atPQYt67D63E2MalsOQtbHSZPEL522kBsEX8/XNCldt+qPgxjF8nf4AY= 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.190 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.163.17]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4V1RWh3GpJz1xsQg; Fri, 22 Mar 2024 23:46:24 +0800 (CST) Received: from kwepemd500012.china.huawei.com (unknown [7.221.188.25]) by mail.maildlp.com (Postfix) with ESMTPS id AC31B1A0188; Fri, 22 Mar 2024 23:48:19 +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; Fri, 22 Mar 2024 23:48:19 +0800 From: Li Zetao To: , , , , CC: , , , Subject: [RFC PATCH v2 1/5] ubifs: Add ACLs config option Date: Fri, 22 Mar 2024 23:48:08 +0800 Message-ID: <20240322154812.215369-2-lizetao1@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240322154812.215369-1-lizetao1@huawei.com> References: <20240322154812.215369-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: dggems705-chm.china.huawei.com (10.3.19.182) 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 --- v1 -> v2: Put this patch first. v1: https://lore.kernel.org/all/20240319161646.2153867-6-lizetao1@huawei.com/ fs/ubifs/Kconfig | 14 ++++++++++++++ 1 file changed, 14 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 -- 2.34.1