Red Hat Bugzilla – Bug 250989
semanage fcontext rejects default type of <<none>>
Last modified: 2009-01-20 17:00:25 EST
Description of problem:
The `semanage fcontext` command will not let the security administrator add
a file context type of <<none>>.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run the command semanage fcontext -a -t '<<none>>' /bindmounts/
libsepol.context_from_record: type <<none>> is not defined
libsepol.context_from_record: could not create context structure
libsemanage.validate_handler: invalid context system_u:object_r:<<none>>:s0
specified for /bindmounts/ [all files]
libsemanage.dbase_llist_iterate: could not iterate over records
/usr/sbin/semanage: Could not add file context for /bindmounts/
For it to work.
You can do this with a policy module by including a fc file. We are working on
fixing this in Rawhide FC8, When we are happy with the solution we will
consider back porting it to RHEL5.
Fixed in policycoreutils-1.33.12-14.1.el5
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.