Bug 2243194 - SELinux is preventing hostname from 'search' accesses on the directory net.
Summary: SELinux is preventing hostname from 'search' accesses on the directory net.
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: cockpit
Version: 38
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: 2023-10-11 08:11 UTC by Michael
Modified: 2024-07-11 07:23 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-05-31 08:41:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.82 KB, text/plain)
2023-10-11 08:11 UTC, Michael
no flags Details
File: os_info (734 bytes, text/plain)
2023-10-11 08:11 UTC, Michael
no flags Details

Description Michael 2023-10-11 08:11:29 UTC
Description of problem:
SELinux is preventing hostname from 'search' accesses on the directory net.

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

If you believe that hostname should be allowed search access on the net directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'hostname' --raw | audit2allow -M my-hostname
# semodule -X 300 -i my-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                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.29-1.fc38.noarch
Local Policy RPM              cockpit-ws-301-1.fc38.x86_64
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.4.15-200.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Sep 7 00:25:01 UTC 2023 x86_64
Alert Count                   2
First Seen                    2023-10-11 10:09:59 CEST
Last Seen                     2023-10-11 10:09:59 CEST
Local ID                      f2f0dcfd-cb5f-4c28-a1c1-bf3b0edf8e55

Raw Audit Messages
type=AVC msg=audit(1697011799.245:110): avc:  denied  { search } for  pid=1044 comm="hostname" name="net" dev="proc" ino=15817 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-38.29-1.fc38.noarch

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing hostname from 'search' accesses on the directory net.
package:        selinux-policy-targeted-38.29-1.fc38.noarch
component:      cockpit
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.4.15-200.fc38.x86_64
component:      cockpit



Potential duplicate: bug 2143070

Comment 1 Michael 2023-10-11 08:11:31 UTC
Created attachment 1993436 [details]
File: description

Comment 2 Michael 2023-10-11 08:11:32 UTC
Created attachment 1993437 [details]
File: os_info

Comment 3 Robert McAllister 2023-12-18 17:32:43 UTC
system was rebooted


kernel:         6.6.4-100.fc38.x86_64
reason:         SELinux is preventing hostname from 'search' accesses on the directory net.
hashmarkername: setroubleshoot
comment:        system was rebooted
type:           libreport
package:        selinux-policy-targeted-38.30-1.fc38.noarch

Comment 4 Martin Pitt 2023-12-18 18:27:36 UTC
Weird.. this bug was reported over two months ago, but I only got the bugzilla email now.

This is a duplicate of bug #2143070, but it never got enough information to become reproducible or at least understandable.

Please tell me a bit about the history of your machine and the context of this violation:
 * Was this machine upgraded from an earlier Fedora (which one)?
 * How often does it get rebooted?
 * How often do you get this violation error? On each reboot, or was it an one-off after an upgrade?

Thanks!

Comment 5 Aoife Moloney 2024-05-31 08:41:54 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 6 Michael 2024-07-11 07:23:51 UTC
Not reproducible any more


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