Bug 784077

Summary: SELinux is preventing /usr/bin/bip from 'read' accesses on the None /run/bip/bip.pid.
Product: [Fedora] Fedora Reporter: Nicolas Mailhot <nicolas.mailhot>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:a39e63e9bcc671897fd02ebc9e6425017159b27bc7357bfc7a7dc49b18df7a4f
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-24 09:14:33 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 Nicolas Mailhot 2012-01-23 18:40:08 UTC
libreport version: 2.0.8
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.0-0.rc1.git0.4.fc17.x86_64
reason:         SELinux is preventing /usr/bin/bip from 'read' accesses on the None /run/bip/bip.pid.
time:           lun. 23 janv. 2012 19:33:04 CET

description:
:SELinux is preventing /usr/bin/bip from 'read' accesses on the None /run/bip/bip.pid.
:
:*****  Plugin catchall (100. confidence) suggests  ***************************
:
:If you believe that bip should be allowed read access on the bip.pid <Inconnu> 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 bip /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:bitlbee_t:s0
:Target Context                system_u:object_r:gatekeeper_port_t:s0
:Target Objects                /run/bip/bip.pid [ None ]
:Source                        bip
:Source Path                   /usr/bin/bip
:Port                          7000
:Host                          (removed)
:Source RPM Packages           bip-0.8.8-3.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-77.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.0-0.rc1.git0.4.fc17.x86_64 #1
:                              SMP Mon Jan 23 14:21:20 UTC 2012 x86_64 x86_64
:Alert Count                   2
:First Seen                    lun. 23 janv. 2012 19:24:28 CET
:Last Seen                     lun. 23 janv. 2012 19:32:45 CET
:Local ID                      9115eddf-81f5-4281-9030-3a489267bcca
:
:Raw Audit Messages
:type=AVC msg=audit(1327343565.977:198): avc:  denied  { read } for  pid=1 comm="systemd" name="bip.pid" dev="tmpfs" ino=355712 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:bitlbee_var_run_t:s0 tclass=filenode=(removed) type=AVC msg=audit(1327343565.977:199): avc:  denied  { open } for  pid=1 comm="systemd" name="bip.pid" dev="tmpfs" ino=355712 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:bitlbee_var_run_t:s0 tclass=filenode=(removed) type=AVC msg=audit(1327343565.977:200): avc:  denied  { getattr } for  pid=1 comm="systemd" path="/run/bip/bip.pid" dev="tmpfs" ino=355712 scontext=system_u:system_r:init_t:s0 tcontext=system_u:object_r:bitlbee_var_run_t:s0 tclass=filenode=(removed) type=AVC msg=audit(1327343567.023:203): avc:  denied  { name_connect } for  pid=4231 comm="bip" dest=7000 scontext=system_u:system_r:bitlbee_t:s0 tcontext=system_u:object_r:gatekeeper_port_t:s0 tclass=tcp_socketnode=(removed) type=SYSCALL msg=audit(1327343567.023:203): arch=c000003e syscall=42 success=no exit=-115 a0=1 a1=7ffed46a4be0 a2=1c a3=7fff14926970 items=0 ppid=1 pid=4231 auid=4294967295 uid=478 gid=473 euid=478 suid=478 fsuid=478 egid=473 sgid=473 fsgid=473 tty=(none) ses=4294967295 comm="bip" exe="/usr/bin/bip" subj=system_u:system_r:bitlbee_t:s0 key=(null)
:
:
:Hash: bip,bitlbee_t,gatekeeper_port_t,None,read
:
:audit2allow
:
:
:audit2allow -R
:
:

Comment 1 Miroslav Grepl 2012-01-24 09:14:33 UTC
Fixed in selinux-policy-3.10.0-78.fc17.noarch