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 624405

Summary: SELinux is preventing /usr/sbin/pcscd "read" access on devices.
Product: Red Hat Enterprise Linux 6 Reporter: Jiri Kastner <jkastner>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED CURRENTRELEASE QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: urgent    
Version: 6.0CC: antillon.maurizio, jrieden, mmalik
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: selinux-policy-3.7.19-40.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-10 21:36:24 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 Jiri Kastner 2010-08-16 10:33:33 UTC
Summary:

SELinux is preventing /usr/sbin/pcscd "read" access on devices.

Detailed Description:

SELinux denied access requested by pcscd. It is not expected that this access is
required by pcscd 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:system_r:pcscd_t:s0
Target Context                system_u:object_r:sysfs_t:s0
Target Objects                devices [ dir ]
Source                        pcscd
Source Path                   /usr/sbin/pcscd
Port                          <Unknown>
Host                          dhcp-27-126.brq.redhat.com
Source RPM Packages           pcsc-lite-1.6.2-1.el6
Target RPM Packages           
Policy RPM                    selinux-policy-3.7.19-39.el6
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     dhcp-27-126.brq.redhat.com
Platform                      Linux dhcp-27-126.brq.redhat.com
                              2.6.32-63.el6.x86_64 #1 SMP Wed Aug 11 00:38:12
                              EDT 2010 x86_64 x86_64
Alert Count                   18
First Seen                    Mon 16 Aug 2010 12:11:09 PM CEST
Last Seen                     Mon 16 Aug 2010 12:11:56 PM CEST
Local ID                      98fadd07-e9b2-4caf-a53e-7a0cb307ecb7
Line Numbers                  

Raw Audit Messages            

node=dhcp-27-126.brq.redhat.com type=AVC msg=audit(1281953516.782:67558): avc:  denied  { read } for  pid=7422 comm="pcscd" name="devices" dev=sysfs ino=2468 scontext=unconfined_u:system_r:pcscd_t:s0 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir

node=dhcp-27-126.brq.redhat.com type=SYSCALL msg=audit(1281953516.782:67558): arch=c000003e syscall=2 success=no exit=-13 a0=31f0e09a46 a1=90800 a2=31f0e09060 a3=50 items=0 ppid=1 pid=7422 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=2 comm="pcscd" exe="/usr/sbin/pcscd" subj=unconfined_u:system_r:pcscd_t:s0 key=(null)

Comment 1 Jiri Kastner 2010-08-16 10:36:37 UTC
i have connected gnupg card

Comment 2 Jiri Kastner 2010-08-16 10:46:44 UTC
and gemalto pc twin reader

Comment 3 Daniel Walsh 2010-08-16 11:29:21 UTC
F14 has

dev_read_sysfs(pcscd_t)

Comment 5 Miroslav Grepl 2010-08-18 15:34:10 UTC
Fixed in selinux-policy-3.7.19-40.el6.noarch.

Comment 8 releng-rhel@redhat.com 2010-11-10 21:36:24 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.