2 .\" Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH TNCHKDB 1M "Jul 20, 2007"
8 tnchkdb \- check file syntax of trusted network databases
12 \fB/usr/sbin/tnchkdb\fR [\fB-h\fR \fIpath\fR] [\fB-t\fR \fIpath\fR] [\fB-z\fR \fIpath\fR]
18 \fBtnchkdb\fR checks the syntax of the \fBtnrhtp\fR, \fBtnrhdb\fR, and
19 \fBtnzonecfg\fR databases. By default, the \fIpath\fR for each file is:
24 \fB/etc/security/tsol/tnrhtp\fR
30 \fB/etc/security/tsol/tnrhdb\fR
36 \fB/etc/security/tsol/tnzonecfg\fR
40 You can specify an alternate path for any or all of the files by specifying
41 that path on the command line by using the \fB-h\fR (\fBtnrhdb\fR), \fB-t\fR
42 (\fBtnrhtp\fR) and \fB-z\fR (\fBtnzonecfg\fR) options. The options are useful
43 when testing a set of modified files before installing the files as new system
47 All three database files are checked for integrity. \fBtnchkdb\fR returns an
48 exit status of \fB0\fR if all of the files are syntactically and, to the extent
49 possible, semantically correct. If one or more files have errors, then an exit
50 status of \fB1\fR is returned. If there are command line problems, such as an
51 unreadable file, an exit status of \fB2\fR is returned. Errors are written to
55 To avoid cascading errors, when there are errors in \fBtnrhtp\fR, the template
56 names in \fBtnrhdb\fR are not validated.
59 \fBtnchkdb\fR can be run at any label, but the standard
60 \fB/etc/security/tsol\fR files are visible only in the global zone.
65 \fB\fB-h\fR [ \fIpath\fR ]\fR
68 Check \fIpath\fR for proper \fBtnrhdb\fR syntax. If \fIpath\fR is not
69 specified, then check \fB/etc/security/tsol/tnrhdb\fR.
75 \fB\fB-t\fR [ \fIpath\fR ]\fR
78 Check \fIpath\fR for proper \fBtnrhtp\fR syntax. If \fIpath\fR is not
79 specified, then check \fB/etc/security/tsol/tnrhtp\fR.
85 \fB\fB-z\fR [ \fIpath\fR ]\fR
88 Check \fIpath\fR for proper \fBtnzonecfg\fR syntax. If \fIpath\fR is not
89 specified, then check \fB/etc/security/tsol/tnzonecfg\fR.
94 \fBExample 1 \fRSample Error Message
97 The \fBtnchkdb\fR command checks for CIPSO errors. In this example, the
98 \fBadmin_low\fR template has an incorrect value of \fBADMIN_HIGH\fR for its
105 checking /etc/security/tsol/tnrhtp ...
106 tnchkdb: def_label classification 7fff is invalid for cipso labels:
107 line 14 entry admin_low
108 tnchkdb: def_label compartments 241-256 must be zero for cipso labels:
109 line 14 entry admin_low
110 checking /etc/security/tsol/tnrhdb ...
111 checking /etc/security/tsol/tnzonecfg ...
120 \fB\fB/etc/security/tsol/tnrhdb\fR\fR
124 Trusted network remote-host database
130 \fB\fB/etc/security/tsol/tnrhtp\fR\fR
134 Trusted network remote-host templates
140 \fB\fB/etc/security/tsol/tnzonecfg\fR\fR
144 Trusted zone configuration database
150 See \fBattributes\fR(5) for descriptions of the following attributes:
158 ATTRIBUTE TYPE ATTRIBUTE VALUE
160 Interface Stability See below.
165 The command line is Committed. The output is Uncommitted.
169 \fBtnd\fR(1M), \fBtnctl\fR(1M), \fBattributes\fR(5)
172 \fIHow to Check the Syntax of Trusted Network Databases\fR in \fISolaris
173 Trusted Extensions Administrator\&'s Procedures\fR
177 The functionality described on this manual page is available only if the system
178 is configured with Trusted Extensions.
181 It is possible to have inconsistent but valid configurations of \fBtnrhtp\fR
182 and \fBtnrhdb\fR when \fBLDAP\fR is used to supply missing templates.