Bug 2054633
| Summary: | /usr/bin/net fails in FIPS mode | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Denis Karpelevich <dkarpele> |
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
| Status: | CLOSED WONTFIX | QA Contact: | Milos Malik <mmalik> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.6 | CC: | dkarpele, lvrabec, mmalik |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 8.9 | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-08-15 07:28: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: | |||
Denis, Does this problem still persist with all packages updated? Unfortunately, I was unable to reproduce the issue. After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened. |
Denis, Will you be able to gather additional details? In particular we need to know the krb5cc_0 file path and which service created it. Apart from the denial, does also any problem appear? Setting the system to SELinux permissive mode will possibly gather more denials: # setenforce 0 How to enable full auditing in the audit daemon: 1) Open the /etc/audit/rules.d/audit.rules file in an editor. 2) Remove the following line if it exists: -a task,never 3) Add the following line to the end of the file: -w /etc/shadow -p w 4) Restart the audit daemon: # service auditd restart 5) Re-run your scenario. 6) Collect AVC denials: # ausearch -i -m avc,user_avc,selinux_err,user_selinux_err -ts today This is the denial interpreted: ---- type=PROCTITLE msg=audit(02/14/22 14:17:10.491:2805) : proctitle=/usr/bin/net --configfile /var/cache/realmd/realmd-smb-conf.FD7QH1 -U ads leave type=AVC msg=audit(02/14/22 14:17:10.491:2805) : avc: denied { unlink } for pid=147002 comm=net name=krb5cc_0 dev="vda3" ino=327362 scontext=system_u:system_r:samba_net_t:s0 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=file permissive=0 type=SYSCALL msg=audit(02/14/22 14:17:10.491:2805) : arch=x86_64 syscall=unlink success=no exit=EACCES(Permission denied) a0=0x555569447de0 a1=0x0 a2=0x0 a3=0x0 items=0 ppid=146998 pid=147002 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=net exe=/usr/bin/net subj=system_u:system_r:samba_net_t:s0 key=(null)type=PROCTITLE msg=audit(02/14/22 14:17:10.491:2805) : proctitle=/usr/bin/net --configfile /var/cache/realmd/realmd-smb-conf.FD7QH1 -U ads leave type=AVC msg=audit(02/14/22 14:17:10.491:2805) : avc: denied { unlink } for pid=147002 comm=net name=krb5cc_0 dev="vda3" ino=327362 scontext=system_u:system_r:samba_net_t:s0 tcontext=unconfined_u:object_r:user_tmp_t:s0 tclass=file permissive=0 type=SYSCALL msg=audit(02/14/22 14:17:10.491:2805) : arch=x86_64 syscall=unlink success=no exit=EACCES(Permission denied) a0=0x555569447de0 a1=0x0 a2=0x0 a3=0x0 items=0 ppid=146998 pid=147002 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=net exe=/usr/bin/net subj=system_u:system_r:samba_net_t:s0 key=(null)