Restorecon fails with "error: operation not supported" on NFS

Solution Verified - Updated -

Issue

  • A systemd service is configured to call an executable binary located on an NFS mount (ExecStart=). An attempt was made to add the bin_t SELinux file context label to this binary to permit execution. However, SELinux blocks this labeling action, which prevents the service from starting successfully.

Environment

  • Red Hat Enterprise Linux 10
  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 8
  • SELinux
  • NFS

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