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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content