Bug 2144606 - SELinux is preventing hostname from 'search' accesses on the carpeta net.
Summary: SELinux is preventing hostname from 'search' accesses on the carpeta net.
Keywords:
Status: CLOSED DUPLICATE of bug 2143070
Alias: None
Product: Fedora
Classification: Fedora
Component: cockpit
Version: 37
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Pitt
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:7a2a32e3cadd922dea67f79c4bf...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-11-21 20:33 UTC by Francisco de la Peña
Modified: 2023-06-06 11:00 UTC (History)
15 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-06-06 11:00:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Francisco de la Peña 2022-11-21 20:33:08 UTC
Description of problem:
SELinux is preventing hostname from 'search' accesses on the carpeta net.

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

Si cree que de manera predeterminada se debería permitir a hostname el acceso search sobre  net directory.     
Then debería reportar esto como un error.
Puede generar un módulo de política local para permitir este acceso.
Do
permita el acceso temporalmente ejecutando:
# ausearch -c 'hostname' --raw | audit2allow -M mi-hostname
# semodule -X 300 -i mi-hostname.pp

Additional Information:
Source Context                system_u:system_r:cockpit_ws_t:s0
Target Context                system_u:object_r:sysctl_net_t:s0
Target Objects                net [ dir ]
Source                        hostname
Source Path                   hostname
Port                          <Desconocido>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-37.14-1.fc37.noarch
Local Policy RPM              selinux-policy-targeted-37.14-1.fc37.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.0.8-300.fc37.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Fri Nov 11 15:09:04 UTC 2022
                              x86_64 x86_64
Alert Count                   2
First Seen                    2022-11-21 13:25:28 CST
Last Seen                     2022-11-21 13:25:28 CST
Local ID                      48a760a1-64fe-41ab-89c2-03369050d17d

Raw Audit Messages
type=AVC msg=audit(1669058728.974:236): avc:  denied  { search } for  pid=1284 comm="hostname" name="net" dev="proc" ino=1443 scontext=system_u:system_r:cockpit_ws_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir permissive=0


Hash: hostname,cockpit_ws_t,sysctl_net_t,dir,search

Version-Release number of selected component:
selinux-policy-targeted-37.14-1.fc37.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.17.4
hashmarkername: setroubleshoot
kernel:         6.0.8-300.fc37.x86_64
type:           libreport

Comment 1 Martin Pitt 2023-06-06 11:00:20 UTC

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


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