Bug 2330049 - SELinux is preventing anaconda-genera from 'write' accesses on the sock_file /var/lib/sss/pipes/nss.
Summary: SELinux is preventing anaconda-genera from 'write' accesses on the sock_file ...
Keywords:
Status: CLOSED DUPLICATE of bug 2325253
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 41
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8dd5936e4bcb2436adafc9f4e03...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-02 21:06 UTC by Matthias Andree
Modified: 2025-03-04 14:55 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-03-04 14:55:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.09 KB, text/plain)
2024-12-02 21:06 UTC, Matthias Andree
no flags Details
File: os_info (754 bytes, text/plain)
2024-12-02 21:06 UTC, Matthias Andree
no flags Details

Description Matthias Andree 2024-12-02 21:06:23 UTC
Description of problem:
This happened when I disabled nvidia-persistenced with systemctl disable and then systemctl stop.
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.10-300.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Sat Nov 23 00:51:20 UTC 2024
                              x86_64
Alert Count                   2
First Seen                    2024-12-02 22:02:56 CET
Last Seen                     2024-12-02 22:02:58 CET
Local ID                      520b1e3b-fc32-4870-a81f-e3a9e1969b13

Raw Audit Messages
type=AVC msg=audit(1733173378.863:1011): avc:  denied  { write } for  pid=85914 comm="anaconda-genera" name="nss" dev="dm-1" ino=916646 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.
package:        selinux-policy-targeted-41.26-1.fc41.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.11.10-300.fc41.x86_64
comment:        This happened when I disabled nvidia-persistenced with systemctl disable and then systemctl stop.
component:      selinux-policy

Comment 1 Matthias Andree 2024-12-02 21:06:25 UTC
Created attachment 2060877 [details]
File: description

Comment 2 Matthias Andree 2024-12-02 21:06:26 UTC
Created attachment 2060878 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-03-04 14:55:13 UTC

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


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