Bug 566984
| Summary: | SELinux is preventing /usr/sbin/smbd "getattr" access on /dev/network_throughput. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jim Shipman <JimShip> | ||||
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 12 | CC: | dwalsh, mgrepl | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | setroubleshoot_trace_hash:29e09eb224ec3afe3c308e3e0b1ce89ada0ddae154c8dc93d7d7f14652ecdfe6 | ||||||
| Fixed In Version: | selinux-policy-3.6.32-92.fc12 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2010-03-04 00:16: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: | |||||||
| Attachments: |
|
||||||
|
Description
Jim Shipman
2010-02-20 22:19:43 UTC
How did you get this to happen? Are you sharing the entire system? (In reply to comment #1) > How did you get this to happen? Are you sharing the entire system? I don't know what I was doing when it happened. I just got the bug icon in the task bar. This same messages was received for a whole bunch of access', but I only submitted the first one. I am running samba to connect (via a bridged adapter) to Windows xp running in a VirtualBox (V 3.1.4) on the same machine (the vbox shared folders change all the time/date stamps on my files to current time), and I share my home folder (ext4) and NTFS drive with my laptop via a wireless network. Nothing else. Could you execute ausearch -m avc -ts recent And attach a compresses output. If there is sensitive data, just email it to dwalsh or pipe it through audit2allow. ausearch -m avc -ts recent | audit2allow [root@laurie ~]# ausearch -m avc -ts recent | audit2allow <no matches> Sorry for two appends. Still nothing even without the audit2allow part. [root@laurie ~]# ausearch -m avc -ts recent <no matches> Created attachment 395593 [details]
avc log containing smbd rejects
Here is my avc log for the past month. It does contain the smbd messages at line 302 and others.
Jim Shipman
Miroslav, Looks like smbd is doing a getattr of everything in /dev Add dev_getattr_all_blk_files(smbd_t) dev_getattr_all_chr_files(smbd_t) Sorry, but I don't know what to add those lines to. I'm not very familiar with the se part of selinux or smbd. How do I "add" those lines? Thanks, Jim I went into the SELinux Management tool under Administration and looked at the boolean items for samba. I noticed that everything was checked including "allow samba to share any file/director read/write". I unchecked everything except for domain controller, share home dirs, share ntfs/fusefs, and modify public files. I'll see if that takes care of my problem. Note: This was a fresh install of Fedora 12 (with all the updates), so how did SELinux get messed up? Jim (In reply to comment #7) > Miroslav, Looks like smbd is doing a getattr of everything in /dev > > Add > > dev_getattr_all_blk_files(smbd_t) > dev_getattr_all_chr_files(smbd_t) Yes, it looks so. Jim, you can allow it for now using # grep smbd /var/log/audit/audit.log | audit2allow -M mysamba # semodule -i mysamba.pp I am adding these rules to default policy. Fixed in selinux-policy-3.6.32-92.fc12 selinux-policy-3.6.32-92.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-92.fc12 selinux-policy-3.6.32-92.fc12 has been pushed to the Fedora 12 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update selinux-policy'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-2953 selinux-policy-3.6.32-92.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. |