JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Solaris Trusted Extensions Reference Manual
search filter icon
search icon

Document Information

Preface

Introduction

User Commands

System Administration Commands

add_allocatable(1M)

atohexlabel(1M)

chk_encodings(1M)

hextoalabel(1M)

remove_allocatable(1M)

smtnrhdb(1M)

smtnrhtp(1M)

smtnzonecfg(1M)

tnchkdb(1M)

tnctl(1M)

tnd(1M)

tninfo(1M)

updatehome(1M)

System Calls

Trusted Extensions Library

X Library Extensions

File Formats

Standards, Environments, and Macros

Index

chk_encodings

- check the label encodings file syntax

Synopsis

/usr/sbin/chk_encodings [-a] [-c maxclass] [pathname]

Interface Level

This file is part of the Defense Intelligence Agency (DIA) Mandatory Access Control (MAC) policy. This file might not be applicable to other MAC policies that might be developed for future releases of Solaris Trusted Extensions software.

Description

chk_encodings checks the syntax of the label-encodings file that is specified by pathname. With the -a option, chk_encodings also prints a semantic analysis of the label-encodings file that is specified by pathname. If pathname is not specified, chk_encodings checks and analyzes the /etc/security/tsol/label_encodings file.

If label-encodings file analysis was requested, whatever analysis can be provided is written to the standard output file even if errors were found.

Options

-a

Provide a semantic analysis of the label encodings file.

-c maxclass

Accept a maximum classification value of maxclass (default 255) in the label encodings file CLASSIFICATIONS section.

Errors

When successful, chk_encodings returns an exit status of 0 (true) and writes to the standard output file a confirmation that no errors were found in pathname. Otherwise, chk_encodings returns an exit status of nonzero (false) and writes an error diagnostic to the standard output file.

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
SUNWtsu
Stability Level
Mixed. See NOTES below

Files

/etc/security/tsol/label_encodings

The label encodings file contains the classification names, words, constraints, and values for the defined labels of this system.

See Also

label_encodings(4), attributes(5), labels(5)

How to Analyze and Verify the label_encodings File in Solaris Trusted Extensions Label Administration

Notes

The stability of the syntactic checking is considered standard and controlled by DIA document DDS-2600-6216-93, Compartmented Mode Workstation Labeling: Encodings Format, September 1993. The stability of the command output is undefined. The stability of the command invocation is stable for systems that implement the DIA MAC policy.