Bug 117374
| Summary: | rpm --recontext -q rpm segfaults as user_r:user_t | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Paul Nasrat <nobody+pnasrat> | ||||
| Component: | rpm | Assignee: | Jeff Johnson <jbj> | ||||
| Status: | CLOSED RAWHIDE | QA Contact: | Mike McLean <mikem> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | rawhide | ||||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2004-04-07 23:23:23 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: | 114961 | ||||||
| Attachments: |
|
||||||
Created attachment 98235 [details]
Brief analysis of core
If you need any more analysis yell
Fixed in rpm-4.3.1-0.2 when built. |
Description of problem: rpm --recontext -q rpm causes segmentation fault whilst running in enforcing mode Version-Release number of selected component (if applicable): rpm-4.3-0.16 How reproducible: always Steps to Reproduce: 1. setenforce 1 2. login as a user who is user_r:user_t 3. rpm --recontext -q rpm Actual results: D: opening db index /var/lib/rpm/Packages rdonly mode=0x0 D: locked db index /var/lib/rpm/Packages D: opening db index /var/lib/rpm/Name rdonly mode=0x0 D: read h# 1842 Header SHA1 digest: OK (df106e1c2f4cc29765024189d784dbe69bd6f670) /etc/security/selinux/src/policy/file_contexts/file_contexts: Permission denied Segmentation fault Expected results: No segmentation fault. Additional info: Drops core - back trace to be attached. avc error: avc: denied { search } for pid 2655 exe=/usr/lib/rpm/rpmq name=selinux dev=hda5 ino=1493914 scontext=victim:user_r:user_t tcontext=system_u:object_r:policy_config_t tclass=dir inode corresponds to /etc/security/selinux