Bug 2189938 - SELinux is preventing dnsdomainname from 'search' accesses on the directory net.
Summary: SELinux is preventing dnsdomainname from 'search' accesses on the directory net.
Keywords:
Status: CLOSED DUPLICATE of bug 2139199
Alias: None
Product: Fedora
Classification: Fedora
Component: smartmontools
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michal Hlavinka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6a8cc76373456abcf4eafcc1558...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-26 13:56 UTC by redhat.anv0a
Modified: 2023-07-18 20:55 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-18 20:55:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.90 KB, text/plain)
2023-04-26 13:56 UTC, redhat.anv0a
no flags Details
File: os_info (699 bytes, text/plain)
2023-04-26 13:56 UTC, redhat.anv0a
no flags Details

Description redhat.anv0a 2023-04-26 13:56:43 UTC
Description of problem:
Happens on every boot after upgrading from f37 (KDE Spin) -> f38
SELinux is preventing dnsdomainname from 'search' accesses on the directory net.

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

If you believe that dnsdomainname 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 'dnsdomainname' --raw | audit2allow -M my-dnsdomainname
# semodule -X 300 -i my-dnsdomainname.pp

Additional Information:
Source Context                system_u:system_r:fsdaemon_t:s0
Target Context                system_u:object_r:sysctl_net_t:s0
Target Objects                net [ dir ]
Source                        dnsdomainname
Source Path                   dnsdomainname
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.11-1.fc38.noarch
Local Policy RPM              smartmontools-selinux-7.3-5.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.2.12-300.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Apr 20 23:05:25 UTC 2023
                              x86_64
Alert Count                   4
First Seen                    2023-04-26 09:43:16 EDT
Last Seen                     2023-04-26 09:43:16 EDT
Local ID                      ad3673dd-0330-4b4a-9a6f-3017c24b5592

Raw Audit Messages
type=AVC msg=audit(1682516596.61:121): avc:  denied  { search } for  pid=1517 comm="dnsdomainname" name="net" dev="proc" ino=18561 scontext=system_u:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir permissive=0


Hash: dnsdomainname,fsdaemon_t,sysctl_net_t,dir,search

Version-Release number of selected component:
selinux-policy-targeted-38.11-1.fc38.noarch

Additional info:
reporter:       libreport-2.17.9
reason:         SELinux is preventing dnsdomainname from 'search' accesses on the directory net.
package:        selinux-policy-targeted-38.11-1.fc38.noarch
component:      smartmontools
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.2.12-300.fc38.x86_64
comment:        Happens on every boot after upgrading from f37 (KDE Spin) -> f38
component:      smartmontools



Potential duplicate: bug 2139199

Comment 1 redhat.anv0a 2023-04-26 13:56:45 UTC
Created attachment 1960146 [details]
File: description

Comment 2 redhat.anv0a 2023-04-26 13:56:46 UTC
Created attachment 1960147 [details]
File: os_info

Comment 3 Kevin Serrano 2023-05-01 23:27:26 UTC
...........


reason:         SELinux is preventing dnsdomainname from 'search' accesses on the directory net.
package:        selinux-policy-targeted-38.12-1.fc38.noarch
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.2.13-300.fc38.x86_64
comment:        ...........

Comment 4 b.gatessucks 2023-05-19 20:33:10 UTC
Booted
Logged in with KDE


type:           libreport
reason:         SELinux is preventing dnsdomainname from 'search' accesses on the directory net.
package:        selinux-policy-targeted-38.12-1.fc38.noarch
hashmarkername: setroubleshoot
kernel:         6.2.15-300.fc38.x86_64

Comment 5 Reginald Johnson 2023-06-28 05:41:20 UTC
Came up as soon as I logged in


reason:         SELinux is preventing dnsdomainname from 'search' accesses on the directory net.
package:        selinux-policy-targeted-38.17-1.fc38.noarch
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.3.8-200.fc38.x86_64
comment:        Came up as soon as I logged in

Comment 6 Reginald Johnson 2023-07-03 16:54:09 UTC
Happens on every boot


reason:         SELinux is preventing dnsdomainname from 'search' accesses on the directory net.
package:        selinux-policy-targeted-38.20-1.fc38.noarch
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.3.8-200.fc38.x86_64
comment:        Happens on every boot

Comment 7 Michal Hlavinka 2023-07-18 20:55:28 UTC

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


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