Bug 723531

Summary: jabberd generates AVC denials
Product: [Fedora] Fedora Reporter: Jan Pazdziora <jpazdziora>
Component: selinux-policy-targetedAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Ben Levenson <benl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: selinux-policy-3.9.16-35.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-02 02:04:18 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 Jan Pazdziora 2011-07-20 13:24:08 UTC
Description of problem:

When jabberd is started on Fedora 15, it generates

type=AVC msg=audit(1311167750.474:423): avc:  denied  { read } for  pid=3929 comm="c2s" name="stat" dev=proc ino=4026532009 scontext=system_u:system_r:jabberd_router_t:s0 tcontext=system_u:object_r:proc_t:s0 tclass=file
type=AVC msg=audit(1311167750.474:423): avc:  denied  { open } for  pid=3929 comm="c2s" name="stat" dev=proc ino=4026532009 scontext=system_u:system_r:jabberd_router_t:s0 tcontext=system_u:object_r:proc_t:s0 tclass=file
type=SYSCALL msg=audit(1311167750.474:423): arch=40000003 syscall=5 success=yes exit=4 a0=420746e1 a1=80000 a2=0 a3=54 items=0 ppid=1 pid=3929 auid=4294967295 uid=497 gid=493 euid=497 suid=497 fsuid=497 egid=493 sgid=493 fsgid=493 tty=(none) ses=4294967295 comm="c2s" exe="/usr/bin/c2s" subj=system_u:system_r:jabberd_router_t:s0 key=(null)

Version-Release number of selected component (if applicable):

# rpm -q jabberd selinux-policy-targeted
jabberd-2.2.14-1.fc15.i686
selinux-policy-targeted-3.9.16-34.fc15.noarch

How reproducible:

Seen once, I assume it is deterministic.

Steps to Reproduce:
1. Install and run jabberd (we do this as part of Spacewalk).
2. Observe /var/log/audit/audit.log.
  
Actual results:

The above mentioned AVC denial.

Expected results:

No AVC denial.

Additional info:

audit2allow -R says:

kernel_read_system_state(jabberd_router_t)

Comment 1 Miroslav Grepl 2011-07-20 13:40:29 UTC
Fixed in selinux-policy-3.9.16-35.fc15

Comment 2 Fedora Update System 2011-07-21 06:02:02 UTC
selinux-policy-3.9.16-35.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-35.fc15

Comment 3 Fedora Update System 2011-07-23 01:55:14 UTC
Package selinux-policy-3.9.16-35.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.9.16-35.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.16-35.fc15
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-08-02 02:03:46 UTC
selinux-policy-3.9.16-35.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.