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 2054633

Summary: /usr/bin/net fails in FIPS mode
Product: Red Hat Enterprise Linux 8 Reporter: Denis Karpelevich <dkarpele>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED WONTFIX QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.6CC: dkarpele, lvrabec, mmalik
Target Milestone: rcKeywords: Triaged
Target Release: 8.9Flags: pm-rhel: mirror+
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:

Comment 1 Zdenek Pytela 2022-02-21 13:05:31 UTC
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)

Comment 3 Zdenek Pytela 2022-12-09 14:59:54 UTC
Denis,

Does this problem still persist with all packages updated?
Unfortunately, I was unable to reproduce the issue.

Comment 11 RHEL Program Management 2023-08-15 07:28:26 UTC
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.