Bug 745649 - SELinux is preventing /usr/sbin/smbd from 'setattr' accesses on the file JeffHoffmancrono.docx.
Summary: SELinux is preventing /usr/sbin/smbd from 'setattr' accesses on the file Jeff...
Keywords:
Status: CLOSED DUPLICATE of bug 745647
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:85f17b3d0a7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-12 22:12 UTC by jeff
Modified: 2011-10-13 09:25 UTC (History)
3 users (show)

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


Attachments (Terms of Use)

Description jeff 2011-10-12 22:12:56 UTC
SELinux is preventing /usr/sbin/smbd from 'setattr' accesses on the file JeffHoffmancrono.docx.

*****  Plugin catchall_boolean (47.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 (47.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 (6.38 confidence) suggests  ***************************

If you believe that smbd should be allowed setattr access on the JeffHoffmancrono.docx 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                JeffHoffmancrono.docx [ 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-39.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 05:09:19 PM CDT
Local ID                      5f6dcc5a-f352-4a9e-aabb-a1413121fe5c

Raw Audit Messages
type=AVC msg=audit(1318457359.81:96937): avc:  denied  { setattr } for  pid=28924 comm="smbd" name="JeffHoffmancrono.docx" dev=dm-0 ino=134593 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:user_home_t:s0 tclass=file


type=SYSCALL msg=audit(1318457359.81:96937): arch=x86_64 syscall=chmod success=yes exit=0 a0=7fe6af552340 a1=1e4 a2=0 a3=3 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,setattr

audit2allow

#============= smbd_t ==============
#!!!! This avc can be allowed using one of the these booleans:
#     samba_enable_home_dirs, samba_export_all_rw

allow smbd_t user_home_t:file setattr;

audit2allow -R

#============= smbd_t ==============
#!!!! This avc can be allowed using one of the these booleans:
#     samba_enable_home_dirs, samba_export_all_rw

allow smbd_t user_home_t:file setattr;

Comment 1 Miroslav Grepl 2011-10-13 09:25:32 UTC

*** This bug has been marked as a duplicate of bug 745647 ***


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