Bug 750628

Summary: SELinux is preventing /usr/sbin/smbd from using the 'fsetid' capabilities.
Product: [Fedora] Fedora Reporter: Renato <renato>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:acd182ebafa50edf97ff427b8d7398eee31e55c4da1698e67eb29d31b46e99de
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-16 22:25:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Renato 2011-11-01 19:56:10 UTC
SELinux is preventing /usr/sbin/smbd from using the 'fsetid' capabilities.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that smbd should have the fsetid capability 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                unconfined_u:system_r:smbd_t:s0
Target Context                unconfined_u:system_r:smbd_t:s0
Target Objects                Unknown [ capability ]
Source                        smbd
Source Path                   /usr/sbin/smbd
Port                          <Desconhecido>
Host                          (removed)
Source RPM Packages           samba-3.5.11-79.fc14
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-44.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.14-97.fc14.i686 #1 SMP
                              Sat Sep 17 00:34:02 UTC 2011 i686 i686
Alert Count                   7
First Seen                    Ter 01 Nov 2011 15:44:30 BRST
Last Seen                     Ter 01 Nov 2011 17:43:51 BRST
Local ID                      02f08aa3-b397-4de3-bbe7-25e049c52a4a

Raw Audit Messages
type=AVC msg=audit(1320176631.59:349): avc:  denied  { fsetid } for  pid=13493 comm="smbd" capability=4  scontext=unconfined_u:system_r:smbd_t:s0 tcontext=unconfined_u:system_r:smbd_t:s0 tclass=capability


type=SYSCALL msg=audit(1320176631.59:349): arch=i386 syscall=ftruncate64 success=yes exit=0 a0=19 a1=0 a2=0 a3=11af928 items=0 ppid=30402 pid=13493 auid=500 uid=0 gid=0 euid=0 suid=99 fsuid=0 egid=48 sgid=48 fsgid=48 tty=(none) ses=1 comm=smbd exe=/usr/sbin/smbd subj=unconfined_u:system_r:smbd_t:s0 key=(null)

Hash: smbd,smbd_t,smbd_t,capability,fsetid

audit2allow

#============= smbd_t ==============
allow smbd_t self:capability fsetid;

audit2allow -R

#============= smbd_t ==============
allow smbd_t self:capability fsetid;

Comment 1 Daniel Walsh 2011-11-01 20:29:26 UTC
This should be allowed.  Miroslav can you add this to RHEL6 and F15 policy also.

You can allow this for now. by executing
# grep fsetid /var/log/audit/audit.log | audit2allow -M mysamba
# semodule -i mysamba.pp

Comment 2 Miroslav Grepl 2011-11-02 08:02:05 UTC
Added.

Comment 3 Fedora End Of Life 2012-08-16 22:25:55 UTC
This message is a notice that Fedora 14 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 14. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained.  At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this 
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen 
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we were unable to fix it before Fedora 14 reached 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 to click on 
"Clone This Bug" (top right of this page) and open it against that 
version of Fedora.

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.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping