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

sanity-selinux test_5: sec context seen from 1st mount point is not correct

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Lustre 2.14.0, Lustre 2.12.6
    • Labels:
      None
    • Severity:
      3
    • Rank (Obsolete):
      9223372036854775807

      Description

      This issue was created by maloo for S Buisson <sbuisson@ddn.com>

      This issue relates to the following test suite run: https://testing.whamcloud.com/test_sets/759a0bee-28af-4ea7-8e73-4d6253abbf7c

      test_5 failed with the following error:

      sec context seen from 1st mount point is not correct
      

      In fact, the way the test retrieves SELinux security context is broken.
      On CentOS 7, output of ls -lZ is made of 5 fields, and sec context is the 4th one, like in this example:

      -rw-r--r--. root root unconfined_u:object_r:user_tmp_t:s0 /tmp/sanity-selinux.log
      

      However, on CentOS 8, output of ls -lZ is made of 10 fields, and sec context is the 5th one:

      -rw-r--r--. 1 root root unconfined_u:object_r:nfs_t:s0 0 May 16 03:36 /mnt/lustre/df5
      

      Not only test_5 is impacted, but also test_10 and test_20a.

      VVVVVVV DO NOT REMOVE LINES BELOW, Added by Maloo for auto-association VVVVVVV
      sanity-selinux test_5 - sec context seen from 1st mount point is not correct

        Attachments

          Activity

            People

            • Assignee:
              sebastien Sebastien Buisson
              Reporter:
              maloo Maloo
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: