Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1003799

Summary: SELinux polkit id error
Product: Red Hat Enterprise Linux 6 Reporter: Laura Novich <lnovich>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NEXTRELEASE QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: dwalsh, jhradile, mmalik
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-20 13:32:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Laura Novich 2013-09-03 09:11:34 UTC
Description of problem:
SELinux is preventing /usr/libexec/polkit-1/polkitd from 'read' accesses on the file /var/lib/sss/mc/passwd.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that polkitd should be allowed read access on the passwd file 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 polkitd /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:policykit_t:s0-s0:c0.c1023
Target Context                system_u:object_r:sssd_var_lib_t:s0
Target Objects                /var/lib/sss/mc/passwd [ file ]
Source                        polkitd
Source Path                   /usr/libexec/polkit-1/polkitd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           sssd-1.9.2-82.7.el6_4.x86_64
Policy RPM                    selinux-policy-3.7.19-195.el6_4.12.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux remote.hypervisor 2.6.32-279.19.1.el6.x86_64
                              #1 SMP Sat Nov 24 14:35:28 EST 2012 x86_64 x86_64
Alert Count                   544
First Seen                    Tue 03 Sep 2013 03:40:51 AM IDT
Last Seen                     Tue 03 Sep 2013 12:05:43 PM IDT
Local ID                      7e193ef4-994a-49d8-abc7-9cea2e2e6fde

Raw Audit Messages
type=AVC msg=audit(1378199143.277:42930): avc:  denied  { read } for  pid=3374 comm="polkitd" name="passwd" dev=dm-1 ino=782853 scontext=system_u:system_r:policykit_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sssd_var_lib_t:s0 tclass=file


type=SYSCALL msg=audit(1378199143.277:42930): arch=x86_64 syscall=open success=no exit=EACCES a0=d6f8d0 a1=80000 a2=0 a3=17 items=0 ppid=1 pid=3374 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=polkitd exe=2F7573722F6C6962657865632F706F6C6B69742D312F706F6C6B697464202864656C6574656429 subj=system_u:system_r:policykit_t:s0-s0:c0.c1023 key=(null)

Hash: polkitd,policykit_t,sssd_var_lib_t,file,read

audit2allow

#============= policykit_t ==============
allow policykit_t sssd_var_lib_t:file read;

audit2allow -R

#============= policykit_t ==============
allow policykit_t sssd_var_lib_t:file read;



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


How reproducible:
Happens each time machine boots

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:
I expect no error


Additional Information:
Source Context                system_u:system_r:policykit_t:s0-s0:c0.c1023
Target Context                system_u:object_r:sssd_var_lib_t:s0
Target Objects                /var/lib/sss/mc/passwd [ file ]
Source                        polkitd
Source Path                   /usr/libexec/polkit-1/polkitd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           sssd-1.9.2-82.7.el6_4.x86_64
Policy RPM                    selinux-policy-3.7.19-195.el6_4.12.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux remote.hypervisor 2.6.32-279.19.1.el6.x86_64
                              #1 SMP Sat Nov 24 14:35:28 EST 2012 x86_64 x86_64
Alert Count                   544
First Seen                    Tue 03 Sep 2013 03:40:51 AM IDT
Last Seen                     Tue 03 Sep 2013 12:05:43 PM IDT
Local ID                      7e193ef4-994a-49d8-abc7-9cea2e2e6fde

Comment 2 Miroslav Grepl 2013-09-03 09:59:28 UTC
#============= policykit_t ==============

#!!!! This avc is allowed in the current policy
allow policykit_t sssd_var_lib_t:file read;

We allow it in Fedora.

Comment 3 Miroslav Grepl 2013-09-06 09:58:13 UTC
Well we allow it in the latest RHEL6.5.