Bug 465790
| Summary: | SELinux is preventing restorecon (restorecon_t) "read write" to socket (rpm_t). | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | James B. Byrne <byrnejb> |
| Component: | rpm | Assignee: | Panu Matilainen <pmatilai> |
| Status: | CLOSED DUPLICATE | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5.2 | CC: | ffesti |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | ia64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2009-09-07 12:33:58 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: | |||
|
Description
James B. Byrne
2008-10-06 13:05:01 UTC
I fail to see why this is an rpm problem. Next try: selinux-policy. Well it is actually a leaked file descriptor in either yum or rpm. restorecon does not look at /var/lib/rpm/__db.000 or the tcp_socket. All file descriptors in yum/rpm should be closed on exec, to prevent leaks of file descriptors. Since one of the links is /var/lib/yum/transaction-done.2008-10-04.19:38.55 I will blame it on yum for now. fcntl(fd, F_SETFD, FD_CLOEXEC) or similar for python. Are you saying all the filedescriptors should be closed when the selinux scriptlet is exec'd or am I misreading you here. Sorry for the confusion. It is rpm's responsibility to set fcntl(fd, F_SETFD, FD_CLOEXEC) for all file descriptors before calling the scriptlets. This is done but not at the right place. *** This bug has been marked as a duplicate of bug 222822 *** |