Bug 2328882

Summary: SELinux is preventing anaconda-genera from 'write' accesses on the sock_file /var/lib/sss/pipes/nss.
Product: [Fedora] Fedora Reporter: Matthias Andree <matthias.andree>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 41CC: david, dwalsh, lvrabec, matthias.andree, mmalik, omosnacek, pkoncity, vmojzis, y9t7sypezp, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:8dd5936e4bcb2436adafc9f4e03695e7279be2a692dc5bf2265ff0c623bcb0d8;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-03-04 14:54:51 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:
Attachments:
Description Flags
File: os_info
none
File: description none

Description Matthias Andree 2024-11-26 09:00:10 UTC
Description of problem:
during dnf upgrade
SELinux is preventing anaconda-genera from 'write' accesses on the sock_file /var/lib/sss/pipes/nss.

*****  Plugin catchall (100. confidence) suggests   **************************

Wenn Sie denken, dass es anaconda-genera standardmäßig erlaubt sein sollte, write Zugriff auf nss sock_file zu erhalten.
Then sie sollten dies als Fehler melden.
Um diesen Zugriff zu erlauben, können Sie ein lokales Richtlinien-Modul erstellen.
Do
zugriff jetzt erlauben, indem Sie die nachfolgenden Befehle ausführen:
# ausearch -c 'anaconda-genera' --raw | audit2allow -M my-anacondagenera
# semodule -X 300 -i my-anacondagenera.pp

Additional Information:
Source Context                system_u:system_r:anaconda_generator_t:s0
Target Context                system_u:object_r:sssd_var_lib_t:s0
Target Objects                /var/lib/sss/pipes/nss [ sock_file ]
Source                        anaconda-genera
Source Path                   anaconda-genera
Port                          <Unbekannt>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.26-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.26-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.11.8-300.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Nov 14 20:37:39 UTC 2024
                              x86_64
Alert Count                   3
First Seen                    2024-11-23 19:22:20 CET
Last Seen                     2024-11-26 09:58:26 CET
Local ID                      2aad7a67-7855-499c-b42d-5e4bfe9a3747

Raw Audit Messages
type=AVC msg=audit(1732611506.96:393): avc:  denied  { write } for  pid=9036 comm="anaconda-genera" name="nss" dev="dm-1" ino=2752603 scontext=system_u:system_r:anaconda_generator_t:s0 tcontext=system_u:object_r:sssd_var_lib_t:s0 tclass=sock_file permissive=1


Hash: anaconda-genera,anaconda_generator_t,sssd_var_lib_t,sock_file,write

Version-Release number of selected component:
selinux-policy-targeted-41.26-1.fc41.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing anaconda-genera from 'write' accesses on the sock_file /var/lib/sss/pipes/nss.
kernel:         6.11.8-300.fc41.x86_64
type:           libreport
comment:        during dnf upgrade
package:        selinux-policy-targeted-41.26-1.fc41.noarch
hashmarkername: setroubleshoot
component:      selinux-policy
component:      selinux-policy

Comment 1 Matthias Andree 2024-11-26 09:00:12 UTC
Created attachment 2059847 [details]
File: os_info

Comment 2 Matthias Andree 2024-11-26 09:00:14 UTC
Created attachment 2059848 [details]
File: description

Comment 3 Steve 2024-11-27 19:22:02 UTC
This appears to be a duplicate of Bug 2325253.

The comments starting at Bug 2325253, Comment 20, might be helpful.

Comment 4 Zdenek Pytela 2025-03-04 14:54:51 UTC

*** This bug has been marked as a duplicate of bug 2325253 ***