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

Lustre mount throws away SELinux context options

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Lustre 2.8.0
    • Lustre 2.8.0
    • 3
    • 9223372036854775807

    Description

      Lustre mounts do not support SELinux context options to allow applying an SELinux context across the entire mount.

      Steps to Reproduce

      1. Install CentOS 6 based Lustre client with default SELinux configuration
      2. Attempt to mount Lustre volume with SELinux context

      # mount -t lustre -o context=system_u:object_r:user_home_t:s0 mds@tcp:/testfs /mnt/
      

      3. Error message is produced:

      mount.lustre: mount mds@tcp:/testfs at /mnt failed: Invalid argument
      This may have multiple causes.
      Is 'testfs' the correct filesystem name?
      Are the mount options correct?
      Check the syslog for more info.\
      

      Syslog messages:

      LNet: Added LNI 192.168.122.120@tcp [8/256/0/180]
      LNet: Accept secure, port 988
      LustreError: 152-6: Unknown option 'context="system_u:object_r:user_home_t:s0"', won't mount.
      Lustre: Unmounted testfs-client
      LustreError: 1265:0:(obd_mount.c:1342:lustre_fill_super()) Unable to mount  (-22)
      

      Attachments

        Issue Links

          Activity

            [LU-6950] Lustre mount throws away SELinux context options
            mdiep Minh Diep made changes -
            Link Original: This issue is related to LDEV-301 [ LDEV-301 ]
            mdiep Minh Diep made changes -
            Link Original: This issue is related to JFC-17 [ JFC-17 ]
            mdiep Minh Diep made changes -
            Link New: This issue is related to JFC-20 [ JFC-20 ]
            mdiep Minh Diep made changes -
            Link New: This issue is related to LDEV-368 [ LDEV-368 ]
            mdiep Minh Diep made changes -
            Link Original: This issue is related to LDEV-367 [ LDEV-367 ]
            jgmitter Joseph Gmitter (Inactive) made changes -
            Link New: This issue is related to LDEV-37 [ LDEV-37 ]
            jgmitter Joseph Gmitter (Inactive) made changes -
            Link New: This issue is related to LDEV-301 [ LDEV-301 ]
            mdiep Minh Diep made changes -
            Link Original: This issue is related to LDEV-341 [ LDEV-341 ]
            mdiep Minh Diep made changes -
            Link New: This issue is related to LDEV-341 [ LDEV-341 ]
            pjones Peter Jones made changes -
            Link Original: This issue is related to LDEV-370 [ LDEV-370 ]

            People

              dmiter Dmitry Eremin (Inactive)
              awellington Andrew Wellington
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: