Bug 1963162

Summary: SELinux is preventing NetworkManager from 'write' accesses on the fifo_file /var/tmp/dracut.818Oxc/systemd-cat.
Product: Red Hat Enterprise Linux 8 Reporter: Zdenek Pytela <zpytela>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: low Docs Contact:
Priority: low    
Version: 8.4CC: dwalsh, extras-qa, grepl.miroslav, koleesch, lvrabec, mmalik, philipp.raich, plautrba, ssekidde, vmojzis, zpytela
Target Milestone: betaKeywords: AutoVerified, Triaged
Target Release: 8.5Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard: abrt_hash:afb851bf52067b5be08ad4fab6111a088ea632f6bbaf6e342925a14cf8bb73d1;
Fixed In Version: selinux-policy-3.14.3-72.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 1892556 Environment:
Last Closed: 2021-11-09 19:43:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1892556    
Bug Blocks:    

Comment 1 Zdenek Pytela 2021-05-21 15:40:28 UTC
Needs to be backported:

commit 1006f9b5d1ab1bb186aaebd25fc062779e424e71
Author: Zdenek Pytela <zpytela>
Date:   Fri Feb 19 21:28:58 2021 +0100

    Dontaudit NetworkManager write to initrc_tmp_t pipes

    Resolves: rhbz#1892556

diff --git a/policy/modules/contrib/networkmanager.te b/policy/modules/contrib/networkmanager.te
index 8888c61c4..fda04557c 100644
--- a/policy/modules/contrib/networkmanager.te
+++ b/policy/modules/contrib/networkmanager.te
@@ -190,6 +190,7 @@ storage_getattr_fixed_disk_dev(NetworkManager_t)
 term_open_unallocated_ttys(NetworkManager_t)

 init_read_utmp(NetworkManager_t)
+init_dontaudit_write_initrc_tmp(NetworkManager_t)
 init_dontaudit_write_utmp(NetworkManager_t)
 init_domtrans_script(NetworkManager_t)
 init_signull_script(NetworkManager_t)

Comment 11 errata-xmlrpc 2021-11-09 19:43:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (selinux-policy bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4420