Bug 836719
Summary: | SELinux is preventing /usr/bin/systemd-tmpfiles from getattr access on pulse tmp dir | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ian Malone <ibmalone> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED CANTFIX | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 17 | CC: | dominick.grift, dwalsh, im, johannbg, lnykryn, metherid, mgrepl, mschmidt, msekleta, notting, plautrba, systemd-maint |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-07-18 19:57:46 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: | |
Embargoed: |
Description
Ian Malone
2012-06-30 11:13:27 UTC
There should be no files marked unlabeled_t in the filesystem. What do these commands show?: ls -Zd /tmp/pulse* ps Zx | grep pulse $ ls -Zd /tmp/pulse* drwx------. gdm gdm system_u:object_r:xdm_tmp_t:s0 /tmp/pulse-4WI5YacEGKbt drwx------. ian ian unconfined_u:object_r:user_tmp_t:s0 /tmp/pulse-pOp3QUvbn8Y2 $ ps Zx | grep pulse unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 961 ? Sl 0:00 /usr/bin/pulseaudio --start That can't be right? This was a clean install of F17 on 21/6 with just normal updates and no tweaking. I rebooted and forced a relabel before taking those results. The labels in comment #2 are all correct. I think you fixed the problem by the relabeling. I don't know how we can now find out what caused the bad labels in the first place. I have the fresh install of FC17 and this bug. What should I do to provide the needed info? [stanis@home ~] % ls -Zd /tmp/pulse* [0:52:02] drwx------. stanis stanis unconfined_u:object_r:user_tmp_t:s0 /tmp/pulse-fyYMPNxzyflr drwx------. root root system_u:object_r:unlabeled_t:s0 /tmp/pulse-PKdhtXMmr18n drwx------. gdm gdm system_u:object_r:xdm_tmp_t:s0 /tmp/pulse-tQBRlqXmkTFl [stanis@home ~] % ps Zx | grep pulse [0:58:17] unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 1264 ? S<l 2:14 /usr/bin/pulseaudio --start unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 3334 pts/0 S+ 0:00 grep --color=auto pulse [stanis@home ~] % [0:58:30] (In reply to comment #5) > [stanis@home ~] % ls -Zd /tmp/pulse* > [0:52:02] > drwx------. stanis stanis unconfined_u:object_r:user_tmp_t:s0 > /tmp/pulse-fyYMPNxzyflr > drwx------. root root system_u:object_r:unlabeled_t:s0 > /tmp/pulse-PKdhtXMmr18n > drwx------. gdm gdm system_u:object_r:xdm_tmp_t:s0 > /tmp/pulse-tQBRlqXmkTFl The directories owned by 'stanis' and 'gdm' are OK. The directory owned by root is suspicious. Pulseaudio should not be run under root. I don't know what did it. Perhaps you could look at the creation timestamp of the directory and then look at the logs from that time. I don't know how it became unlabeled_t. Maybe it had a valid type earlier, but a policy update invalidated it. Let's see if SELinux experts have any ideas. Reopening and reassigning to selinux-policy. Just remove the directory. I think we removed a label that was used for these files and it caused the label to become unlabeled_t. rm -rf /tmp/pulse-PKdhtXMmr18n Should fix the problem. Reopen if it happens again. |