Bug 786219 - CA instance fails to restart on instance creation
Summary: CA instance fails to restart on instance creation
Keywords:
Status: CLOSED EOL
Alias: None
Product: Dogtag Certificate System
Classification: Retired
Component: SELinux
Version: 9.0
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Ade Lee
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks: 530474
TreeView+ depends on / blocked
 
Reported: 2012-01-31 18:27 UTC by Kashyap Chamarthy
Modified: 2020-03-27 18:34 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 18:34:03 UTC


Attachments (Terms of Use)

Description Kashyap Chamarthy 2012-01-31 18:27:50 UTC
Description of problem:
--------------------
[root@f16-pki ~]# cat /var/log/audit/audit.log | audit2allow -R

require {
	type ephemeral_port_t;
	type pki_ca_t;
	class tcp_socket name_connect;
}

#============= pki_ca_t ==============
allow pki_ca_t ephemeral_port_t:tcp_socket name_connect;
corenet_tcp_bind_generic_port(pki_ca_t)
files_manage_urandom_seed(pki_ca_t)
--------------------

Version-Release number of selected component (if applicable):
--------------------
[root@f16-pki ~]# rpm -q pki-selinux pki-ca
pki-selinux-9.0.17-1.fc16.noarch
pki-ca-9.0.17-1.fc16.noarch
[root@f16-pki ~]# 
--------------------

How reproducible:
All the time 

Steps to Reproduce:
1/ Run the below to create a CA instance:
###########################
pkicreate -pki_instance_root=/var/lib        \
          -pki_instance_name=pki-ca          \
          -subsystem_type=ca                 \
          -agent_secure_port=9443            \
          -ee_secure_port=9444               \
          -ee_secure_client_auth_port=9446   \
          -admin_secure_port=9445            \
          -unsecure_port=9180                \
          -tomcat_server_port=9701           \
          -user=pkiuser                      \
          -group=pkiuser                     \
          -redirect conf=/etc/pki-ca         \
          -redirect logs=/var/log/pki-ca     \
          -verbose
###########################
  
Actual results:
###########################
[debug] run_command(/bin/systemctl restart pki-cad)
[error] FAILED run_command("/bin/systemctl restart pki-cad"), exit status=1 output="Job failed. See system logs and 'systemctl status' for details."
Before proceeding with the configuration, make sure 
the firewall settings of this machine permit proper 
access to this subsystem. 
###########################


Expected results:
CA instance restart should happen successfully.

Workaround: Putting SELinux in permissive lets the CA instance restart successfully


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