Bug 630442

Summary: SELinux is preventing /usr/libexec/polkit-1/polkit-agent-helper-1 "ipc_lock" access .
Product: [Fedora] Fedora Reporter: Jan Pazdziora (Red Hat) <jpazdziora>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 13CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:0edda09f386efbc154fa3b9e23f3f7f346c4b7724169135762f8d8f81540eb07
Fixed In Version: selinux-policy-3.7.19-57.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-09-22 00:37:58 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 Jan Pazdziora (Red Hat) 2010-09-05 15:50:57 UTC
Summary:

SELinux is preventing /usr/libexec/polkit-1/polkit-agent-helper-1 "ipc_lock"
access .

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

SELinux denied access requested by polkit-agent-he. It is not expected that this
access is required by polkit-agent-he 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:unconfined_r:policykit_auth_t:s0-s0:c
                              0.c1023
Target Context                unconfined_u:unconfined_r:policykit_auth_t:s0-s0:c
                              0.c1023
Target Objects                None [ capability ]
Source                        polkit-agent-he
Source Path                   /usr/libexec/polkit-1/polkit-agent-helper-1
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           polkit-0.96-1.fc13
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-51.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.34.6-47.fc13.i686.PAE
                              #1 SMP Fri Aug 27 09:29:49 UTC 2010 i686 i686
Alert Count                   2
First Seen                    Sat 04 Sep 2010 06:56:28 AM CEST
Last Seen                     Sun 05 Sep 2010 05:45:20 PM CEST
Local ID                      0bace709-4a45-4d7d-bd94-bf955544a47e
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1283701520.700:201): avc:  denied  { ipc_lock } for  pid=7562 comm="polkit-agent-he" capability=14  scontext=unconfined_u:unconfined_r:policykit_auth_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:policykit_auth_t:s0-s0:c0.c1023 tclass=capability

node=(removed) type=SYSCALL msg=audit(1283701520.700:201): arch=40000003 syscall=150 success=yes exit=0 a0=9ca02d8 a1=8 a2=1fb65c a3=9ca02d8 items=0 ppid=2203 pid=7562 auid=501 uid=501 gid=501 euid=0 suid=0 fsuid=0 egid=501 sgid=501 fsgid=501 tty=(none) ses=1 comm="polkit-agent-he" exe="/usr/libexec/polkit-1/polkit-agent-helper-1" subj=unconfined_u:unconfined_r:policykit_auth_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,polkit-agent-he,policykit_auth_t,policykit_auth_t,capability,ipc_lock
audit2allow suggests:

#============= policykit_auth_t ==============
allow policykit_auth_t self:capability ipc_lock;

Comment 1 Jan Pazdziora (Red Hat) 2010-09-05 15:52:28 UTC
This happens at/around the time when the dialog to enter root password is shown by virt-manager.

Comment 2 Miroslav Grepl 2010-09-09 09:05:52 UTC
Fixed in selinux-policy-3.7.19-55.fc13.

Comment 3 Jan Pazdziora (Red Hat) 2010-09-09 20:20:20 UTC
(In reply to comment #2)
> Fixed in selinux-policy-3.7.19-55.fc13.

I fetched it from koji and the AVC denial is fixed.

Thank you,

Jan

Comment 4 Fedora Update System 2010-09-13 16:08:09 UTC
selinux-policy-3.7.19-57.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/selinux-policy-3.7.19-57.fc13

Comment 5 Fedora Update System 2010-09-15 05:29:28 UTC
selinux-policy-3.7.19-57.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.7.19-57.fc13

Comment 6 Fedora Update System 2010-09-22 00:36:55 UTC
selinux-policy-3.7.19-57.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.