Bug 471147
Summary: | segfault in checkmodule while compiling a policy module | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Carl Roth <roth> | ||||||
Component: | checkpolicy | Assignee: | Miroslav Grepl <mgrepl> | ||||||
Status: | CLOSED WONTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 10 | CC: | dwalsh, jbrindle, mgrepl, rs, sdsmall | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | i386 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2009-12-11 14:48:37 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: | |||||||||
Attachments: |
|
Description
Carl Roth
2008-11-12 00:37:38 UTC
Created attachment 323280 [details]
sample policy, including gdb backtrace
I don't know if this is interesting, but I compiled the same policy with F9: checkpolicy-2.0.16-3.fc9.x86_64 selinux-policy-targeted-3.3.1-107.fc9.noarch and it compiles fine. I'm attaching a diff of the two 'tmp' intermediate files. Created attachment 323375 [details]
diff between f9 and f10 compiled policy ('tmp') files
I also did some experiments by mixing and matching the '.tmp' intermediate file with the offending command line: /usr/bin/checkmodule -M -m -o tmp/ursus-config-pyzor.mod tmp/ursus-config-pyzor.tmp * the ursus-config-pyzor.tmp file from F9 works fine with checkmodule for f9 and for f10. * the ursus-config-pyzor.tmp file from F10 crashes with checkmodule for f9 and for f10. I don't understand too much more about checkmodule itelf, other than that the backtrace indicates it's choking on the 'user_pyzor_home_t' symbol. I didn't attach the actual core file since that somewhat large. If you just remove # type user_pyzor_home_t; It works. This policy will cause the compiler to crash policy_module(test, 1.0) gen_require(` type a_t; ') type b_t alias a_t; If you require a type that has been aliased by another type. This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle. Changing version to '10'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Any progress on this? I'm seeing this on F9.. This has been reported to Upstream, but I am not sure where they are on it. Moving to rawhide. Your test case in comment 6 compiles fine with the checkmodule in F11. IIRC, this was fixed in checkpolicy 2.0.19 and libsepol 2.0.35 upstream. Ok Carl do you want this to be back ported to F10 or is fixed in F11 good enough? This message is a reminder that Fedora 10 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 10. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '10'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 10's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 10 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping I am closing it as WONTFIX as per the comment #11. |