Bug 477764
Summary: | /sbin/restorecon generate coredump when truing restore /var/run/sm-client.pid | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Artur Penttinen <artur+redhat.com> | ||||
Component: | policycoreutils | Assignee: | Daniel Walsh <dwalsh> | ||||
Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 10 | CC: | drepper, dwalsh, mgrepl | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: |
Fedora 10
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2009-06-26 19:58:42 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
Artur Penttinen
2008-12-23 14:24:13 UTC
This seems like it might be caused by a lower layer library. I have not heard of restorecon crashing for any reason. Does restorecon crash all the time or just when run within this make? yes: # sudo /sbin/restorecon /var/run/sm-client.pid [1] 21507 segmentation fault (core dumped) sudo /sbin/restorecon /var/run/sm-client.pid # What does # id -Z Show? Does this happen in permissive mode? # id -Z unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 # Does this happen if you are in permissive mode? # setenforce 0 # sudo /sbin/restorecon /var/run/sm-client.pid Could you also get the output from # sudo strace /sbin/restorecon /var/run/sm-client.pid Also please attach the contents of /etc/selinux/targeted/contexts/files/ Might be something here causing the problem. Does matchpatchcon /var/run/sm-client.pid work? Hm. After enforcing to permissive mode (though it already was), all began to work normally. Just in case I attach strace log and content of /etc/selinux/targeted/contexts/files/. # matchpathcon /var/run/sm-client.pid /var/run/sm-client.pid system_u:object_r:sendmail_var_run_t:s0 # Created attachment 328349 [details]
Strace log and content of /etc/selinux/targeted/contexts/files
So are you saying this blows up in enforcing mode and not in permissive mode? I think you have a labeling problem, I would put the machine in permissive mode and the run # fixfiles restore |