Bug 2221346 - SELinux is preventing dnsdomainname from 'getattr' accesses on the file /proc/sys/net/ipv6/conf/all/disable_ipv6.
Summary: SELinux is preventing dnsdomainname from 'getattr' accesses on the file /proc...
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:dfc66d124846c528a933f698031...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-08 06:07 UTC by Reginald Johnson
Modified: 2023-07-24 22:27 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-24 22:27:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.98 KB, text/plain)
2023-07-08 06:07 UTC, Reginald Johnson
no flags Details
File: os_info (709 bytes, text/plain)
2023-07-08 06:07 UTC, Reginald Johnson
no flags Details

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 ***


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