Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1075421lqp; Fri, 22 Mar 2024 05:07:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUCxHHEPJpc6t7oCog2D2IBgXYrkf8c1Wf73eKxuRWYJTmgMGG6q5vnb/K8saZscyCOxReml7iWYIRAhWEY01DqIR7B95UJKzeaH+UqmQ== X-Google-Smtp-Source: AGHT+IG3rY1HndiH1W7KT1k7ENUpIUzBbqMeeaD5jfhs/ptYNObaj/dr/7lPetmPKWB3wJjGvWZw X-Received: by 2002:ac8:47d8:0:b0:430:b930:26a0 with SMTP id d24-20020ac847d8000000b00430b93026a0mr2644474qtr.15.1711109239639; Fri, 22 Mar 2024 05:07:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711109239; cv=pass; d=google.com; s=arc-20160816; b=upWwFt1BEvMJ7Ag6Xg7PJmWzxXcWUwNorqc7SY578+eSjgRlpihU0jw0wlzp70jFiC WkfhIcY6avdiZNVi7cWIdAOuhbNawvZtAc8V8BV+dEus4I8CVPAfWFJglOZOkr9EJ7+8 oU6ygobk0Yi34OkBNXCuEZCNPUIjJ2gtbxAdKWFOQy7Q+U/MSn0P0qKnFxgEtMaG4wM3 DhvXWJGLhA/BZHY9xqLso84dwU3pE7d1THXggXdoJ1Iq2+JNNyfGB3QIttwqkqSWApgG skh9TL8U30cdPEM5/82UY+CefVCak3+odRyOYiZAH3RWJd91FoGQgj3JFJW1H4VJL+wl BXTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:date:message-id:from :references:cc:to:subject; bh=/RgKCSdceJoniN5qPNkd2NUjFTi3oXtZvThHfUPhJTU=; fh=3VnijUEVwq/R9HiG3BbZg/oAllcuITTU9z7swzw7e3Q=; b=v4bYc8PJVEKYOhSnKZdW3DjdzWAqNcALityRb4vY2uKv6mCu2NUrhyNKr38NHMbpc8 RqcFkGFWKLwsw+Ai2Qd6EpA31m6VQ4UG+VrkIClJ99PIDQMdZHKxtXK0j2Z3KuRkXALb aOPn4H003QYIyJiz3f0iGJtFp6XM3ON1ATbeGg9LcrS2RaZqvq5880wYZlNWEb+aSgGm jwU9E63BMHz1ZofUJpj0T24AgYkMX2RZ5nqFHFayz2v808q2utrY//6SygnMtwFLEm5l bHTgvjDGh6e6IwL3GgslnhMlbiyHfGfeSYfkKg24YJ1YTEX55PDjFVyGycOUBndXHNk6 6zPw==; 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-111403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111403-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q17-20020a05622a031100b0042f21037f1esi1769822qtw.658.2024.03.22.05.07.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 05:07:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; 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-111403-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111403-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 5F38F1C22729 for ; Fri, 22 Mar 2024 12:07:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 055084087B; Fri, 22 Mar 2024 12:07:10 +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 5949D405E5 for ; Fri, 22 Mar 2024 12:07:07 +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=1711109229; cv=none; b=nkKg+AYmtoPd8z46aotzzY59xz5Y9IigCJKTaTg+7Edu/sYHQjQRlmCRFE6EOHASTWJ+Mqbl/eIecGmEnBXl2AQUxsJDEMGVBYMglaR4NS4KiVI9FjypxEFeCmK6NR4PkXF2VLapduGoCa5DXag/N+A58mjX0wTuXr3jgsRlnOQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711109229; c=relaxed/simple; bh=kufeTNTTFGWRuFYb0FBECu4GuGhaE+m00A8aK6r/Qio=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=u52j3UWqcwNpd7QNLSl8XcGLKzRl/rErOcWaMdS4xS9oPKciUKs9By0HumVY0/8zbE1bDII0fO7qgdfFPjFG5ceiHtM4Zo7xQ8TYHnGVHRBmrHatD+rXjaXZyxEFdF1RqzDKjGsEO31LoepR8fMZQI7GhQU3UGxGRGVbukyQ5bo= 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 4V1LcP36Jyz1xsN1; Fri, 22 Mar 2024 20:05:09 +0800 (CST) Received: from kwepemm600013.china.huawei.com (unknown [7.193.23.68]) by mail.maildlp.com (Postfix) with ESMTPS id 821E71A0172; Fri, 22 Mar 2024 20:07:04 +0800 (CST) Received: from [10.174.178.46] (10.174.178.46) by kwepemm600013.china.huawei.com (7.193.23.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 22 Mar 2024 20:07:03 +0800 Subject: Re: [RFC PATCH 2/5] ubifs: Initialize or update ACLs for inode To: Li Zetao , , , CC: , References: <20240319161646.2153867-1-lizetao1@huawei.com> <20240319161646.2153867-3-lizetao1@huawei.com> <2991c168-723d-48ef-8420-61e22a897239@huawei.com> <661736fb-bb3c-3519-1f4b-44dff285ea0b@huawei.com> From: Zhihao Cheng Message-ID: <10859a10-5c31-a5ec-02f5-47216132cf01@huawei.com> Date: Fri, 22 Mar 2024 20:07:02 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <661736fb-bb3c-3519-1f4b-44dff285ea0b@huawei.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600013.china.huawei.com (7.193.23.68) 在 2024/3/22 19:57, Li Zetao 写道: > Hi, > > On 2024/3/21 11:47, Zhihao Cheng wrote: >> 在 2024/3/20 0:16, Li Zetao 写道: >>> There are two scenarios where ACL needs to be updated, the first one >>> is when creating the inode, and the second one is in the chmod process. >>> When creating directories/files/device node/tmpfile, ACLs needs to be >>> initialized, but symlink do not.Why not support symlink? It looks >>> like many filesystems(eg. ext4, f2fs, >> btrfs) support it, except xfs. > Thanks for the reviews, but this is inconsistent with my understanding. > I think most file systems in Linux do not support it, because most file > systems do not register the get/set functions of ACLs for symlink > operations. And the posix_acl_create() will determine that it is a > symlink type inode, and then skip the creation process. But except for > bcachefs, it may be to solve the problem of certain scenarios, so it > would be nice if anyone could explain it to us. You are right, only bcachefs support acl for symlink.