Bug 605975

Summary: SELinux is preventing /usr/sbin/swat "open" access on /var/run/smbd.pid.
Product: [Fedora] Fedora Reporter: Wayne Spivak <wspivak>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:d01fcbd774864fe657b110522578a0848a884e802e086cbe1a4192367059af5e
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-21 11:16:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Wayne Spivak 2010-06-19 18:08:20 UTC
Summary:

SELinux is preventing /usr/sbin/swat "open" access on /var/run/smbd.pid.

Detailed Description:

SELinux denied access requested by swat. It is not expected that this access is
required by swat and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                unconfined_u:system_r:swat_t:s0-s0:c0.c1023
Target Context                unconfined_u:object_r:var_run_t:s0
Target Objects                /var/run/smbd.pid [ file ]
Source                        swat
Source Path                   /usr/sbin/swat
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           samba-swat-3.4.7-58.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-116.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.32.14-127.fc12.i686.PAE #1 SMP Fri May 28
                              04:47:04 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Sat 19 Jun 2010 02:02:57 PM EDT
Last Seen                     Sat 19 Jun 2010 02:02:57 PM EDT
Local ID                      072b5871-dc29-4ba4-a411-8808ffc40880
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1276970577.123:39403): avc:  denied  { open } for  pid=27062 comm="swat" name="smbd.pid" dev=dm-0 ino=136394 scontext=unconfined_u:system_r:swat_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:var_run_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1276970577.123:39403): arch=40000003 syscall=5 success=no exit=-13 a0=17649c8 a1=8800 a2=0 a3=6211fe items=0 ppid=26823 pid=27062 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=213 comm="swat" exe="/usr/sbin/swat" subj=unconfined_u:system_r:swat_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,swat,swat_t,var_run_t,file,open
audit2allow suggests:

#============= swat_t ==============
#!!!! This avc is allowed in the current policy

allow swat_t var_run_t:file open;

Comment 1 Miroslav Grepl 2010-06-21 11:16:12 UTC

*** This bug has been marked as a duplicate of bug 605974 ***