Bug 2231732

Summary: SELinux is preventing ipa-server-guar from 'search' accesses on the directory net.
Product: [Fedora] Fedora Reporter: James <james>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: dwalsh, james, lvrabec, mmalik, nknazeko, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:b527f2c07b3cc3cc61c6975dcabd83feba12d783c864ab5730434d8705a5116e;VARIANT_ID=server;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 James 2023-08-13 16:41:40 UTC
Description of problem:
SELinux is preventing ipa-server-guar from 'search' accesses on the directory net.

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

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

Additional Information:
Source Context                system_u:system_r:certmonger_t:s0
Target Context                system_u:object_r:sysctl_net_t:s0
Target Objects                net [ dir ]
Source                        ipa-server-guar
Source Path                   ipa-server-guar
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.24-1.fc38.noarch
Local Policy RPM              selinux-policy-targeted-38.24-1.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.4.9-200.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Tue Aug 8 21:21:11 UTC 2023 x86_64
Alert Count                   1476
First Seen                    2023-07-13 20:09:00 BST
Last Seen                     2023-08-12 13:56:24 BST
Local ID                      f3e3f090-022f-45d2-9c11-2205ae4d34dc

Raw Audit Messages
type=AVC msg=audit(1691844984.141:222): avc:  denied  { search } for  pid=1513 comm="dogtag-ipa-ca-r" name="net" dev="proc" ino=2356 scontext=system_u:system_r:certmonger_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir permissive=0


Hash: ipa-server-guar,certmonger_t,sysctl_net_t,dir,search

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

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing ipa-server-guar from 'search' accesses on the directory net.
package:        selinux-policy-targeted-38.24-1.fc38.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.4.9-200.fc38.x86_64
component:      selinux-policy

Comment 1 James 2023-08-13 16:41:43 UTC
Created attachment 1983200 [details]
File: description

Comment 2 James 2023-08-13 16:41:44 UTC
Created attachment 1983201 [details]
File: os_info