Bug 2221346

Summary: SELinux is preventing dnsdomainname from 'getattr' accesses on the file /proc/sys/net/ipv6/conf/all/disable_ipv6.
Product: [Fedora] Fedora Reporter: Reginald Johnson <recjohnson>
Component: smartmontoolsAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: mhlavink, recjohnson, tsmetana
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:dfc66d124846c528a933f698031394851fe33de26687001dbd1a45a85ce4714e;VARIANT_ID=matecompiz;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-24 22:27:57 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: description
none
File: os_info none

Description Reginald Johnson 2023-07-08 06:07:38 UTC
Description of problem:
SELinux is preventing dnsdomainname from 'getattr' accesses on the file /proc/sys/net/ipv6/conf/all/disable_ipv6.

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

If you believe that dnsdomainname should be allowed getattr access on the disable_ipv6 file 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                /proc/sys/net/ipv6/conf/all/disable_ipv6 [ file ]
Source                        dnsdomainname
Source Path                   dnsdomainname
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.20-1.fc38.noarch
Local Policy RPM              smartmontools-selinux-7.3-5.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.3.11-200.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Sun Jul 2 13:17:31 UTC 2023 x86_64
Alert Count                   1
First Seen                    2023-07-08 11:36:01 IST
Last Seen                     2023-07-08 11:36:01 IST
Local ID                      02f4b014-b08c-41f5-88c7-becdad79c47e

Raw Audit Messages
type=AVC msg=audit(1688796361.2:101): avc:  denied  { getattr } for  pid=1148 comm="dnsdomainname" path="/proc/sys/net/ipv6/conf/all/disable_ipv6" dev="proc" ino=25190 scontext=system_u:system_r:fsdaemon_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=file permissive=1


Hash: dnsdomainname,fsdaemon_t,sysctl_net_t,file,getattr

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

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing dnsdomainname from 'getattr' accesses on the file /proc/sys/net/ipv6/conf/all/disable_ipv6.
package:        selinux-policy-targeted-38.20-1.fc38.noarch
component:      smartmontools
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.3.11-200.fc38.x86_64
component:      smartmontools

Comment 1 Reginald Johnson 2023-07-08 06:07:41 UTC
Created attachment 1974623 [details]
File: description

Comment 2 Reginald Johnson 2023-07-08 06:07:43 UTC
Created attachment 1974624 [details]
File: os_info

Comment 3 Michal Hlavinka 2023-07-24 22:27:57 UTC

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