Bug 213339

Summary: Dashes aren't allowed in identifiers
Product: [Fedora] Fedora Reporter: Dawid Gajownik <gajownik>
Component: checkpolicyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: kmacmill, pgraner, schwandter, sdsmall
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://www.redhat.com/archives/fedora-selinux-list/2006-October/msg00117.html
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-03-19 17:03:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 211767    
Attachments:
Description Flags
this patch exhibits limitation of SELinux policy language (?)
none
Patch to allow dashes in genfscon statements none

Description Dawid Gajownik 2006-10-31 21:36:00 UTC
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

Comment 1 Dawid Gajownik 2006-10-31 21:36:00 UTC
Created attachment 139902 [details]
this patch exhibits limitation of SELinux policy language (?)

Comment 2 Karl MacMillan 2006-11-01 16:27:29 UTC
Patch attached - should be merged upstream soon.

Comment 3 Karl MacMillan 2006-11-01 16:28:46 UTC
Created attachment 140002 [details]
Patch to allow dashes in genfscon statements

Patch attached - should be merged upstream soon.

Comment 4 Daniel Walsh 2006-11-28 19:09:11 UTC
Fixed in checkpolicy-1.33.1-2

Comment 5 Dawid Gajownik 2007-03-19 17:03:43 UTC
Thanks!