Bug 2054633 - /usr/bin/net fails in FIPS mode
Summary: /usr/bin/net fails in FIPS mode
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: selinux-policy
Version: 8.6
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: 8.9
Assignee: Zdenek Pytela
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-15 11:48 UTC by Denis Karpelevich
Modified: 2023-08-15 07:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-15 07:28:26 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-112321 0 None None None 2022-02-15 11:55:24 UTC

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.


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