Bug 2131031 - SELinux is preventing java from create access on the directory .pki
Summary: SELinux is preventing java from create access on the directory .pki
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Candlepin
Version: 6.11.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Barnaby Court
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-29 18:04 UTC by Sonam
Modified: 2023-08-10 12:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sonam 2022-09-29 18:04:34 UTC
Description of problem:

SELinux AVC during installation on tomcat user /usr/share/tomcat/.pki directory. The Installation finishes successfully and also after the installation the directory /usr/share/tomcat/.pki. does also not exists

Version-Release number of selected component (if applicable):

Satellite 6.11.2


How reproducible: The alert is reproducible when the installer is re-run:


Steps to Reproduce:

1. Re-run the below command to reproduce the issue:
   # satellite-installer --verbose --verbose-log-level=info


Actual results: Every time the satellite installer is run an SELinux violation is reported 


Expected results: No SELinux violation


Additional info:


$ sudo grep sealert /var/log/messages | grep -v 'Activating service'
Sep 16 07:21:01 li-lc-2750 setroubleshoot[103614]: SELinux is preventing /usr/lib/jvm/java-11-openjdk-11.0.16.1.1-1.el8_6.x86_64/bin/java from create access on the directory /usr/share/tomcat/.pki. For complete SELinux messages run: sealert -l 79f06cd8-7742-46e6-8384-12d2ca6c26d4
Sep 16 07:38:18 li-lc-2750 setroubleshoot[3926]: SELinux is preventing /usr/lib/jvm/java-11-openjdk-11.0.16.1.1-1.el8_6.x86_64/bin/java from create access on the directory .pki. For complete SELinux messages run: sealert -l 79f06cd8-7742-46e6-8384-12d2ca6c26d4

type=AVC msg=audit(09/16/2022 07:20:54.762:590700) : avc:  denied  { create } for  pid=103466 comm=java name=.pki scontext=system_u:system_r:tomcat_t:s0 tcontext=system_u:object_r:usr_t:s0 tclass=dir permissive=0


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