Bug 720939
Summary: | Various AVC denied for initrc_t:unix_stream_socket { read write } | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Robert Scheck <redhat-bugzilla> | ||||
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | ||||
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 6.1 | CC: | dwalsh, mmalik, robert.scheck | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | selinux-policy-3.7.19-105.el6 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 720949 (view as bug list) | Environment: | |||||
Last Closed: | 2011-12-06 10:09:20 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: | 720949 | ||||||
Attachments: |
|
Description
Robert Scheck
2011-07-13 10:01:59 UTC
These are leak file descriptors. Also we have drbd policy in Fedora and looks like we also need a policy for heartbeat. Is heartbeat leaking or is it the cron job? I would assume this is heartbeat, because I think you would have gotten lots of reports if either the crond or e.g. logrotate/prelink/webalizer causes the issue. I've cross-filed this issue as Service Request 506720. (In reply to comment #5) > I've cross-filed this issue as Service Request 506720. Ok. I will backport drbd policy from Fedora. Fixed in selinux-policy-3.7.19-105.el6 Miroslav? May you let me know what the source code fix for this issue is? Your colleagues keep asking for a sosreport which doesn't really make sense for them, I think. I'm also wondering why you backported the drbd policy from Fedora, because drbd doesn't start/stop these services, but heartbeat does. Shouldn't there be simply a "dontaudit" for the services with leaked file descriptors? They needs to close file descriptors on exec. fcntl(fd, F_SETFD, FD_CLOEXEC) Yes, I added drbd policy because the drbd daemon was running as initrc_t domain. This means a daemon is not confined by SELinux. And we have this policy in Fedora. A new hearbeat policy needs to be created. Robert, could add your output of # ps -efZ |grep heartbeat # ps -efZ |grep heartbeat unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 root 3209 3177 0 15:43 pts/0 00:00:00 grep heartbeat unconfined_u:system_r:initrc_t:s0 root 7052 1 0 Aug05 ? 00:02:23 heartbeat: master control process unconfined_u:system_r:initrc_t:s0 root 7055 7052 0 Aug05 ? 00:00:05 heartbeat: FIFO reader unconfined_u:system_r:initrc_t:s0 root 7056 7052 0 Aug05 ? 00:00:08 heartbeat: write: ucast em2 unconfined_u:system_r:initrc_t:s0 root 7057 7052 0 Aug05 ? 00:00:05 heartbeat: read: ucast em2 unconfined_u:system_r:initrc_t:s0 root 7058 7052 0 Aug05 ? 00:00:17 heartbeat: write: ping 91.196.144.1 unconfined_u:system_r:initrc_t:s0 root 7059 7052 0 Aug05 ? 00:00:16 heartbeat: read: ping 91.196.144.1 unconfined_u:system_r:initrc_t:s0 root 7060 7052 0 Aug05 ? 00:00:18 heartbeat: write: ping 172.16.32.5 unconfined_u:system_r:initrc_t:s0 root 7061 7052 0 Aug05 ? 00:00:17 heartbeat: read: ping 172.16.32.5 unconfined_u:system_r:initrc_t:s0 498 7065 7052 0 Aug05 ? 00:00:07 /usr/lib64/heartbeat/ipfail # Created attachment 517225 [details]
Initial hearbeat policy
Here is the initial heartbeat policy.
tar xvf /tmp/heartbeat.tgz
cd /tmp/
sh heartbeat.sh
echo "-w /etc/shadow -p wa" >> /etc/audit/audit.rules
service auditd restart
service heartbeat restart
And start collecting AVC's
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1511.html |