Code Samples

CODE EXAMPLE 1-1 small spaceDriver Control Flow Code

CODE EXAMPLE 2-1 small spaceObtaining Information About File System Objects

CODE EXAMPLE 2-2 small spaceCollecting Information From a Running Process

CODE EXAMPLE 2-3 small spaceIdentifying Dynamically Loaded Applications

CODE EXAMPLE 2-4 small spaceDetermining if a Configuration File Is In Use

CODE EXAMPLE 2-5 small spaceDetermining Which Applications Use RPC

CODE EXAMPLE 2-6 small spaceValidating rusers Service

CODE EXAMPLE 2-7 small spaceAlternative Method for Determining Applications That Use RPC

CODE EXAMPLE 2-8 small spaceDetermining Which Ports Are Owned by Services or Applications

CODE EXAMPLE 2-9 small spaceDetermining Which Processes Are Using Files and Ports

CODE EXAMPLE 3-1 small spaceMoving a Patch File to /opt/SUNWjass/Patches Directory

CODE EXAMPLE 3-2 small spaceSample Command-Line Usage in Stand-alone Mode

CODE EXAMPLE 3-3 small spaceExecuting the Software in Stand-alone Mode

CODE EXAMPLE 3-4 small spaceSample -c Option Output

CODE EXAMPLE 3-5 small spaceSample -h Option Output

CODE EXAMPLE 3-6 small spaceSample -d driver Option Output

CODE EXAMPLE 3-7 small spaceSample -H Option Output

CODE EXAMPLE 3-8 small spaceSample -l Option Output

CODE EXAMPLE 3-9 small spaceSample -o Option Output

CODE EXAMPLE 3-10 small spaceSample -q Option Output

CODE EXAMPLE 4-1 small spaceSample Output of Files That Were Manually Changed

CODE EXAMPLE 4-2 small spaceSample Output of Runs Available to Undo

CODE EXAMPLE 4-3 small spaceSample Output of an Undo Run Processing Multiple Manifest File Entries

CODE EXAMPLE 4-4 small spaceSample Output of Undo Exception

CODE EXAMPLE 4-5 small spaceSample Output from Choosing Backup Option During Undo

CODE EXAMPLE 4-6 small spaceSample Output of Choosing Always Backup Option During Undo

CODE EXAMPLE 6-1 small spaceSample -h Option Output

CODE EXAMPLE 6-2 small spaceSample -o Option Output

CODE EXAMPLE 6-3 small spaceSample -q Option Output

CODE EXAMPLE 6-4 small spaceSample Output of Reporting Only Audit Failures

CODE EXAMPLE 6-5 small spaceSample Output of Auditing Log Entries

CODE EXAMPLE 6-6 small spaceSample Output of Audit Run

CODE EXAMPLE 7-1 small spaceAdding a Client to the JumpStart Server

CODE EXAMPLE 7-2 small spaceCreating a Profile

CODE EXAMPLE 7-3 small spaceSample Output of Modified Script

CODE EXAMPLE 7-4 small spaceChecking the rules File for Correctness

CODE EXAMPLE 7-5 small spaceSample Output for rules File

CODE EXAMPLE 7-6 small spaceSample of Incorrect Script

CODE EXAMPLE 7-7 small spaceSample of Correct Script

CODE EXAMPLE 7-8 small spaceSample Output of Modified xsp-firewall-hardening.driver

CODE EXAMPLE 7-9 small spaceAssessing a Security Configuration