HP-UX Secure Resource Partitions (SRP) A.02.01 Administrator's Guide

53
8 Using the tomcat Template
This chapter describes how to use the tomcat template to add configuration data for hosting an HP-
UX Tomcat servlet engine in an SRP compartment. You can also use the tomcat template to delete or
modify the tomcat template data for a compartment.
This chapter addresses the following topics:
8.1 Adding the tomcat Template to an SRP Compartment
8.2 Replacing or Deleting Tomcat SRP Data
8.1 Adding the tomcat Template to an SRP Compartment
To use the tomcat template, you must create a base SRP compartment first, then use the srp -add
command to add the tomcat template to the compartment.
For example:
# srp -add mySRP # create a base SRP compartment
# srp -add mySRP -template tomcat
The syntax for adding the tomcat template to an SRP compartment is as follows:
srp -a[dd] compartment_name -t[emplate] tomcat [-s[ervice] service[,service]...]
Where:
compartment_name
Specifies the name of an existing SRP compartment.
service
Specifies the name of the service to configure. The following services are
valid with the tomcat template:
cmpt
ipfilter
provision
If you do not specify any services in the command line, srp prompts you
for the services you want to apply and displays a list of the default services
that are valid with the tomcat template. If you are using the factory-
configured default services, the only valid default service is cmpt,
provision.
The input data for these services and the data configured are described in
the sections that follow. If SRP uses input data for multiple services, the
srp utility prompts you for the data once and reuses the value.
8.1.1 The cmpt Service
The cmpt service for the tomcat template configures Security Containment file system rules to allow
the compartment to access the specified Tomcat directories.
8.1.1.1 Input Data
SRP prompts for the following data. You can also specify a variable name and value in the command
line, as described in 13.1 Creating an SRP Compartment or Adding Data to a Compartment.
Tomcat Web Server
Suite Version
The HP-UX Webserver Suite version of Tomcat Servlet Engine to be used to
configure the template