| Summary: | SELinux is preventing /usr/sbin/smbd from 'lock' accesses on the file /home/jeff/Public/.DS_Store. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | jeff <jcmj> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dominick.grift, dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:a0b067bd953f1103a275d34e52c9cb665ef043fa59fdfa7df0ebdd25ddea5e01 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-10-13 09:26:56 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
The SEAlert tells you what to do and where the problem is. *** Bug 745649 has been marked as a duplicate of this bug. *** *** Bug 745650 has been marked as a duplicate of this bug. *** *** Bug 745651 has been marked as a duplicate of this bug. *** |
SELinux is preventing /usr/sbin/smbd from 'lock' accesses on the file /home/jeff/Public/.DS_Store. ***** Plugin catchall_boolean (32.5 confidence) suggests ******************* If you want to allow samba to share any file/directory read only. Then you must tell SELinux about this by enabling the 'samba_export_all_ro' boolean. Do setsebool -P samba_export_all_ro 1 ***** Plugin catchall_boolean (32.5 confidence) suggests ******************* If you want to allow samba to share users home directories. Then you must tell SELinux about this by enabling the 'samba_enable_home_dirs' boolean. Do setsebool -P samba_enable_home_dirs 1 ***** Plugin catchall_boolean (32.5 confidence) suggests ******************* If you want to allow samba to share any file/directory read/write. Then you must tell SELinux about this by enabling the 'samba_export_all_rw' boolean. Do setsebool -P samba_export_all_rw 1 ***** Plugin catchall (4.5 confidence) suggests **************************** If you believe that smbd should be allowed lock access on the .DS_Store file by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep smbd /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:smbd_t:s0 Target Context system_u:object_r:user_home_t:s0 Target Objects /home/jeff/Public/.DS_Store [ file ] Source smbd Source Path /usr/sbin/smbd Port <Unknown> Host (removed) Source RPM Packages samba-3.5.11-71.fc15.1 Target RPM Packages Policy RPM selinux-policy-3.9.16-38.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 2.6.40.4-5.fc15.x86_64 #1 SMP Tue Aug 30 14:38:32 UTC 2011 x86_64 x86_64 Alert Count 10 First Seen Thu 15 Sep 2011 11:47:52 AM CDT Last Seen Wed 12 Oct 2011 03:07:01 PM CDT Local ID 296116d2-9f70-40a4-8949-3e320ba5f070 Raw Audit Messages type=AVC msg=audit(1318450021.216:95841): avc: denied { lock } for pid=28924 comm="smbd" path="/home/jeff/Public/.DS_Store" dev=dm-0 ino=137267 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:user_home_t:s0 tclass=file type=SYSCALL msg=audit(1318450021.216:95841): arch=x86_64 syscall=fcntl success=yes exit=0 a0=22 a1=5 a2=7fffb028c480 a3=18 items=0 ppid=1805 pid=28924 auid=4294967295 uid=0 gid=0 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=4294967295 comm=smbd exe=/usr/sbin/smbd subj=system_u:system_r:smbd_t:s0 key=(null) Hash: smbd,smbd_t,user_home_t,file,lock audit2allow #============= smbd_t ============== #!!!! This avc can be allowed using one of the these booleans: # samba_export_all_ro, samba_enable_home_dirs, samba_export_all_rw allow smbd_t user_home_t:file lock; audit2allow -R #============= smbd_t ============== #!!!! This avc can be allowed using one of the these booleans: # samba_export_all_ro, samba_enable_home_dirs, samba_export_all_rw allow smbd_t user_home_t:file lock;