Bug 1283938 - SELinux is preventing /usr/sbin/smbd from 'unlink' accesses on the file 6A451CC4.tmp.
SELinux is preventing /usr/sbin/smbd from 'unlink' accesses on the file 6A451...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
23
x86_64 Unspecified
medium Severity medium
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:6668b31f002e9faa15d691cc078...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-11-20 05:55 EST by hx
Modified: 2015-11-20 09:40 EST (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-20 09:40:33 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description hx 2015-11-20 05:55:46 EST
Description of problem:
SELinux is preventing /usr/sbin/smbd from 'unlink' accesses on the file 6A451CC4.tmp.

*****  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.
You can read 'smbd_selinux' man page for more details.
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.
You can read 'smbd_selinux' man page for more details.
Do
setsebool -P samba_export_all_rw 1

*****  Plugin catchall (6.38 confidence) suggests   **************************

If you believe that smbd should be allowed unlink access on the 6A451CC4.tmp 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                6A451CC4.tmp [ file ]
Source                        smbd
Source Path                   /usr/sbin/smbd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           samba-4.3.0-3.fc23.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-152.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 4.2.5-300.fc23.x86_64 #1 SMP Tue
                              Oct 27 04:29:56 UTC 2015 x86_64 x86_64
Alert Count                   1
First Seen                    2015-11-13 08:58:47 EET
Last Seen                     2015-11-13 08:58:47 EET
Local ID                      f3b966df-caea-47a8-ab45-dbfcd031928d

Raw Audit Messages
type=AVC msg=audit(1447397927.261:546): avc:  denied  { unlink } for  pid=4912 comm="smbd" name="6A451CC4.tmp" dev="dm-2" ino=268058 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:user_home_t:s0 tclass=file permissive=1


type=SYSCALL msg=audit(1447397927.261:546): arch=x86_64 syscall=unlink success=yes exit=0 a0=557edf962420 a1=557edf962310 a2=4171a a3=20 items=0 ppid=2803 pid=4912 auid=4294967295 uid=1000 gid=0 euid=1000 suid=0 fsuid=1000 egid=1000 sgid=0 fsgid=1000 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,unlink

Version-Release number of selected component:
selinux-policy-3.13.1-152.fc23.noarch

Additional info:
reporter:       libreport-2.6.3
hashmarkername: setroubleshoot
kernel:         4.2.5-300.fc23.x86_64
type:           libreport
Comment 1 Miroslav Grepl 2015-11-20 09:40:33 EST
*****  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.
You can read 'smbd_selinux' man page for more details.
Do
setsebool -P samba_enable_home_dirs 1

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