Bug 745647 - SELinux is preventing /usr/sbin/smbd from 'lock' accesses on the file /home/jeff/Public/.DS_Store.
Summary: SELinux is preventing /usr/sbin/smbd from 'lock' accesses on the file /home/j...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:a0b067bd953...
: 745649 745650 745651 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-12 22:06 UTC by jeff
Modified: 2011-10-13 09:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-13 09:26:56 UTC
Type: ---


Attachments (Terms of Use)

Description jeff 2011-10-12 22:06:03 UTC
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;

Comment 1 Miroslav Grepl 2011-10-13 09:25:01 UTC
The SEAlert tells you what to do and where the problem is.

Comment 2 Miroslav Grepl 2011-10-13 09:25:32 UTC
*** Bug 745649 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2011-10-13 09:26:01 UTC
*** Bug 745650 has been marked as a duplicate of this bug. ***

Comment 4 Miroslav Grepl 2011-10-13 09:26:22 UTC
*** Bug 745651 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.