Bug 213339
| Summary: | Dashes aren't allowed in identifiers | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Dawid Gajownik <gajownik> | ||||||
| Component: | checkpolicy | Assignee: | Daniel Walsh <dwalsh> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Ben Levenson <benl> | ||||||
| Severity: | medium | Docs Contact: | |||||||
| Priority: | medium | ||||||||
| Version: | 6 | CC: | 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: |
|
||||||||
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! |
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