Receiving an "incorrect mount option" message when trying to mount an NFS filesystem with selinux context

Solution Verified - Updated -

Issue

  • My /etc/fstab file contains:
server:/share  /mountpoint  nfs     context=system_u:object_r:httpd_sys_content_t    0 0
  • I receive the following error:
mount.nfs: an incorrect mount option was specified

Environment

  • Red Hat Enterprise Linux 6.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.