跳转到主内容

文件可以有 NFSv4_acl 继承标志吗?

Views:
2
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

适用场景

  • ONTAP 9
  • NFS
  • NFSv4_acl

问题解答

根据 RFC 8881(第 6.4.3.1 节),其中提到在某些情况下,目录内的文件可以从父目录 ACL 继承 ACE,但须设置标志 ACE4_FILE_INHERIT_FLAG。

“6.4.3.1.继承的 ACL
如果正在创建的对象不是目录,则继承的 ACL 不应从父目录 ACL 继承 ACE,除非设置了 ACE4_FILE_INHERIT_FLAG。
如果正在创建的对象是目录,则继承的 ACL 应从父目录继承所有可继承的 ACE,即设置了 ACE4_FILE_INHERIT_ACE 或 ACE4_DIRECTORY_INHERIT_ACE 标志的 ACE。如果可继承的 ACE 设置了 ACE4_FILE_INHERIT_ACE,但 ACE4_DIRECTORY_INHERIT_ACE 为清除状态,则新创建目录上的继承 ACE 必须设置 ACE4_INHERIT_ONLY_ACE 标志,以防止目录受到非目录 ACE 的影响。

追加信息

其他信息文本

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.