Bug 2357154 - SELinux is preventing /usr/bin/pcscd from using the 'nnp_transition' accesses on a process.
Summary: SELinux is preventing /usr/bin/pcscd from using the 'nnp_transition' accesses...
Keywords:
Status: CLOSED DUPLICATE of bug 2355930
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:3c42f537383c156c33853d4f241...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-03 10:29 UTC by Mikhail
Modified: 2025-04-03 10:52 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-04-03 10:52:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.85 KB, text/plain)
2025-04-03 10:29 UTC, Mikhail
no flags Details
File: os_info (795 bytes, text/plain)
2025-04-03 10:29 UTC, Mikhail
no flags Details

Description Mikhail 2025-04-03 10:29:05 UTC
Description of problem:
SELinux is preventing /usr/bin/pcscd from using the 'nnp_transition' accesses on a process.

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

If you believe that pcscd should be allowed nnp_transition access on processes labeled pcscd_t 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:
# ausearch -c 'pcscd' --raw | audit2allow -M my-pcscd
# semodule -X 300 -i my-pcscd.pp

Additional Information:
Source Context                system_u:system_r:init_t:s0
Target Context                system_u:system_r:pcscd_t:s0
Target Objects                /lib64/ld-linux-x86-64.so.2 [ process2 ]
Source                        pcscd
Source Path                   /usr/bin/pcscd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           pcsc-lite-2.3.2-1.fc43.x86_64
Target RPM Packages           glibc-2.41.9000-7.fc43.x86_64
SELinux Policy RPM            selinux-policy-targeted-41.35-1.fc43.noarch
Local Policy RPM              selinux-policy-targeted-41.35-1.fc43.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.15.0-
                              0.rc0.20250401git08733088b566.8.fc43.x86_64+debug
                              #1 SMP PREEMPT_DYNAMIC Tue Apr 1 19:50:36 UTC 2025
                              x86_64
Alert Count                   9
First Seen                    2025-03-30 17:35:14 +05
Last Seen                     2025-04-03 03:20:43 +05
Local ID                      160b661e-47c8-4d85-b1e1-5e62601c1c13

Raw Audit Messages
type=AVC msg=audit(1743632443.215:200): avc:  denied  { nnp_transition } for  pid=2332 comm="(pcscd)" scontext=system_u:system_r:init_t:s0 tcontext=system_u:system_r:pcscd_t:s0 tclass=process2 permissive=1


type=SYSCALL msg=audit(1743632443.215:200): arch=x86_64 syscall=execve success=yes exit=0 a0=55a7bac49f60 a1=55a7bac4c3d0 a2=55a7ba89dfb0 a3=0 items=2 ppid=1 pid=2332 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=pcscd exe=/usr/bin/pcscd subj=system_u:system_r:pcscd_t:s0 key=(null)

type=CWD msg=audit(1743632443.215:200): cwd=/

type=PATH msg=audit(1743632443.215:200): item=0 name=/usr/bin/pcscd inode=120153638 dev=00:22 mode=0100755 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:pcscd_exec_t:s0 nametype=NORMAL cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0

type=PATH msg=audit(1743632443.215:200): item=1 name=/lib64/ld-linux-x86-64.so.2 inode=121194311 dev=00:22 mode=0100755 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:ld_so_t:s0 nametype=NORMAL cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0

Hash: pcscd,init_t,pcscd_t,process2,nnp_transition

Version-Release number of selected component:
selinux-policy-targeted-41.35-1.fc43.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing /usr/bin/pcscd from using the 'nnp_transition' accesses on a process.
package:        selinux-policy-targeted-41.35-1.fc43.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.15.0-0.rc0.20250401git08733088b566.8.fc43.x86_64+debug
component:      selinux-policy

Comment 1 Mikhail 2025-04-03 10:29:08 UTC
Created attachment 2083199 [details]
File: description

Comment 2 Mikhail 2025-04-03 10:29:09 UTC
Created attachment 2083200 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-04-03 10:52:51 UTC

*** This bug has been marked as a duplicate of bug 2355930 ***


Note You need to log in before you can comment on or make changes to this bug.