Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-18088

sanity-sec test_51: Error: 'chown f51.sanity-sec' (was LU-16915)

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.16.0
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      vfs_getxattr() is not suitable for osd. To get security xattr it goes
      via:

          vfs_getxattr
            xattr_getsecurity
              security_inode_getsecurity
                cap_inode_getsecurity
                  dentry = d_find_any_alias(inode)
                    if (!dentry)
                      return -EINVAL;
      

      and returns -EINVAL because osd object inodes have empty alias list.

      So that on RHEL9 the following sequence of commands

      touch /mnt/lustre/file
      setcap CAP_CHOWN=ep /mnt/lustre/file
      getfattr -d -n security.capability /mnt/lustre/file
      

      fails with:

      /mnt/lustre/file: security.capability: Invalid argument
      

      Should be fixed by patch https://review.whamcloud.com/54072 "LU-17546 osd: use __vfs_removexattr".
      However, there are still failures being hit with el9.2 and el9.3 servers during "full" test sessions with the latest master, so I don't think this is totally fixed.

      This is because LU-17546 does not touch ll_vfs_getxattr, only ll_vfs_setxattr and ll_vfs_removexattr.

      Attachments

        Issue Links

          Activity

            [LU-18088] sanity-sec test_51: Error: 'chown f51.sanity-sec' (was LU-16915)
            pjones Peter Jones added a comment -

            Merged for 2.16

            pjones Peter Jones added a comment - Merged for 2.16

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/55917/
            Subject: LU-18088 osd: use __vfs_getxattr
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 215f1905cbaa0fadd6dee682c1f9c3782288c08c

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/c/fs/lustre-release/+/55917/ Subject: LU-18088 osd: use __vfs_getxattr Project: fs/lustre-release Branch: master Current Patch Set: Commit: 215f1905cbaa0fadd6dee682c1f9c3782288c08c

            "Vladimir Saveliev <vladimir.saveliev@hpe.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/55917
            Subject: LU-18088 osd: use __vfs_getxattr
            Project: fs/lustre-release
            Branch: master
            Current Patch Set: 1
            Commit: 18181837935fe0256edf12217df422aae75a7396

            gerrit Gerrit Updater added a comment - "Vladimir Saveliev <vladimir.saveliev@hpe.com>" uploaded a new patch: https://review.whamcloud.com/c/fs/lustre-release/+/55917 Subject: LU-18088 osd: use __vfs_getxattr Project: fs/lustre-release Branch: master Current Patch Set: 1 Commit: 18181837935fe0256edf12217df422aae75a7396

            People

              vsaveliev Vladimir Saveliev
              vsaveliev Vladimir Saveliev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: