Bug 862220 - SELinux is preventing /usr/sbin/smbd from 'read' accesses on the directory /home/mawared/Music.
SELinux is preventing /usr/sbin/smbd from 'read' accesses on the directory /h...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
17
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:ba472d359432647f6142175b096...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-02 06:41 EDT by Walid
Modified: 2012-10-05 08:12 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-10-05 08:12:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-10-02 06:41 EDT, Walid
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-10-02 06:41 EDT, Walid
no flags Details

  None (edit)
Description Walid 2012-10-02 06:41:06 EDT
Additional info:
libreport version: 2.0.14
kernel:         3.5.4-2.fc17.i686

description:
:SELinux is preventing /usr/sbin/smbd from 'read' accesses on the directory /home/mawared/Music.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that smbd should be allowed read access on the Music directory 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                unconfined_u:object_r:audio_home_t:s0
:Target Objects                /home/mawared/Music [ dir ]
:Source                        smbd
:Source Path                   /usr/sbin/smbd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           samba-3.6.6-92.fc17.1.i686
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-149.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.5.4-2.fc17.i686 #1 SMP Wed Sep
:                              26 22:32:49 UTC 2012 i686 i686
:Alert Count                   5
:First Seen                    2012-10-02 13:30:56 EEST
:Last Seen                     2012-10-02 13:30:58 EEST
:Local ID                      1f1808a6-a0f0-4898-b1db-c86405cc4744
:
:Raw Audit Messages
:type=AVC msg=audit(1349173858.12:310): avc:  denied  { read } for  pid=15814 comm="smbd" name="Music" dev="dm-2" ino=14024722 scontext=system_u:system_r:smbd_t:s0 tcontext=unconfined_u:object_r:audio_home_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1349173858.12:310): arch=i386 syscall=open success=no exit=EACCES a0=b88d19c0 a1=8000 a2=0 a3=b88d16a8 items=0 ppid=15278 pid=15814 auid=4294967295 uid=0 gid=0 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 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,audio_home_t,dir,read
:
: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 audio_home_t:dir read;
:
: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 audio_home_t:dir read;
:
Comment 1 Walid 2012-10-02 06:41:10 EDT
Created attachment 620227 [details]
File: type
Comment 2 Walid 2012-10-02 06:41:12 EDT
Created attachment 620228 [details]
File: hashmarkername
Comment 3 Miroslav Grepl 2012-10-05 08:12:15 EDT
You will need to turn on one of these booleans to share your Music directory.

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


setsebool -P samba_enable_home_dirs 1

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