Bug 876420 - SELinux is preventing /usr/sbin/smbd from 'write' accesses on the directory /var/log.
Summary: SELinux is preventing /usr/sbin/smbd from 'write' accesses on the directory /...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ab411ff12c573bbf73f90ecaf0d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-14 04:14 UTC by franck.bailliet
Modified: 2013-07-07 07:33 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-07-07 07:33:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-11-14 04:15 UTC, franck.bailliet
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-11-14 04:15 UTC, franck.bailliet
no flags Details

Description franck.bailliet 2012-11-14 04:14:48 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.6-1.fc17.x86_64

description:
:SELinux is preventing /usr/sbin/smbd from 'write' accesses on the directory /var/log.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that smbd should be allowed write access on the log 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                system_u:object_r:var_log_t:s0
:Target Objects                /var/log [ dir ]
:Source                        smbd
:Source Path                   /usr/sbin/smbd
:Port                          <Inconnu>
:Host                          (removed)
:Source RPM Packages           samba-3.6.8-95.fc17.1.x86_64
:Target RPM Packages           filesystem-3-2.fc17.x86_64
:Policy RPM                    selinux-policy-3.10.0-156.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.6-1.fc17.x86_64 #1 SMP Mon Nov
:                              5 21:59:35 UTC 2012 x86_64 x86_64
:Alert Count                   10
:First Seen                    2012-11-07 05:46:26 CET
:Last Seen                     2012-11-11 02:00:41 CET
:Local ID                      e01fed2f-8b65-4f5f-86e5-6f3f55ebcb51
:
:Raw Audit Messages
:type=AVC msg=audit(1352595641.770:35): avc:  denied  { write } for  pid=808 comm="smbd" name="log" dev="sda5" ino=21 scontext=system_u:system_r:smbd_t:s0 tcontext=system_u:object_r:var_log_t:s0 tclass=dir
:
:
:type=SYSCALL msg=audit(1352595641.770:35): arch=x86_64 syscall=open success=no exit=EACCES a0=7f712d041920 a1=441 a2=1a4 a3=63 items=0 ppid=1 pid=808 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=smbd exe=/usr/sbin/smbd subj=system_u:system_r:smbd_t:s0 key=(null)
:
:Hash: smbd,smbd_t,var_log_t,dir,write
:
:audit2allow
:
:#============= smbd_t ==============
:#!!!! This avc can be allowed using the boolean 'samba_export_all_rw'
:
:allow smbd_t var_log_t:dir write;
:
:audit2allow -R
:
:#============= smbd_t ==============
:#!!!! This avc can be allowed using the boolean 'samba_export_all_rw'
:
:allow smbd_t var_log_t:dir write;
:

Comment 1 franck.bailliet 2012-11-14 04:15:29 UTC
Created attachment 644549 [details]
File: type

Comment 2 franck.bailliet 2012-11-14 04:15:31 UTC
Created attachment 644550 [details]
File: hashmarkername

Comment 3 Daniel Walsh 2012-11-14 18:39:15 UTC
Did you change smbd to use logging other then syslog?  Or did you want smbd to share /var/log?

Comment 4 Fedora End Of Life 2013-07-04 00:52:59 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.


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