Bug 2215522
| Summary: | avc: denied { getattr } for pid=18475 comm="pk12util" path="/run/pcscd/pcscd.comm" in STIG mode. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Sudhir Menon <sumenon> |
| Component: | ipa | Assignee: | Florence Blanc-Renaud <frenaud> |
| Status: | CLOSED MIGRATED | QA Contact: | ipa-qe |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.3 | CC: | rcritten, tscherf |
| Target Milestone: | rc | Keywords: | MigratedToJIRA |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-09-18 22:58:50 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: | |||
This AVC comes due to custodia not being able to access PCSC tokens. I think the real question is: do we want/need custodia to read from pcscd? pcscd is the smart card daemon and IPA server, and in particular custodia, doesn't use certs stored by it. The difference between where this AVC is seen and not seen is that in the STIG configuration pcscd is installed and running and the non-STIG it is not. So IMHO these are legitimate denials. To avoid them you can try stopping the pcscd service prior to install on all servers. Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug. This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there. Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information. To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer. You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like: "Bugzilla Bug" = 1234567 In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information. |
Description of problem: AVC denials are seen in STIG mode. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: -ipa-replica-promotion Actual results: time->Fri Jun 16 05:25:15 2023 node=master.testrealm.test type=PROCTITLE msg=audit(1686907515.354:137703): proctitle=2F7573722F62696E2F706B31327574696C002D640073716C3A2F6574632F706B692F706B692D746F6D6361742F616C696173002D6F002F746D702F746D7067776632786462632F6578706F72742E703132002D6E0073756273797374656D4365727420636572742D706B692D6361002D6B002F6574632F706B692F706B692D74 node=master.testrealm.test type=PATH msg=audit(1686907515.354:137703): item=0 name="/run/pcscd/pcscd.comm" inode=920 dev=00:18 mode=0140666 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:pcscd_var_run_t:s0 nametype=NORMAL cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0 node=master.testrealm.test type=CWD msg=audit(1686907515.354:137703): cwd="/" node=master.testrealm.test type=SYSCALL msg=audit(1686907515.354:137703): arch=c000003e syscall=262 success=no exit=-13 a0=ffffff9c a1=7f1086e13040 a2=7fff8c8a09b0 a3=0 items=1 ppid=19257 pid=19258 auid=4294967295 uid=17 gid=17 euid=17 suid=17 fsuid=17 egid=17 sgid=17 fsgid=17 tty=(none) ses=4294967295 comm="pk12util" exe="/usr/bin/pk12util" subj=system_u:system_r:ipa_custodia_t:s0 key=(null) node=master.testrealm.test type=AVC msg=audit(1686907515.354:137703): avc: denied { getattr } for pid=19258 comm="pk12util" path="/run/pcscd/pcscd.comm" dev="tmpfs" ino=920 scontext=system_u:system_r:ipa_custodia_t:s0 tcontext=system_u:object_r:pcscd_var_run_t:s0 tclass=sock_file permissive=0 Expected results: Fix selinux denial messages. Additional info: