HP-UX Secure Resource Partitions (SRP) A.02.00 Administrator's Guide
//etc/rc.config.d/srpconf: START_SRP[1]=1
Compartment: myCmpt Template: base Service: prm
----------------------------------------------------------------------
PRM Configuration (/etc/prmconf):
@tag-start compartment="myCmpt" template="base" service="prm" id="1" ;
myCmpt:3:10::
#!PRM_MEM:myCmpt:10::::
#!SCOMP:myCmpt:myCmpt
Compartment: myCmpt Template: base Service: network
----------------------------------------------------------------------
Compartment Configuration (/etc/cmpt/myCmpt.rules):
@tag-start compartment="myCmpt" template="base" service="network" id="1" ;
// owns the IP address
interface 192.0.2.1
Compartment: myCmpt Template: base Service: network
----------------------------------------------------------------------
IP Address Configuration (/etc/rc.config.d/netconf):
//etc/rc.config.d/netconf: INTERFACE_NAME[2]="lan1:1"
//etc/rc.config.d/netconf: IP_ADDRESS[2]="192.0.2.1"
//etc/rc.config.d/netconf: SUBNET_MASK[2]=""
//etc/rc.config.d/netconf: INTERFACE_STATE[2]="down"
//etc/rc.config.d/netconf: BROADCAST_ADDRESS[2]=""
//etc/rc.config.d/netconf: DHCP_ENABLE[2]=0
//etc/rc.config.d/netconf: INTERFACE_MODULES[2]=""
//etc/rc.config.d/netconf: ROUTE_DESTINATION[1]=default
//etc/rc.config.d/netconf: ROUTE_MASK[1]=""
//etc/rc.config.d/netconf: ROUTE_GATEWAY[1]="192.0.2.1"
//etc/rc.config.d/netconf: ROUTE_COUNT[1]=0
//etc/rc.config.d/netconf: ROUTE_ARGS[1]=""
//etc/rc.config.d/netconf: ROUTE_SOURCE[1]="192.0.2.1"
The base.srp_incl File
The contents of the /opt/hpsrp/etc/cmpt/base.srp_incl file are as follows:
/*
**********************************************************************
* SRP base shared rules include file:
*
* This file contains compartments(4) rules that are shared by all
* SRP compartments that have applied the "base" template.
*
**********************************************************************
*/
/*
**********************************************************************
* privileges
**********************************************************************
*/
disallowed privileges none
/*
**********************************************************************
* ipc/fifo/uxsock to init compatment
**********************************************************************
*/
90 Configuration Example