| Summary: | "mmap: Invalid argument" while executing `restorecon /var/crash/` with libselinux-2.5-6.el7.x86_64 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Qiao Zhao <qzhao> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED DUPLICATE | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.3 | CC: | kdump-team-bugs, lvrabec, mgrepl, mmalik, panand, plautrba, pvrabec, ruyang, ssekidde |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-09-08 06:00:24 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Qiao Zhao
2016-09-05 06:30:44 UTC
It is the restorecon command which is generating this error message. # restorecon /var/crash/ mmap: Invalid argument # rpm -qf `which restorecon` policycoreutils-2.5-8.el7.x86_64 However, version of policycoreutils seems same in RHEL-7.3-20160901.1 and RHEL-7.3-20160825.1. I did some more experiments with policycoreutils code from https://github.com/SELinuxProject/selinux.git. This error is printed when selabel_open() is called, which is part of libselinux. RHEL-7.3-20160901.1 has libselinux-2.5-6 and, RHEL-7.3-20160825.1 had libselinux-2.5-5. So, I think error was introduced in libselinux-2.5-6. Therefore, it would be good to assign this BZ to selinux team. Simplified reproducer: (1) Use libselinux-2.5-6.el7.x86_64 (2) execute `restorecon /var/crash/` You will see a message "mmap: Invalid argument". *** This bug has been marked as a duplicate of bug 1372200 *** |