Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7582

Enforce maximum number of ACL entries separately per access and default.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.8.0, 3.0.0-alpha1
    • namenode
    • None
    • Reviewed
    • Limit on Maximum number of ACL entries(32) will be enforced separately on access and default ACLs. So in total, max. 64 ACL entries can be present in a ACL spec.

    Description

      Current ACL limits are only on the total number of entries.

      But there can be a situation where number of default entries for a directory will be more than half of the maximum entries, i.e. > 16.

      In such case, under this parent directory only files can be created which will have ACLs inherited using parent's default entries.

      But when directories are created, total number of entries will be more than the maximum allowed, because sub-directories copies both inherited ACLs as well as default entries.
      Since currently there is no check while copying ACLs from default ACLs directory creation succeeds, but any modification (only permission on one entry also) on the same ACL will fail.

      It would be better to enforce the maximum of 32 entries separately per access and default. This would be consistent with our observations testing ACLs on other file systems, such as XFS and ext3.

      Attachments

        1. HDFS-7582-02.patch
          8 kB
          Vinayakumar B
        2. HDFS-7582-01.patch
          8 kB
          Vinayakumar B
        3. HDFS-7582-001.patch
          3 kB
          Vinayakumar B

        Activity

          People

            vinayakumarb Vinayakumar B
            vinayakumarb Vinayakumar B
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: