Fixed
Created: Mar 25, 2014
Updated: Feb 11, 2019
Resolved Date: Apr 11, 2014
Found In Version: 6.0
Fix Version: 6.0.0.4
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace
I failed to use the command mount with option -o context to override the default context of mount.
This blocked one of my training lab.
Launch two WRL CGL targets. One target is NFS server, another is NFS client.
In the NFS server (10.10.0.8/24), do
mkdir /sharedNFS
echo 'I am a root' > /sharedNFS/foo
echo '/sharedFs 10.10.0.2(rw,no_subtree_check)' > /etc/exports
exportfs -rv
In the NFS client (10.10.0.2/24), do
mkdir /mnt/sharedNFS
mount 10.10.0.8:/sharedFs /mnt/sharedFs -o context="system_u:object_r:user_home_t:s0"
ls -Z /mnt/sharedFs/
system_u:object_r:nfs_t:s0 foo ---> still use the default context.