5.8.5. Making Context Mounts Persistent
To make context mounts persistent across remounting and reboots, add entries for the file systems in
/etc/fstab
or an automounter map, and use the desired context as a mount option. The following example adds an entry to /etc/fstab
for an NFS context mount:
server:/export /local/mount/ nfs context="system_u:object_r:httpd_sys_content_t:s0" 0 0