Bug 829141 - SELinux is preventing smbd from 'read' accesses on the file /etc/samba/smb.conf.
Summary: SELinux is preventing smbd from 'read' accesses on the file /etc/samba/smb.conf.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6d1f4b39aa45194fb180708601e...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-06 05:01 UTC by Rafal Boruc
Modified: 2012-06-07 18:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-07 18:35:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Rafal Boruc 2012-06-06 05:01:58 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.3.7-1.fc17.i686
time:           śro, 6 cze 2012, 06:01:40

description:
:SELinux is preventing smbd from 'read' accesses on the file /etc/samba/smb.conf.
:
:*****  Plugin restorecon (80.5 confidence) suggests  *************************
:
:If aby naprawić etykietę. 
:domyślna etykieta /etc/samba/smb.conf powinna wynosić samba_etc_t.
:Then można wykonać polecenie restorecon.
:Do
:# /sbin/restorecon -v /etc/samba/smb.conf
:
:*****  Plugin catchall_boolean (6.9 confidence) suggests  ********************
:
:If aby samba_export_all_ro
:Then you must tell SELinux about this by enabling the 'samba_export_all_ro' boolean.You can read 'user_selinux' man page for more details.
:Do
:setsebool -P samba_export_all_ro 1
:
:*****  Plugin catchall_boolean (6.9 confidence) suggests  ********************
:
:If aby samba_enable_home_dirs
:Then you must tell SELinux about this by enabling the 'samba_enable_home_dirs' boolean.You can read 'user_selinux' man page for more details.
:Do
:setsebool -P samba_enable_home_dirs 1
:
:*****  Plugin catchall_boolean (6.9 confidence) suggests  ********************
:
:If aby samba_export_all_rw
:Then you must tell SELinux about this by enabling the 'samba_export_all_rw' boolean.You can read 'user_selinux' man page for more details.
:Do
:setsebool -P samba_export_all_rw 1
:
:*****  Plugin catchall (1.3 confidence) suggests  ****************************
:
:If aby smbd powinno mieć domyślnie read dostęp do smb.conf file.
:Then proszę to zgłosić jako błąd.
:Można utworzyć lokalny moduł polityki, aby umożliwić ten dostęp.
:Do
:można tymczasowo zezwolić na ten dostęp wykonując polecenia:
:# grep smbd /var/log/audit/audit.log | audit2allow -M mojapolityka
:# semodule -i mojapolityka.pp
:
:Additional Information:
:Source Context                system_u:system_r:smbd_t:s0
:Target Context                unconfined_u:object_r:user_home_t:s0
:Target Objects                /etc/samba/smb.conf [ file ]
:Source                        smbd
:Source Path                   smbd
:Port                          <Nieznane>
:Host                          (removed)
:Source RPM Packages           
:Target RPM Packages           samba-common-3.6.5-86.fc17.1.i686
:Policy RPM                    selinux-policy-3.10.0-128.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.7-1.fc17.i686 #1 SMP Mon May 21
:                              22:50:24 UTC 2012 i686 i686
:Alert Count                   4
:First Seen                    śro, 6 cze 2012, 04:24:36
:Last Seen                     śro, 6 cze 2012, 05:41:53
:Local ID                      f1b6555c-c10e-44d2-b22d-b78936637c89
:
:Raw Audit Messages
:type=AVC msg=audit(1338957713.21:46): avc:  denied  { read } for  pid=1033 comm="smbd" name="smb.conf" dev="dm-1" ino=268559 scontext=system_u:system_r:smbd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file
:
:
:Hash: smbd,smbd_t,user_home_t,file,read
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Daniel Walsh 2012-06-07 18:35:49 UTC
The alert told you what to do.

*************************
:
:If aby naprawić etykietę. 
:domyślna etykieta /etc/samba/smb.conf powinna wynosić samba_etc_t.
:Then można wykonać polecenie restorecon.
:Do
:# /sbin/restorecon -v /etc/samba/smb.conf
:


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