Description of problem: If you try to apply attached patch against selinux-policy you will get this error message: Compiling targeted base module /usr/bin/checkmodule -M base.conf -o tmp/base.mod /usr/bin/checkmodule: loading policy configuration from base.conf policy/modules/services/xserver.te:740:ERROR 'syntax error' at token 'ntfs-3g' on line 1002631: genfscon ntfs / system_u:object_r:dosfs_t:s0 genfscon ntfs-3g / system_u:object_r:dosfs_t:s0 /usr/bin/checkmodule: error(s) encountered while parsing configuration make: *** [tmp/base.mod] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.24170 (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.24170 (%install) [rpm-build@X selinux-policy-2.4.2]$ I was told that dashes aren't allowed in identifiers → http://www.redhat.com/archives/fedora-selinux-list/2006-October/msg00117.html This limitation does not allow me to write policy for ntfs-3g Version-Release number of selected component (if applicable): checkpolicy-1.30.12-1 Steps to Reproduce: 1. Apply attached patch against SRPM selinux-policy 2. run rpmbuild -ba selinux-policy.spec
Created attachment 139902 [details] this patch exhibits limitation of SELinux policy language (?)
Patch attached - should be merged upstream soon.
Created attachment 140002 [details] Patch to allow dashes in genfscon statements Patch attached - should be merged upstream soon.
Fixed in checkpolicy-1.33.1-2
Thanks!