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

96
SRP init service:
//etc/rc.config.d/srpconf: SRP_NAME[1]="mySRP"
//etc/rc.config.d/srpconf: START_SRP[1]=1
Compartment: mySRP Template: base Service: prm
----------------------------------------------------------------------
PRM Configuration (/etc/prmconf):
@tag-start compartment="mySRP" template="base" service="prm" id="1" ;
mySRP:3:10::
#!PRM_MEM:mySRP:10::::
#!SCOMP:mySRP:mySRP
Compartment: mySRP Template: base Service: network
----------------------------------------------------------------------
Compartment Configuration (/etc/cmpt/mySRP.rules):
@tag-start compartment="mySRP" template="base" service="network" id="1" ;
// owns the IP address
interface 192.0.2.1
Compartment: mySRP 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 compartment rules file (/etc/cmpt/mySRP.rules) for this example, like all SRP compartment
rule files, includes a reference to the /opt/hpsrp/etc/cmpt/base.srp_incl file. The contents
of this file are as follows:
/*
**********************************************************************
* Copyright (c) 2008 Hewlett-Packard Development Company L.P.
*
* 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.