[LU-6950] Lustre mount throws away SELinux context options Created: 04/Aug/15 Updated: 28/Mar/17 Resolved: 24/Sep/15 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.8.0 |
| Fix Version/s: | Lustre 2.8.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Andrew Wellington | Assignee: | Dmitry Eremin (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | patch | ||
| Issue Links: |
|
||||||||||||
| Severity: | 3 | ||||||||||||
| Rank (Obsolete): | 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 # 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)
|
| Comments |
| Comment by Gerrit Updater [ 04/Aug/15 ] |
|
Andrew Wellington (andrew.wellington@anu.edu.au) uploaded a new patch: http://review.whamcloud.com/15840 |
| Comment by Gerrit Updater [ 24/Sep/15 ] |
|
Oleg Drokin (oleg.drokin@intel.com) merged in patch http://review.whamcloud.com/15840/ |
| Comment by Joseph Gmitter (Inactive) [ 24/Sep/15 ] |
|
Landed for 2.8 |