






1.  Token Mapping and Attribute Translation

One of the most difficult problems facing  Trusted  Security
Information  Exchange for Restricted Environments (TSIX(RE))
1.0 is the need to transport  security  attributes  so  that
they  are  understood  by  both  hosts in a network liaison.
This is not a straightforward process because  there  is  no
standard   representation   for   every   possible  security
attribute used on an internet.   Any  two  hosts  might  use
different  internal  formats for the same attribute, or they
might  not  even  define  the  same  attributes  within   an
attribute  set:  consider,  for  example,  two  systems that
enforce least privilege based on different  privilege  sets.
When  interoperating  on  a network, how could these systems
resolve their privilege differences?  TSIX must be  able  to
handle  these  format  differences.  In  order to extend the
Trusted Computing Base (TCB) of two communicating systems to
include  network operations, the systems must agree upon the
precise meaning of each attribute transmitted between  them,
and  upon  the  policies  to enforce using those attributes.
These functions are performed between TSIX hosts through the
TSIX Security Attribute Token Mapping Protocol, SATMP.

TSIX systems reduce security attributes to 32-bit tokens for
network  transfer,  and  use  the  SATMP  to  agree upon the
precise definition of each token.  The compact size  of  the
attribute  tokens  allows  them to fit easily within network
traffic and facilitates attribute caching.

1.1  Attribute Representations
Within a single system there may be many  different  formats
for  representing  each security attribute.  For example, an
application  might  represent  a  sensitivity  label  as  an
integer  for  the  classification  and  a  bitmask  for  the
compartment set.  Within  the  kernel,  however,  that  same
sensitivity  label  may be represented by a four byte tag in
order to conserve space that would be consumed  by  a  large
compartment   set.   In  order  to  give  precision  to  the
terminology when discussing interoperability between systems
with  different  security architectures and different secure
operating  systems,  we  define  the   following   attribute
representations.   These  representations  define conceptual
distinctions, which may or may not  correspond  to  physical
differences for a given system.

external representation (ER)
     The human readable, ASCII, version of an attribute.

internal representation (IR)
     The  binary  version  of  an  attribute  used  at   the
     application    programming    interface.    A   trusted

















     application that sends or receives attributes  via  the
     TSIX  protocol  stack  does  so by specifying the IR to
     library routines and system calls.

local representation (LR)
     The format of an attribute used within the  kernel  for
     decision  making.  Quite often this is identical to the
     IR.  If not, the kernel must translate between  the  IR
     and  LR when moving between user and kernel space.  The
     various access checks made  within  the  TSIX  protocol
     stack use the LR format of the attributes.

token
     A 32-bit, arbitrarily-generated  integer  that  can  be
     mapped  to  a  specific  representation  of  a security
     attribute.   Tokens  are  used  by  networked  TCBs  to
     indicate  the  security  attributes  associated  with a
     network message, while  at  the  same  time  conserving
     space and optimizing network performance.

network representation (NR)
     A standard  format  for  an  attribute,  defined  by  a
     standards  body,  a system vendor, or the local Network
     Security Officer, that the local system can map to  and
     from its own IR or ER.

1.2  Attribute Exchange Through Token Mapping
When sending security attribute tokens, the  sending  system
should  use  the token values native to that system.  It may
have created these token values itself by acting as its  own
token  server, or obtained them from a network token server.
The token values have meaning to the receiving  system  only
if  it  can map them back into security attributes through a
cache lookup or an  exchange  with  the  token  server  that
created  them  using  the  Security  Attribute Token Mapping
Protocol.

Using the  terminology  defined  in  the  previous  section,
attribute  transfer  between trusted TSIX applications would
involve the following series of steps.  For  any  particular
implementation   of   TSIX,  some  of  the  steps  are  null
operations.  Which operations are not  needed  depends  upon
the  underlying  OS  and  its native representations for the
attributes.

[1]  The sending application specifies the attributes in  IR
     format using the TSIX API.
[2]  The sending TCB converts the IRs into LRs.  This  is  a
     null  operation  if the application and TCB formats are
     the same for all attributes.
[3]  After all decision making has  been  finished  and  the
















     exchange  has  been  approved by the local TCB, the LRs
     are mapped into attribute tokens.   This  may  be  done
     through  a cache lookup or through an exchange with the
     host's token server, which is either a local or network
     server depending upon system configuration.
[4]  The attribute tokens are associated  with  the  network
     message  (in  the  SAMP  header  described  in the TSIX
     Security  Attribute  Modulation  Protocol),  which   is
     transmitted to the destination system.
[5]  The  network  message  with  the  attribute  tokens  is
     received by the destination TCB.
[6]  The tokens associated with the message are mapped  back
     into  LR  format  for  decision  making.   This is done
     through a cache lookup or an exchange  with  the  token
     server  responsible  for  creating  the tokens.  Access
     control decisions can be made upon  the  received  data
     using the received attributes.
[7]  The LRs are  converted  into  IRs  and  handed  to  the
     receiving process using the TSIX API.

As the network exchange required for tokenization is a  time
consuming process, it is expected that any implementation of
TSIX caches previously mapped tokens.

A system may be configured either to create  its  own  token
mappings directly, or to defer to some network token server.
Any system that creates its own mappings may  also  function
as  a  network  token  server for other systems.  Tokens are
mapped over the network using the  TSIX  Security  Attribute
Token  Mapping  Protocol, SATMP, which must be understood by
all systems  regardless  of  configuration.   Token  mapping
between systems occurs in two steps:

 [1]  An initialization handshake between the two  hosts  in
      order  to  agree  upon  the set of security attributes
      they include with  labeled  messages,  and  the  token
      server  responsible for creating token values for each
      system.  If either system is acting as its  own  token
      server,  the  initialization handshake is also used to
      agree upon the domain of translation (DOT) to use  for
      mapping  each  attribute.   A DOT explicitly defines a
      network representation  to  use  in  a  token  mapping
      request,  and  a  set of rules for translating between
      the native IR or ER on a system and the NR.   The  DOT
      also implicitly defines the security policy to be used
      with that attribute.  A host should only  recognize  a
      DOT  and  translate to/from that DOT if it is prepared
      to enforce  the  policy  implied  by  that  DOT.   The
      initialization  handshake  occurs  the  first time two
      hosts map tokens, and may occur again as needed.


















 [2]  Attributes are mapped  to  tokens  or  recovered  from
      tokens  through  a  SATMP  handshake in which both the
      client and token server translate to/from  the  chosen
      NR.   The  token  server  creates  a  32-bit  token to
      represent an attribute, and  stores  the  relationship
      between  the attribute and token for future reference.
      The rules used by each host to translate  to/from  the
      NR provide the necessary attribute translation between
      their native formats.

The transparent translation of security  attributes  between
systems    is    critical   to   vendor-independent   system
interoperability. The  ability  to  transparently  translate
security   attributes  depends  on  the  mechanism  used  to
translate the local system's native attribute formats to and
from  the  NR  specified  by a chosen DOT.  While the actual
mechanism  used  to  perform   such   translations   is   an
implementation   dependency,   we   describe   a  number  of
translation tools designed to handle  transparent  attribute
translations   in   the  TSIX  Attribute  Translation  Tools
section. These tools were  developed  specifically  to  deal
with problems such as:

   + How to map a sensitivity label, (TS, for example)  when
     the  same  label implies different levels of protection
     on two different systems.

   + How  to  map  labels  between  systems  with  different
     compartment sets.

   + How to map  privilege  sets  between  different  vendor
     implementations of least privilege.

We recommend that  these  tools  be  adopted  for  all  TSIX
implementations.

1.3  Token Mapping Architectures
The flexibility of the SATMP allows for the  intermixing  of
two token mapping architectures:

   + point-to-point: Hosts communicating point-to-point each
     provide  their  own  network  token  server.  Each host
     creates its own mappings between attribute  and  token,
     and  uses  these  token  values  for  labeling  network
     messages.  If the receiving host does not recognize  an
     attribute  token,  it  uses  the  SATMP to retrieve the
     specified  attribute  from  the  sender.   For  optimum
     performance  a  point-to-point system should maintain a
     cache of the attribute-to-token mappings it  has  made,
     as  well as a cache of tokens it has received from each
     remote host (a remote token cache).  This  architecture
















     is   very   robust   and  works  well  in  any  network
     configuration.

   + network token  server:  Hosts  using  a  network  token
     server  defer  to  their server for creating attribute-
     to-token mappings.  If two hosts  are  using  the  same
     network  token  server,  the  tokens  understood on one
     system are understood by  the  other  without  a  token
     mapping  exchange between the two end systems (although
     they both have to resolve the token through an exchange
     with  the network server).  This architecture fits more
     cleanly with diskless workstations.  It also  conserves
     memory  resources  by  removing  the  need for multiple
     remote  host  caches,  and  offers  slight  performance
     improvements   on   local  subnets  of  similar  hosts,
     provided the server is robust and there are  a  limited
     number  of  clients.   It does not work well if clients
     and servers are separated  by  gateways  or  wide  area
     networks,  or  if  the  server  is  not  robust  or  is
     overburdened.

These two architectures can be freely mixed within  a  given
network with some hosts acting as their own token server and
others deferring to one or more network servers.  In a mixed
environment  each  host  must  have  a  local  configuration
database  specifying  its  own  primary  and  backup   token
servers,  if  not  mapping  its  own  tokens.   After system
initialization,  each  host  begins  by  assuming  that  all
communications  are point-to-point.  When it receives tokens
from a host, it is not be able to map those  tokens  without
first  performing  a SATMP initialization handshake with the
sender.   The   handshake   provides   the   receiver   with
information about the sender's token server.

1.4  The Security Attribute Token Mapping Protocol

A TSIX system maps attributes in its native LR format to and
from  a  network  token server's tokens through a handshaked
protocol.

1.4.1  A Network Token Server
All TSIX hosts must implement the SATMP.  To function  as  a
network token server for another host, a TSIX host must have
a DOT in common with  that  remote  host  for  each  of  the
attributes  that the remote host might wish to map.  A token
server need not  actually  implement  any  of  the  security
attributes  that  it can map.  Having valid DOTs to use with
each of its clients defines how to map between  the  various
client  formats.  Network communications are only as trusted
as  the  least  trusted  party  involved  in  an   exchange.
Communications  between  two  A1  systems using a C2 network

















token server can only  be  trusted  to  the  C2  rating.   A
network  of TSIX CMWs should have a minimum of a TSIX CMW as
a token server.

A network token server creates mappings between a  specified
LR  for  an  attribute  and  a token value to represent that
attribute.  The token value that it  selects  is  arbitrary,
but  may not be any of the values 0 - 19, which are reserved
for possible future use as well-known token  values.   These
mappings  must  be  permanently  stored,  and all subsequent
mapping requests for either the LR or token must return this
same mapping.  Once it has created a mapping, the server may
not reuse that particular token value, which  must  continue
to be associated uniquely with that particular attribute.

When it creates its LR/token database, the token server must
record  with  the database a unique generation number.  This
number is used to maintain database consistency  with  those
remote  systems  that  might  be  caching the server's token
translations.  If a token server loses its database, the new
database has a different generation number, which alerts the
remote systems to flush their copies.  A generation value of
0  indicates  that  a  system  does  not  maintain  a  token
database.   How  a  system  chooses  generation  numbers  is
implementation  specific.   Generation  numbers need only be
unique in their low order 24 bits, and must be monotonically
increasing.  On UNIX-based systems one method of selecting a
generation number would be to use the three most significant
octets  of  the 32-bit system time, which is unique assuming
that the system maintains its database for  more  than  four
minutes.

1.4.2  SATMP Messages
All SATMP messages are implemented with UDP datagrams  using
the  network  byte  order  for all fields.  The SATMP server
uses the  Internet  UDP  port  number  90,  which  has  been
assigned  to  the  protocol by the Internet Assigned Numbers
Authority (IANA).  All  messages  begin  with  the  m6_hdr_t
structure.

          /*
           * SATMP Messages sent across the network have the following header.
           */
          typedef struct {
                  u_char  message;                /* Message type. */
                  u_char  error_code;             /* Error return for a reply. */
                  u_short length;                 /* Total length of message. */
                  struct  ext_session_id esi;     /* extended session ID. */
          } m6_hdr_t;

The message  field  contains  the  message  number  (defined
















later).  The  error_code  field  should  be set to 0, unless
explicitly set to one of the SATMP error return codes  in  a
reply  message. The length field should be set to the length
of the entire message, in  octets.   The  esi  field  should
contain  the  extended  session ID of the network liaison on
whose  behalf  the  transaction  is  taking  place,   if   a
particular  liaison  can be identified by the client system.
The esi is made available for any auditing requirements.

          /*
           * The extended session ID is used to uniquely identify a network IPC
           * session.  The ID field is chosen by the host initiating the session.
           * The ext field is defined differently depending upon context, but is
           * usually the host ID (Internet address) of the initiating host.  The
           * extended session ID is used for network auditing, and for
           * correlating requests and replies.
           */
          struct ext_session_id {
               u_long  id;      /* Session identifier. */
               u_long  ext;     /* Host ID of initiating host. */
          };

All SATMP  message  pairs  exchanged  between  communicating
hosts  are  correlated  based  on their extended session ID.
Only one outstanding request is allowed per session ID.

Please note that all network  headers  defined  within  this
document   are   described  in  terms  of  C  language  data
structures with the following additional understandings:

   + The term u_char refers to an unsigned single octet.
   + The term  u_short  refers  to  an  unsigned  two  octet
     quantity.
   + The term  u_long  refers  to  an  unsigned  four  octet
     quantity.
   + Elements within a structure appear on the wire  in  the
     order in which they appear in the structure.
   + All fields are in network byte order.
   + There are no padding octets between fields.

SATMP transactions should be  labeled  UNCLASSIFIED  at  the
network  level  using the IP security label.  The session ID
within the security label should  be  set  to  the  reserved
session  ID  of  1,  marking  the packet as part of the TSIX
SMM-SMM traffic.  Use of the privileged session ID restricts
access to the SATMP traffic to elements of the NTCB.

As described in the TSIX Architectural Overview,  there  are
no  explicit provisions within any of the TSIX protocols for
strong authentication of the communicating  TCBs.   Nor  are
there  provisions  for encrypting their transactions.  It is

















assumed that the entire family  of  TSIX  protocols  (SATMP,
SMM-SMM,  SMM-NSC  and ATM-NSC) take advantage of the strong
authentication  and  encryption  services  offered  by   the
underlying  TSIX  protocol stack when these become available
in a future TSIX revision.

A full implementation of the  SATMP  protocol  includes  the
messages listed in Table 1-1.

                  TABLE 2.  SATMP Messages
____________________________________________________________________________________________________
|        Message        |                                Description                               |
|_______________________|__________________________________________________________________________|
|TOKD_INIT_REQ          |  The first half of the token mapping initialization                      |
|_______________________|__________________________________________________________________________|
|TOKD_INIT_REPLY        |  The response to TOKD_INIT_REQ.                                          |
|_______________________|__________________________________________________________________________|
|_______________________|__________________________________________________________________________|
|TOKD_MAP_REPLY         |  The server's reply to the TOKD_MAP_REQUEST message containing           |
|                       |  the requested set of tokens.                                            |
|_______________________|__________________________________________________________________________|
|_______________________|__________________________________________________________________________|
|TOKD_RETRIEVE_REPLY    |  The server's reply to the TOKD_RETRIEVE_MAP                             |
|                       |  message containing the requested set of attributes.                     |
|_______________________|__________________________________________________________________________|
|TOKD_FLUSH_REMOTE_CACHE|  Sent to a remote system when the local system detects that the system   |
|_______________________|__________________________________________________________________________|
|TOKD_ACK               |  A reply acknowledging receipt of the TOKD_FLUSH_REMOTE_CACHE message.   |
|_______________________|__________________________________________________________________________|

1.4.2.1  TSIX SATMP Compliance
Minimal TSIX compliance requires an  implementation  of  the
SATMP to properly handle the following messages:

     TOKD_INIT_REQ

     TOKD_INIT_REPLY

     TOKD_RETRIEVE_MAP

     TOKD_RETRIEVE_REPLY

     TOKD_FLUSH_REMOTE_CACHE

     TOKD_ACK

This set of messages is sufficient if the system  implements
its  own  token  server  locally.   If using a network token
server, a system must  implement  the  TOKD_MAP_REQUEST  and
TOKD_MAP_REPLY messages.

















1.4.2.2  SATMP Reliable Datagram Service

All SATMP services are implemented as  a  two-way  (request-
response)  exchange  similar to an RPC service.  They do not
use DMDP because token mapping is a heavily used service and
DMDP  would  increase  the  network  traffic associated with
token mapping by 100% without adding any reliability.   DMDP
is  still  used for all other TSIX network exchanges such as
session management handshakes and logging audit records.

As SATMP is a datagram service,  requests  and  replies  may
occasionally be lost.  It is up to the sender of the request
to ensure that a transaction is completed correctly.  If  it
does  not receive a response within a prescribed timeout, it
should retransmit the request.  The length  of  the  timeout
and  the  number  of  retries  should be configurable.  More
sophisticated implementations can  time  round-trip  service
times in order to optimize timeouts.

The SATMP  server  need  not  retain  any  state  concerning
previous   transactions.    It  should  process  all  client
requests, even duplicate  requests.   The  client  need  not
retain  any  state  after  it  has received a reply.  It can
simply drop any duplicate replies.

1.4.2.3  Attribute Identifiers
The type of security attribute being mapped is specified  by
an attribute identifier, which is a 16-bit unsigned integer.
The maximum attribute ID is 65,534.  Values 0 through 16,383
are reserved for specification by the Project Max Consortium
and have well-defined, consistent  meanings  throughout  the
Internet   community.   Values  16,384  through  32,767  are
reserved for site specific security attributes, and are only
unique  within that community.  Values 32,768 through 65,534
are  reserved  for  dynamic  allocation  and  definition  by
trusted   network   applications.    The  currently  defined
attribute IDs are defined in table 1-3.































              TABLE 4.  Attribute Identifiers
_______________________________________________________________________________________________________
|     Attribute     |  Value|                                Description                              |
|___________________|_______|_________________________________________________________________________|
|___________________|_______|_________________________________________________________________________|
|Nationality Caveats|  1    |  Nationality caveat set as per the UK CHOTS procurement                 |
|___________________|_______|_________________________________________________________________________|
|___________________|_______|_________________________________________________________________________|
|Information Label  |  3    |  As defined by the DIA's CMW specifications                             |
|___________________|_______|_________________________________________________________________________|
|___________________|_______|_________________________________________________________________________|
|Audit ID           |  5    |  The immutable login user identity used for audit purposes              |
|___________________|_______|_________________________________________________________________________|
|Discretionary ID   |  6    |  The collection of user identities used for discretionary access control|
|                   |       |  checks.  This includes the user ID, the primary group ID, and any      |
|___________________|_______|_________________________________________________________________________|
|Clearance          |  7    |                                                                         |
|___________________|_______|_________________________________________________________________________|
|___________________|_______|_________________________________________________________________________|
|Access Control List|  10   |                                                                         |
|___________________|_______|_________________________________________________________________________|

The values  9  and  65535  are  reserved  values.   Separate
identifiers are defined for sensitivity label and clearance,
for on  some  systems  the  rules  for  specifying  a  valid
sensitivity label might preclude some valid clearances.

The Audit Info attribute provides a mechanism for system  to
exchange audit relevant information other than the audit ID.
This information is probably vendor or system specific.  Its
format   and   content  are  determined  by  the  Domain  of
Translation used to exchange the information.

1.4.2.4  SATMP Message Numbers and Error Values
The SATMP protocol uses the well known UDP port  number  90,
which has been assigned to SATMP by the IANA.

The SATMP version number used  for  TSIX  is  300  Hex  (768
decimal), which is short for version 3, revision 0.

The SATMP message numbers are listed in Table 1-5.


























              TABLE 6.  SATMP Message Numbers

             __________________________________
            |________________________|________|
            | TOKD_INIT_REQ          |   165  |
            | TOKD_INIT_REPLY        |   166  |
            | TOKD_RETRIEVE_MAP      |   163  |
            | TOKD_RETRIEVE_REPLY    |   164  |
            | TOKD_MAP_REQUEST       |   173  |
            | TOKD_MAP_REPLY         |   174  |
            | TOKD_FLUSH_REMOTE_CACHE|   167  |
            | TOKD_ACK               |   162  |
            |________________________|________|

All other values are reserved.

The SATMP error codes are listed in Table 1-7.

                TABLE 8.  SATMP Error Codes
___________________________________________________________________________________
|       Error        |  Description|                                              |
|____________________|_____________|______________________________________________|
|M6ERR_NO_ERROR      |       0     |                                              |
|M6ERR_VERSION       |       1     |  Unsupported version number                  |
|M6ERR_GENERATION    |       2     |  Incorrect generation ID specified for tokens|
|M6ERR_UNSUPPORTED   |       3     |  Unsupported message type                    |
|M6ERR_FORMAT        |       4     |  Message format problem                      |
|M6ERR_TRANSLATION   |       5     |  Error translating attribute                 |
|M6ERR_DOT           |       6     |  No DOT agreed upon for the attribute type   |
|M6ERR_NO_MAPPING    |       7     |  Mapping doesn't exist                       |
|____________________|_____________|______________________________________________|

1.4.3  Token Mapping Initialization Sequence

Before token mapping  can  occur  between  a  network  token
server  and  a  client,  they  must successfully complete an
initialization handshake.  This handshake  is  initiated  by
the client if it has no record of a previous initialization.
It is also initiated by the server if it has no record of  a
previous  initialization,  or in response to a token mapping
request if any of the server's databases relevant  to  token
mapping  have  changed  since  the last initialization.  The
initialization handshake allows the two hosts to agree upon:

   + The set  of  security  attributes  understood  by  both
     hosts.

   + Whether or  not  each  host  maps  its  own  attributes
     directly  or  uses  a  network token server.  If a host
     uses a network server, the  handshake  establishes  the
     address of the server and any backup server.

















   + The DOT that they use for mapping each  attribute.   By
     finding a mutually agreeable set of DOTs, the two hosts
     determine that they can each trust their counterpart to
     correctly enforce the security policies associated with
     the attributes, and determine the rules for translating
     between   their   native   representations   for  those
     attributes.

   + The current database generation for each side  in  case
     any caches need to be flushed.

   + The version of the token mapping protocol supported  by
     the  two  hosts.   This  allows  future versions of the
     protocol to maintain backwards compatibility with older
     versions.

The initialization  sequence  consists  of  an  exchange  of
messages.   The  initiator  sends a TOKD_INIT_REQ message to
the responder's SATMP well-known UDP port.   The  responding
host replies with a TOKD_INIT_REPLY message.

If a  SATMP  initialization  handshake  (including  retries)
fails,  the  remote  system is temporarily unavailable.  The
initiating host may not begin a new initialization handshake
with  the  same  remote  host  for  a minimum of one minute.
Attempted accesses to the remote host during  this  interval
should  fail  with  some appropriate error code (such as the
UNIX code EHOSTDOWN).  This restriction  prevents  excessive
network traffic.

In order to  ensure  consistency  between  a  network  token
server's database and any caches of that database maintained
by its clients, the initialization parameters should not  be
maintained by either client or server across:

   + rebuilds of a server's database
   + modifications to the DOT translation routines.

After any of these events, the host  upon  which  the  event
occurs  should  flush  the initialization parameters that it
has for all remote hosts and reject any network traffic with
a   given  host  pending  successful  completion  of  a  new
handshake.

1.4.3.1  The TOKD_INIT_REQ Message
This message is used to initialize communications between  a
token  server  and  a network client.  The message takes the
form:



















          struct m6db_map_init {
               m6_hdr_t hdr;
               u_long   generation;
               u_short  version;
               u_char   reserved;
               u_char   server_state;
               u_long   token_server;
               u_long   backup_server;
               struct   attr_format_spec attr_format[1];  /* variable len */
          };

The generation field gives the current generation ID of  the
initiator's  NR/token database.  If it acts as its own token
server, this is the generation number of the local database.
If  using a network server, this is the generation number of
the server's database.  Only  the  low  order  24  bits  are
actually  used.   See  the  section entitled A Network Token
Server for a description of the generation ID.

The version field should be set to the  current  version  of
the SATMP protocol.

The server_state field gives the current state of the  token
server  on  the initiating host, and may be set as specified
in Table 1-9.

                  TABLE 10.  Server States

_________________________________________________________________________
|_____|_________________________________________________________________|
|  0  |  The initiating host provides its own token server              |
|  1  |  The initiating host is currently using its primary token server|
|  2  |  The initiating host is currently using its backup token server |
|_____|_________________________________________________________________|

The reserved field is reserved for future use  and  must  be
set to 0 on current implementations.

The token_server  field  is  the  Internet  address  of  the
initiating  host's  primary token server.  The backup_server
field is the Internet address of its  backup  token  server.
They must both be 0 if the host acts as its own server.

The attr_format field  is  an  array  of  attribute  mapping
specifications  with  one  element  per  type  of  attribute
supported by the  initiating  system.   The  format  of  the
specification is defined by:





















          struct  attr_format_spec {
               u_short  attribute;
               u_short  no_dot;
               dot_extern_rep dot[1];     /* Variable length. */
          };

The attribute field is the  attribute  identifier  for  this
specification.   The  attribute  identifier  values  are  as
defined in section 1.4.2.3.

The no_dot field specifies the number of DOTs understood  by
the  initiating host for this attribute.  dot is an array of
domain specifiers  with  no_dot  elements.   Each  of  these
domain specifiers has the format:

          typedef struct {
              u_char   weight;
              u_char   flags;
              u_short  length;
              char     dot_name[1];        /* Variable length. */
          } dot_extern_rep;

As described above,  translating  an  attribute  to  another
representation  may  lose  security relevant information, or
imply a slightly different enforcement of a security policy.
The  weight  field  helps  the  responder choose between the
various DOTs  for  an  attribute.   This  value  states  the
initiator's relative preference for that DOT, and should lie
between 0 (absolute  last  choice,  virtually  all  security
information  lost,  or large mismatch in policy enforcement)
and 255 (initiator's native format - no information loss and
perfect  match  in  policy  enforcement).  How the initiator
chooses these values, and how these values are used  by  the
responder in choosing a DOT are implementation specific.  It
is suggested that the responder sum the  initiator's  weight
for  a  DOT  with  its own, and then select the DOT with the
maximum combined weight.   Obviously,  if  a  system  cannot
accept  the use of a DOT for security reasons, it should not
advertise that DOT.

The Network Representation specified by a DOT  may  describe
how  to  represent  a  security attribute in an ASCII and/or
binary format.  The flags field is a mask that specifies the
accepted  formats  for the NR in a mapping exchange, and has
bit values:

     Binary Format            1
     ASCII Format             2

The choice between the ASCII and  binary  format  should  be
made   available  to  the  NSO  on  a  per-attribute  basis.
















Although binary  mapping  is  always  more  efficient,  some
attributes might map more naturally in ASCII.  An example of
the latter would be discretionary IDs in a closed network in
which  all  users  had the same username on all systems, but
each system assigned a  different  user  ID  to  that  user.
Mapping  user  IDs  using  the ASCII user name would provide
translation between the different ID values.

The length field specifies the length of  the  name  of  the
DOT,  dot_name,  which is a null (0) terminated ASCII string
whose length (including the final 0) has been  padded  to  a
multiple  of  four  in order to maintain alignment to 4-byte
boundaries.  The DOT name, which is case sensitive, uniquely
identifies  the  domain of translation throughout the entire
Internet community.  In order to guarantee  uniqueness,  the
DOT  name  must  contain  one of three identifiers depending
upon the origin of the DOT definition:

   + The  name  of  the  recognized  standards  organization
     defining   the   DOT   and   the   associated   Network
     Representation, for example, "POSIX" or "TSIG".
   + The name of the vendor defining the native  DOT  for  a
     system,   for  example,  "Sun  Microsystems",  "Hewlett
     Packard" or "SecureWare".
   + The Internet mailing address of the authority  defining
     the DOT.

The DOT name "INVALID_DOT" is reserved for use by the  SATMP
protocol.

For  example,   Vendor   A   might   define   the   standard
representation  of  a  privilege  set for their CMW product,
along with a definition of the function for each  privilege.
This  native  DOT  might  be  called  "Vendor_A.privileges".
Another vendor, Vendor B, might enforce a different  set  of
privileges,   and   would   have   their   own  native  DOT,
"Vendor_B.privileges".    So   far   we    do    not    have
interoperability,  except  between  systems  from  the  same
vendor.  Interoperability occurs in either of two ways:

   + Someone, whether it be one  of  the  vendors,  the  two
     vendors  in  concert,  an accreditation body or a local
     NSO, analyzes the  two  different  privilege  sets  and
     determines  how best to map vendor A's privilege set to
     and from vendor B's by creating a "Vendor_B.privileges"
     DOT  and  associated  translation tables for Vendor A's
     systems.   Vendor  A  would  then  advertise  both  the
     "Vendor_A.privileges"  and  "Vendor_B.privileges" DOTs,
     and the two hosts would choose the latter  for  mapping
     tokens.


















   + Someone,  perhaps  a  standards  body  such  as  POSIX,
     defines  a  canonical  format  for  an  attribute,  for
     example, "POSIX.privileges".  Someone, similar  to  the
     previous  case,  must  then  define how each of the two
     vendors privilege sets map to and  from  the  canonical
     set.   They  would  create a "POSIX.privileges" DOT and
     associated translation  tables  for  each  system  (the
     translation tables would be different for each system).
     Vendor   A    would    then    advertise    both    the
     "Vendor_A.privileges"  and "POSIX.privileges" DOTs, and
     the two hosts  would  choose  the  latter  for  mapping
     tokens.

The following section,  TSIX  Attribute  Translation  Tools,
describes  a  mechanism  for  encoding  arbitrarily  complex
logical   relationships    between    different    attribute
representations.   This  tool  set  has been used by several
TSIX implementations for describing different  DOTs  for  an
attribute,  and  for  controlling how a TSIX host translates
its attributes to/from non-native DOTs.

The receiver of  the  TOKD_INIT_REQ  message  processes  the
message and returns the results in a TOKD_INIT_RESP message.
First the receiver checks  the  SATMP  protocol  version  to
ensure  that  it  can understand the remote host's messages.
If  not,  it  returns  a  M6ERR_VERSION  error  code  in  an
otherwise empty reply consisting of only the initial header.
If the SATMP versions are compatible, it then determines the
address  of  the  initiator's token server by inspecting the
server_state and  server  address  fields.   The  generation
number  of  the  initiator's  current token database is then
compared against any cache maintained locally of that remote
token  database.   If  the  initiator's generation number is
less  than   that   stored   with   the   local   cache,   a
M6ERR_GENERATION  error  code  is returned to the initiator,
for they are using  out  of  date  cached  tokens.   If  the
initiator's  generation  number  is greater than that stored
with the local cache, the local cache is flushed because  it
is out of date.

The receiver then processes the attr_format array,  skipping
any   attributes   that  it  doesn't  understand.  For  each
attribute that  it  understands,  the  receiver  checks  the
initiator's   list  of  DOTs  against  the  DOTs  understood
locally.  If there is more than one mutually understood DOT,
the  initiator's  and  responder's  weight  values should be
summed for each DOT, and  the  DOT  with  greatest  combined
weight  should  be chosen.  The binary and ascii bits in the
flags should only be returned if supported by both  systems.
A  single  attr_format  entry  is  then written to the reply
message specifying the chosen DOT.   If  none  of  the  DOTs
















listed for an attribute is understood by the receiving host,
it returns "INVALID_DOT" for that attribute.   The  receiver
continues  to process the message in spite of the error, for
there might never be a need to map that particular attribute
during normal network communications between the two hosts.

If both the initiating and responding systems use a  network
token  server,  the  chosen  DOTs  are not used in the token
mapping process, for both systems map tokens  directly  with
the  network  servers.   The  responder  should  process the
attr_format  array  anyway  so  that  the  two  systems  can
identify  the  set  of  attributes that they have in common.
The SATMP protocol does not make any check upon  the  agreed
upon  set  of attributes to ensure that it is sufficient for
protecting the local host's data.  Such checks are performed
by the TSIX Session Management Module.

If the receiving host decides to permit communications  with
the  initiator, it records the selected DOTs for later token
mapping.  If the initiator has indicated that it is using  a
network  token  server,  the  address  of the server and its
backup are also recorded.  If the receiving host is  not  in
fact  a server, and itself uses a network token server, then
the server_state, token_server and backup_server  fields  in
the  reply  message  are filled in.  The generation field is
set with the current generation of the local token database,
and the reply is sent to the initiator.

1.4.3.2  The TOKD_INIT_REPLY Message

The TOKD_INIT_REPLY acts as an explicit  acknowledgement  to
the  TOKD_INIT_REQ  message.  The format of this message and
the meaning of the  fields  are  identical  to  the  request
message.  The attr_format array might not include all of the
attribute types found within the original  request  message,
for  it is the intersection of the attribute sets understood
by the two systems.  The list of  DOTs  for  each  attribute
includes just the chosen DOT.

When this message  is  received  by  the  initiator  of  the
handshake,   it   first   checks   the  error  return  code,
hdr.error_code, to make sure that the transaction  completed
successfully.   The  valid  error codes in a TOKD_INIT_REPLY
message are listed in table 1-11
























           TABLE 12.  TOKD_INIT_REPLY Error Codes
_____________________________________________________________________________________________
|       Error        |                              Description                             |
|____________________|______________________________________________________________________|
|M6ERR_NO_ERROR      |  Produced upon successful completion.  Remember that the inability to|
|____________________|______________________________________________________________________|
|M6ERR_VERSION       |  The version number in the request message is not supported          |
|                    |  by this version of SATMP.                                           |
|____________________|______________________________________________________________________|
|M6ERR_GENERATION    |  The initiating system is using an out of date cached copy of        |
|                    |  a network token server's database.  If this error code is received, |
|                    |  the cached copy of the system's token database should be flushed to |
|____________________|______________________________________________________________________|
|M6ERR_FORMAT        |  A format error was encountered scanning the request message.        |
|____________________|______________________________________________________________________|
|M6ERR_INTERNAL_ERROR|  Produced if any internal errors, such as lack of disk space,        |
|____________________|______________________________________________________________________|

If no error is indicated,  the  SATMP  protocol  version  is
checked  to  make sure it is understood by the local system.
If  not,  processing  stops.   The  reply  is  dropped   and
communications  between  the  two  hosts  are not permitted.
Subsequent token mapping requests can not succeed,  and  may
propogate  an  error  to  the  application,  though  this is
implementation-specific detail. If the  SATMP  versions  are
compatible,   it   then   determines   the  address  of  the
responder's token server by inspecting the server_state  and
server   address  fields.   The  generation  number  of  the
responder's token database is compared against any cache  of
that   database  maintained  locally.   If  the  responder's
generation number is less than that stored  with  the  local
cache,  a  TOKD_FLUSH_REMOTE_CACHE  message is generated and
sent to the responding system, for it is using out  of  date
cached  tokens,  and  the received packet that triggered the
initialization  handshake  should  be   dropped.    If   the
responder's  generation  number  is greater than that stored
with the local cache, the local cache is flushed because  it
is out of date.

The attr_format array is then processed, checking the chosen
DOT  for each attribute to make sure that it is valid on the
local host and storing it if so.  If a common DOT could  not
be  found,  no  error  is generated at this time, for normal
network communications  between  the  two  hosts  might  not
require  mapping  of  that  particular  attribute.   If  the
responding host indicates  that  it  uses  a  network  token
server, the addresses of the token server and its backup are
stored.



















The SATMP protocol does not make any check upon  the  agreed
upon  set  of attributes to ensure that it is sufficient for
protecting the local host's data.  Such checks are performed
by the TSIX Session Management Module.

1.4.4  Mapping a Security Attribute into a Token

In order to map a set of security attributes into a  set  of
tokens,  the  client  system  translates the attributes into
their network representations using the DOT that was  chosen
for  each attribute during the initialization handshake, and
then loads the NRs into  a  TOKD_MAP_REQUEST  message.   The
message  is  sent  to  the  appropriate  token server, which
translates the attributes from their NR  into  the  server's
IR.   It  looks  up  each  mapping  in  turn,  creating  and
recording new tokens if there is  no  pre-existing  mapping.
The  server  returns  the  token  values  to the client in a
TOKD_MAP_REPLY message.

1.4.4.1  The TOKD_MAP_REQUEST Message
This message is used by a SATMP client in order  to  request
the  mapping of a set of security attributes into a set of a
tokens by a network token server.  It takes the form:

          struct m6db_map_request {
               m6_hdr_t hdr;
               u_long   generation;
               tokd_network_rep nr_tok[1];   /* variable length */
          };

The generation field is not used and should be set to 0.

The nr_tok[] array contains an element for each attribute to
be  mapped.  NOTE  that  there  is  no  guarantee  upon  the
alignment of a nr_tok element.  The format of  each  element
is defined by:

          typedef struct {
              u_short  attr_id;       /* Attribute ID.               */
              u_short  nr_length;     /* length of nr                */
              u_long   tok;           /* mapping identifier or token */
              char     nr[1];         /* either binary or ascii      */
          } tokd_network_rep;

The attr_id specifies the type of attribute  to  be  mapped,
and  may  be  one  of the attribute IDs specified in section
1.4.2.3.

As the client may request  multiple  attribute  translations
within a single request message to the server, the tok field
is used to correlate the returned tokens with  the  original

















attributes.  The client can specify any value for the field.
The server copies it into the reply message to identify  the
returned token.

The nr_length field is the length in bytes  of  the  network
representation  of  the  attribute.   The  nr  is the actual
attribute presented in  the  network  representation  agreed
upon during the initialization handshake.  The NR may either
be in ASCII or binary format, its actual  composition  being
defined  by  the  DOT selected for the attribute.  If during
the initialization handshake both systems advertised the use
of  ASCII  mappings  for  the  attribute,  the ASCII network
representation should be used rather than the  binary.   The
following  section  entitled  Network Representation Formats
defines how to construct a network representation  for  each
attribute type.

The token  server  receiving  the  TOKD_MAP_REQUEST  message
first  looks up the client information that it stored during
the initialization handshake, which  contains  the  selected
DOTs  for  the  attributes to be mapped.  It then scans each
element of nr_tok  in  turn.   It  determines  the  type  of
attribute  to  map from the attr_id field, and checks that a
valid DOT has been negotiated for that  attribute  type.  If
so,  it  translates  the  attribute from NR to IR format. It
looks up the  token  mapping  for  the  (attribute  ID,  IR)
combination  in  its  database.  If there is no pre-existing
mapping, the server creates a new token  for  the  attribute
and stores the mapping in its database.  The resulting token
is stored along with the client's reference number from  the
tok  field  and the attribute ID in the TOKD_MAP_REPLY reply
message.  If a recoverable error occurs while processing the
attributes,  such  as  the lack of an agreed upon DOT or the
inability to translate one of the attributes, an appropriate
error code is written to hdr.error_code in the reply message
and processing continues with the next attribute.  Only  the
requested   mapping  that  causes  the  error  condition  is
skipped, and no  entry  for  it  is  written  to  the  reply
message.

After all of the attributes have been processed, the  server
loads  its current token database generation number into the
reply message and sends the reply back to the client.

1.4.4.2  The TOKD_MAP_REPLY Message
This message is sent by  a  token  server  to  a  client  in
response  to  a client's TOKD_MAP_REQUEST message.  It takes
the following form:



















          struct m6db_map_reply {
               m6_hdr_t hdr;
               u_long   generation;
               tokd_network_tok nr_tok[1];   /* variable length */
          };

The generation field is the current  generation  ID  of  the
server's  token database.  If this value does not match that
stored  with  the  client's  cached  copy  of  the  server's
database, the client must flush its local cache.

The nr_tok[] array contains an element  for  each  attribute
that was successfully mapped.  If the error code returned in
hdr.error_code is zero, this list corresponds to the request
list  exactly.   Otherwise  any  mapping that encountered an
error is missing.  The format of each element is defined by:

          typedef struct {
               u_short  attr_id;       /* Attribute ID.          */
               u_long   mid;           /* mapping identifier     */
               u_long   token;         /* server's token         */
          } tokd_network_tok;

The attr_id field specifies the type of the  attribute  that
was  mapped,  and  was  copied  directly  from  the  request
message.  The mid field contains the client's reference  ID,
which was also copied directly from the request.  The client
system uses  the  reference  ID  to  identify  the  original
attribute  value  to  which the returned token applies.  The
token field contains the server's token for the mapping.

The  hdr.error_code  field  contains  the  status   of   the
processed  request as returned by the server.  It may be any
of the codes listed in table 1-13


































           TABLE 14.  TOKD_MAP_REPLY Error Codes
______________________________________________________________________________________________
|       Error        |                               Description                             |
|____________________|_______________________________________________________________________|
|____________________|_______________________________________________________________________|
|M6ERR_UNSUPPORTED   |  The token mapping request message is not supported.                  |
|____________________|_______________________________________________________________________|
|M6ERR_FORMAT        |  A format error was encountered while parsing the request             |
|____________________|_______________________________________________________________________|
|M6ERR_DOT           |  At least one of the requested attributes could not be mapped         |
|                    |  because there was no agreed upon DOT for that attribute.             |
|____________________|_______________________________________________________________________|
|M6ERR_TRANSLATION   |  At least one of the requested attributes could not be mapped because |
|                    |  there was an error translating the given network representation      |
|____________________|_______________________________________________________________________|
|M6ERR_INTERNAL_ERROR|  There was a non-recoverable error, such as insufficient disk space.  |
|____________________|_______________________________________________________________________|

The presence of a returned error code  does  not  invalidate
the returned token mappings, but indicates that at least one
of the requested mappings was not successfully mapped.

1.4.5  Recovering the Mapping for a Local Token
In order to  map  a  set  of  tokens  back  into  a  set  of
attributes,  the  client  system  loads  the  tokens  into a
TOKD_RETRIEVE_MAP  message.   It  also  loads  the  server's
generation  number  associated  with  those  tokens into the
message and sends it to the appropriate token  server.   The
server  checks  the  generation number of the tokens to make
sure that they are current.  If not, an error  is  returned.
If  so,  it  retrieves the requested mappings from its token
database,  converts  the  attributes  into   their   network
representation  using the DOT negotiated for each attribute,
and then loads the attributes along with the original tokens
into a TOKD_RETRIEVE_REPLY message.

1.4.5.1  The TOKD_RETRIEVE_MAP Message

This message is used by a SATMP client in order  to  request
the  mapping  of  a  set  of tokens previously mapped by the
server  into  a  set  of  security  attributes  in   network
representation.   It   is   identical   in   format  to  the
TOKD_MAP_REPLY  message.   The  generation  field   is   the
server's  generation  corresponding to the tokens the client
wants to have mapped.  The  nr_tok[].attr_id  field  is  the
attribute ID for the token.  The nr_tok[].mid field is zero.
The nr_tok[].token field contains the token that the  client
wishes to retrieve.

Upon receiving  the  TOKD_RETRIEVE_MAP  message  the  server
checks  the generation number given for the tokens to see if
















it matches  the  current  generation  number  of  its  token
database.   If not, it creates a TOKD_RETRIEVE_REPLY message
consisting  of   just   the   initial   header,   sets   the
hdr.error_code  field  to  M6ERR_GENERATION, and returns the
reply to the client.   This  informs  the  client  that  the
tokens  are  stale  and  that  it should flush any caches or
databases of the server's tokens that it maintains.

If the tokens are from the current  generation,  the  server
scans  each  element in the nr_tok array, looking up each of
the requested mappings.  Each recovered attribute is  mapped
into  the  network  representation  corresponding to the DOT
negotiated between client and server for that attribute, and
then  loaded  into the reply message along with the original
token.  If any mapping  is  not  found,  the  hdr.error_code
field in the reply is set to M6ERR_NO_MAPPING and the server
continues with the next token.  When all of the tokens  have
been  processed, the server returns the reply message to the
client.

1.4.5.2  The TOKD_RETRIEVE_REPLY Message

This message is sent by a token server to a client in  reply
to a client's TOKD_RETRIEVE_MAP message.  It is identical in
format to  the  TOKD_MAP_REQUEST  message.   The  generation
field  is  unused  but  can  be  set  equal  to the server's
generation number  for  consistency.   The  nr_tok[].attr_id
field  specifies  the attribute ID of the retrieved mapping.
The nr_tok[].tok field contains the server's token from  the
original   request  message.  The  nr_tok[].nr_length  field
contains  the  length  of  the  recovered   attribute,   and
nr_tok[].nr  contains the recovered attribute in the network
representation corresponding to the DOT  negotiated  by  the
client and server for that attribute ID.

The nr_tok[] array contains the requested mappings from  the
server,  and corresponds exactly to the list in the original
request message if hdr.error_code is  zero.   If  the  error
code  is  non-zero, any mappings that could not be retrieved
are not present in the array.

The  hdr.error_code  field  contains  the  status   of   the
processed  request as returned by the server.  It may be any
of the codes listed in table 1-15
























         TABLE 16.  TOKD_RETRIEVE_REPLY Error Codes
_________________________________________________________________________________________________
|       Error        |                                Description                               |
|____________________|__________________________________________________________________________|
|____________________|__________________________________________________________________________|
|M6ERR_GENERATION    |  The tokens presented by the client were from a                          |
|                    |  previous generation of the server's database and cannot be mapped.  The |
|                    |  client should flush any caches that it maintains of the server's tokens.|
|____________________|__________________________________________________________________________|
|____________________|__________________________________________________________________________|
|M6ERR_FORMAT        |  A format error was encountered while parsing the request message.       |
|____________________|__________________________________________________________________________|
|M6ERR_DOT           |  At least one of the requested attributes could                          |
|                    |  not be retrieved                                                        |
|____________________|__________________________________________________________________________|
|M6ERR_TRANSLATION   |  At least one of the requested attributes could not be                   |
|                    |  retrieved because the server was unable to translate it into the        |
|                    |  network representation.                                                 |
|____________________|__________________________________________________________________________|
|____________________|__________________________________________________________________________|
|M6ERR_INTERNAL_ERROR|  There was some non-recoverable error, such as insufficient disk space.  |
|____________________|__________________________________________________________________________|

The presence of a returned error code  does  not  invalidate
the retrieved attributes, but indicates that at least one of
the requested mappings was not successfully retrieved.

1.4.6  Maintaining Database Consistency
The TSIX Version of the SATMP protocol uses  the  generation
numbers  exchanged  during  the  initialization handshake to
maintain consistency between all caches of tokens throughout
the  network TCB (kernel and token mapping servers/clients).
Any application that stores tokens  should  also  store  the
generation  number  associated  with  the stored tokens, and
should always include this number  when  exchanging  tokens.
If  an  inconsistency  is  detected  between  parts  of  the
application (such as client  and  server),  the  application
must  provide  some  means  for flushing the offending token
store.

1.4.6.1  The TOKD_FLUSH_REMOTE_CACHE Message

This message is generated by  a  system  when  processing  a
TOKD_INIT_REPLY  message  if  it  determines that the remote
system is using an out of date token cache.

          struct m6db_flush {
               m6_hdr_t hdr;
          };

If the receiver of this message is  using  a  network  token
















server,  it should flush its cache of the server's mappings.
It  should  always  return  a  TOKD_ACK   message   to   the
originator.

1.4.6.2  The TOKD_ACK Message

This message is returned as a positive acknowledgement to  a
TOKD_FLUSH_REMOTE_CACHE message.  It takes the form:

          struct m6db_ack {
               m6_hdr_t hdr;
          };

with hdr.error_code set to M6ERR_NO_ERROR.

1.4.7  Network Representation Formats
The structure of  a  network  representation  is  completely
arbitrary, and is determined by the DOT defining the network
representation.  It is strongly recommended,  however,  that
the  following rules be observed in order to accommodate the
TSIX  attribute  translation  tools.    Again,   while   the
attribute  translation  tools  discussed  are not mandatory,
they provide a mechanism for translating attributes  between
different DOTs.

As in the previous descriptions within  this  document,  the
term  u_long refers to a 4 octet unsigned integer in network
byte order.

1.4.7.1  ASCII Network Representations

All ASCII representations are null (0)  terminated  strings,
with the following specific formats:

     Sensitivity Label/Clearance A set of words separated by
                              spaces.    The  first  word(s)
                              must  be  the  classification.
                              Any    remaining   words   are
                              elements  of  the  compartment
                              set.  The various words can be
                              parsed   using    the    DIA's
                              standard encoding rules.

     Information Label        A set of  words  separated  by
                              spaces.    The  first  word(s)
                              specifies the  classification.
                              Remaining   words  consist  of
                              elements  of  the  compartment
                              set   and   elements   of  the
                              marking  set.    The   various
                              words  can be parsed using the
                              DIA's standard encoding rules.
















     Integrity label          Currently undefined.

     Nationality  Caveats      A  set   of   country   names
                              separated by spaces.

     Privilege  Set            A  set  of  privilege   names
                              separated by spaces.

     Audit ID                 A user name.

     Discretionary IDs        The following set in order:

                                 + A  null  (0)   terminated
                                   ASCII user name.
                                 + A  null  (0)   terminated
                                   ASCII group name.
                                 + A u_short specifying  the
                                   number,       N,       of
                                   supplementary     groups.
                                   There   is  no  guarantee
                                   that it will be aligned.
                                 + A set of  N  ASCII  group
                                   names.   Each  group name
                                   is null (0) terminated.

                              If a system does  not  support
                              supplementary    groups,    it
                              should  set  the   number   of
                              groups  to  0  when specifying
                              the  Discretionary   ID,   and
                              should  ignore  the  specified
                              groups  when   receiving   the
                              Discretionary ID.

     ACL                      A u_long specifying the number
                              of ACL elements, followed by a
                              list  of  ACL  elements.    An
                              individual     ACL     element
                              consists   of   a   null   (0)
                              terminated  ASCII user name, a
                              null  (0)   terminated   ASCII
                              group   name   and   a  u_long
                              permission.  The definition of
                              the    permission    bits   is
                              dependent upon the ACL  policy
                              implied by the DOT.

     Audit Information        Additional audit  information.
                              Audit  information  is vendor-
                              system-specific.  The  precise
                              contents  and  format  must be
















                              defined for each DOT.

1.4.7.2  Binary Network Representations

All  binary  attribute  representations  are  specified   as
follows.   All  attribute  bit  masks are padded to a 32-bit
longword boundary and are in network byte order.  Bit  0  is
the  LSB  of  the  first  longword, bit 32 is the LSB of the
second longword, and so forth.

     Sensitivity  Label/Clearance A  u_long   classification
                              followed  by  the  compartment
                              set  bit  mask  padded  to   a
                              u_long boundary.  Bit 0 is the
                              LSB of the first longword, bit
                              32  is  the  LSB of the second
                              longword, and so forth.

     Information   Label        A   u_long    classification
                              followed  by  the  compartment
                              set  bit  mask  padded  to   a
                              u_long boundary and a markings
                              bit mask rounded to  a  u_long
                              boundary.  Bit 0 is the LSB of
                              the first longword, bit 32  is
                              the    LSB   of   the   second
                              longword, and so forth.

     Nationality Caveats      A caveat set  is  a  bit  mask
                              rounded  to a u_long boundary.
                              Bit 0 is the LSB of the  first
                              longword, bit 32 is the LSB of
                              the second  longword,  and  so
                              forth.

     Privilege Set            The privilege set is a bitmask
                              rounded  to a u_long boundary.
                              Bit 0 is the LSB of the  first
                              longword, bit 32 is the LSB of
                              the second  longword,  and  so
                              forth.

     Audit  ID                 The  audit  ID  as  a  single
                              u_long.

     Discretionary ID         A  u_long  for  the  user  ID,
                              followed  by  a u_long for the
                              group ID, followed by a u_long
                              for    the   number,   N,   of
                              supplementary groups, followed
                              by an N u_long list of groups.
                              If a system does  not  support
















                              supplementary    groups,    it
                              should  set  the   number   of
                              groups  to  0  when specifying
                              the  Discretionary   ID,   and
                              should  ignore  the  specified
                              groups  when   receiving   the
                              Discretionary ID.

     ACL                      A   u_long   number   of   ACL
                              elements, followed by the list
                              of  ACL   elements.   An   ACL
                              element is a u_long user ID, a
                              u_long group ID, and a  u_long
                              permission.  The definition of
                              the   permission    bits    is
                              dependent  upon the ACL policy
                              implied by the DOT.

     Audit Information        Additional audit  information.
                              Audit  information  is vendor-
                              system-specific.  The  precise
                              contents  and  format  must be
                              defined for each DOT.

Note that the number of bytes to specify all attributes have
been rounded to the next longword.

1.5  TSIX Attribute Translation Tools
The attribute translation tools discussed  here,  while  not
mandatory  for the TSIX system, do give the Network Security
Officer the ability to specify:

   + The  DOTs  a  system  understands  for  each   security
     attribute configured on the system.
   + The  network  representation  for  an  attribute  of  a
     particular DOT.
   + The rules for translating an attribute from its  native
     representation to the network representation.

The  translation  tools  are  used  in  a  number  of   TSIX
implementations.   While they are not strictly necessary for
TSIX  compliance,  it  is  essential  for   interoperability
between  dissimilar  systems  that  at  least  one  host can
recognize attribute representations other  than  its  native
format  and  be  able  to  translate to and from these other
representations.  While it is possible to implement  a  TSIX
compliant system without an attribute translation mechanism,
the  translation   tools   described   here   are   strongly
recommended  to  promote cross-vendor interoperability.  The
manual pages for the translation tools are included  in  the
TSIX Application Program Interface specification.
















Note that these  same  translation  tools  can  be  used  to
control the translation of RIPSO IP security options to/from
local sensitivity labels.

Attribute translation is accomplished using three databases,
the  m6parser  attribute translation compiler, and a library
of attribute translation routines.   The  databases  consist
of:

   + The M6DOMAINS database, which is used to correlate  the
     DOT's  ASCII  name with the corresponding NRs and rules
     for each attribute defined by that DOT.
   + The M6MAPPINGS database, which is used  to  define  the
     network representations and the translation rules.
   + The  M6BINMAP  database,  which  contains  the   binary
     version  of the M6MAPPINGS database, as compiled by the
     m6parser utility.



















































                          CONTENTS


1.  Token
    Mapping
    and
    Attribute


    1.1  Attribute


    1.2  Attribute
         Exchange
         Through
         Token


    1.3  Token
         Mapping


    1.4  The
         Security
         Attribute
         Token
         Mapping


    1.5  TSIX
         Attribute
         Translation






















                          - iii -














                       LIST OF TABLES


 TABLE
           2.
           SATMP


 TABLE
           4.
           Attribute


 TABLE
           6.
           SATMP
           Message


 TABLE
           8.
           SATMP
           Error


TABLE
           10.
           Server


TABLE
           12.
           TOKD_INIT_REPLY
           Error


TABLE
           14.
           TOKD_MAP_REPLY
           Error


TABLE
           16.
           TOKD_RETRIEVE_REPLY
           Error





                           - iv -




















           Trusted Security Information Exchange
                for Restricted Environments

                        TSIX(RE) 1.0


         Security Attribute Token Mapping Protocol








                 Part number:  010-00139-00

                        Revision:  A
                        August  1994



















                      SECUREWARE, Inc.
              2957 Clairmont Road,  Suite 200

               Atlanta, GA  30329-1647,  USA















                       (404) 315-6296

































































Document Revision History:
Re-published as TSIX(RE) 1.0, Document  Revision  A,  August
1994

          c
Copyright   1990, 1991-1993, 1994 by SECUREWARE, Incorporated
                    All Rights Reserved.
                   Printed in the U.S.A.
SMP, SMP+, CMW+, InterMail, SECUREWARE, and  the  SECUREWARE
logo are trademarks of SECUREWARE, Incorporated.
      r
MaxSix    is   a   registered   trademark   of   SECUREWARE,
Incorporated.
UNIX is  a  registered  trademark  licensed  exclusively  by
X/Open Co., Ltd.












































