Bug 565374

Summary: SELinux is preventing /usr/sbin/vsftpd "net_raw" access .
Product: [Fedora] Fedora Reporter: horner
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: aaraodeo, adrian1h, andris.pavenis, a-zhurkin84, bhernco, carlg, dwalsh, dweb98, ekin, gbarker, horner, it, jcmj, joe_underscore, keith.flynn, mail.dsp, mcepl, mcepl, mgrepl, panormitis, paulmarc.bougharios, saikiranrgda, unix63, volans2000, yn.abid
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:6b0419913ef842db64efc0d9b4261b3154e66e4feadf558dc042ebe0267770e6
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-15 09:51:15 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 horner 2010-02-15 05:22:01 UTC
Summary:

SELinux is preventing /usr/sbin/vsftpd "net_raw" access .

Detailed Description:

SELinux denied access requested by vsftpd. It is not expected that this access
is required by vsftpd 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                system_u:system_r:ftpd_t:s0-s0:c0.c1023
Target Context                system_u:system_r:ftpd_t:s0-s0:c0.c1023
Target Objects                None [ capability ]
Source                        vsftpd
Source Path                   /usr/sbin/vsftpd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           vsftpd-2.2.0-6.fc12
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-84.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.12-174.2.3.fc12.x86_64 #1 SMP Mon Jan 18
                              19:52:07 UTC 2010 x86_64 x86_64
Alert Count                   3
First Seen                    Sun 14 Feb 2010 10:28:45 AM CET
Last Seen                     Sun 14 Feb 2010 10:29:09 AM CET
Local ID                      5815dec8-0090-419a-940a-a234c8e820bf
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1266139749.777:52358): avc:  denied  { net_raw } for  pid=27058 comm="vsftpd" capability=13 scontext=system_u:system_r:ftpd_t:s0-s0:c0.c1023 tcontext=system_u:system_r:ftpd_t:s0-s0:c0.c1023 tclass=capability

node=(removed) type=SYSCALL msg=audit(1266139749.777:52358): arch=c000003e syscall=56 success=no exit=-1 a0=40000011 a1=0 a2=7f6d7d1fb85e a3=0 items=0 ppid=0 pid=27058 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="vsftpd" exe="/usr/sbin/vsftpd" subj=system_u:system_r:ftpd_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,vsftpd,ftpd_t,ftpd_t,capability,net_raw
audit2allow suggests:

#============= ftpd_t ==============
allow ftpd_t self:capability net_raw;

Comment 1 Miroslav Grepl 2010-02-15 09:51:15 UTC

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

Comment 2 Carl G. 2010-04-13 20:08:34 UTC
I'm currently having the same AVC, i saw the other bug report too...