Why system throws "/usr/sbin/semanage: Type <<none>> is invalid, must be a file or device type" message ?

Solution Unverified - Updated -

Issue

  • When run the following command:
#semanage fcontext -a -t "<<none>>" "/var/www/lost\+found/.*"

This returns the following message:

/usr/sbin/semanage: Type <<none>> is invalid, must be a file or device type
  • When donwgrade the packages

policycoreutils-2.0.83-19.30.el6.x86_64
policycoreutils-python-2.0.83-19.30.el6.x86_64

to

policycoreutils-2.0.83-19.24.el6.x86_64
policycoreutils-python-2.0.83-19.24.el6.x86_64

The same command executes without problems.

Environment

  • Red Hat Enterprise Linux 6.4
  • Policycoreutils-*

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