


libt6(3N)                                               libt6(3N)


NNAAMMEE
       libt6 - TSIX trusted IPC library

SSYYNNOOPPSSIISS
       ##iinncclluuddee <<ttssiixx//tt66aattttrrss..hh>>

DDEESSCCRRIIPPTTIIOONN
       lliibbtt66  constitutes  the TSIX Application Program Interface
       (API).  It is a library of routines  that  an  application
       uses  to control attribute transport during trusted inter-
       process communication.  The routines in  the  library  are
       recommended over the underlying system call interfaces for
       portability because they shield the application from oper-
       ating  system,  communication  protocol, and IPC mechanism
       specifics.

       The lliibbtt66 routines provide interfaces  through  which  the
       trusted application:

        +o Specifies  the security attributes used to label outgo-
          ing IPC messages (_o_n_-_m_e_s_s_a_g_e _a_t_t_r_i_b_u_t_e_s ) and reads the
          on-message  attributes  associated with a received mes-
          sage.

        +o Controls the security options of the endpoint  used  to
          perform trusted IPC.

SSEECCUURRIITTYY AATTTTRRIIBBUUTTEESS
       The  security  attributes associated with the sending pro-
       cess are called on-message  attributes  because  they  are
       independent  of  the  contents  of  the message.  The TCBs
       decide what to do with the message based on the on-message
       attributes.   The  security  attributes  associated with a
       process, and therefore those that are used  to  label  IPC
       messages,  vary  with  the configuration of the system but
       must be a subset of the following attributes:

              Sensitivity label

              Nationality Caveats

              Integrity Label

              TSIX Session ID

              Clearance

              Access Control List

              Information label

              Effective Privileges

              Audit ID



TSIX(RE) 1.1               12 Nov 1995                          1





libt6(3N)                                               libt6(3N)


              Process ID

              Additional Audit Information

              Process Attributes

              User ID

              Group ID

              Supplementary Group IDs

       NOTE: Some of these attributes  imply  component  security
       policies that may not be available on some systems.

       The  TSIX  application  program  interface  allows trusted
       applications to change the on-message  attributes  associ-
       ated  with an outgoing message and retrieve the on-message
       attributes associated with an incoming message.

OONN--MMEESSSSAAGGEE AATTTTRRIIBBUUTTEE RROOUUTTIINNEESS
       The on-message  attribute  routines  affect  the  security
       attributes  associated  with outgoing messages or retrieve
       attributes associated with incoming messages.  The  caller
       specifies  attributes to these routines through a tt66aattttrr__tt
       control structure (defined in <<ttssiixx//tt66aattttrrss..hh>>, an  opaque
       structure used to access sets of security attributes.  The
       caller specifies the attributes applied to  outbound  mes-
       sages  or  retrieved  from  incoming messages through TSIX
       routines.  Specified attributes are copied from or written
       to  the  buffers accessible through the control structure.
       Any attributes not designated by the sender  are  supplied
       for  outgoing  messages  by the underlying trusted kernel.
       The routines that send and retrieve on-message  attributes
       operate  on sockets or streams, generically referred to as
       endpoints.

       tt66aalllloocc__bbllkk(3N)       Allocates space for a tt66aattttrr__tt  con-
                             trol structure.

       tt66ffrreeee__bbllkk(3N)        Frees  attribute  control  structure
                             and buffers.  This interface  should
                             be    used   in   conjunction   with
                             tt66aalllloocc__bbllkk(3N), which allocates the
                             space.

       tt66dduupp__bbllkk(3N)         Given  one  attribute control struc-
                             ture, this routine allocates  enough
                             storage  to hold a duplicate control
                             structure and all attributes it ref-
                             erences, and creates a duplicate.

       tt66ccooppyy__bbllkk(3N)        Copies  a tt66aattttrr__tt control structure
                             and the security attributes to which



TSIX(RE) 1.1               12 Nov 1995                          2





libt6(3N)                                               libt6(3N)


                             it  points into a second, previously
                             allocated tt66aattttrr__tt structure and its
                             previously allocated buffers.

       tt66cclleeaarr__bbllkk(3N)       Clears  attributes  from  a tt66aattttrr__tt
                             control structure.

       tt66ccmmpp__bbllkk(3N)         Compares two tt66aattttrr__tt control struc-
                             tures for equal attributes set.

       tt66ssiizzee__aattttrr(3N)       Gets  the  size of an attribute from
                             the control structure.

       tt66ggeett__aattttrr(3N)        Gets an  attribute  handled  by  the
                             control structure.

       tt66sseett__aattttrr(3N)        Sets  an  attribute  handled  by the
                             control structure.

       tt66sseennddttoo(3N)          Sends data and a  specified  set  of
                             security attributes on a endpoint.

       tt66rreeccvvffrroomm(3N)        Reads    a   network   message   and
                             retrieves  the  security  attributes
                             associated with the data.

       tt66ppeeeekk__aattttrr(3N)       Peeks    ahead   and   returns   the
                             attributes associated with the  next
                             byte of data.

       tt66llaasstt__aattttrr(3N)       Returns   the   security  attributes
                             associated with  the  last  byte  of
                             data read from the network endpoint.

       tt66ggeett__eennddpptt__mmaasskk(3N)  Gets the endpoint mask.

       tt66sseett__eennddpptt__mmaasskk(3N)  Sets the endpoint mask.

       tt66ggeett__eennddpptt__ddeeffaauulltt(3N)
                             Gets the endpoint  default  security
                             attributes.

       tt66sseett__eennddpptt__ddeeffaauulltt(3N)
                             Sets  the  endpoint default security
                             attributes.

       tt66ssuuppppoorrtteedd__aattttrrss(3N) Get the  mask  of  system  supported
                             attributes.

       tt66aallllooccaatteedd__aattttrrss(3N) Get the mask of attributes that have
                             been allocated space in a t6 control
                             structure.

       tt66pprreesseenntt__aattttrrss(3N)   Get  the mask of attributes that are



TSIX(RE) 1.1               12 Nov 1995                          3





libt6(3N)                                               libt6(3N)


                             present in a t6 control structure.

NNEETTWWOORRKK EENNDDPPOOIINNTT SSEECCUURRIITTYY OOPPTTIIOONNSS
       A trusted application can manipulate a number of  security
       options  associated with the network endpoint via the fol-
       lowing calls:

       tt66eexxtt__aattttrr(3N)        Turns on or off the security  exten-
                             sions to the network endpoint.  This
                             must  be  called  before  using  any
                             other lliibbtt66 rroouuttiinneess..

       tt66nneeww__aattttrr(3N)        Specifies  to  the  network endpoint
                             that the receiving process  is  only
                             interested  in  receiving attributes
                             if they have changed since the  last
                             time  it  received them.  This saves
                             the  overhead  created  by   passing
                             attributes  unnecessarily  with each
                             message.

IINNCCLLUUDDEE FFIILLEESS
       Any programs  that  use  routines  in  this  library  must
       include the header files containing declarations pertinent
       to the routine.  The synopsis section of each manual  page
       indicates the required header files.  Most routines in the
       library contain  references  to  declarations  defined  in
       <<ttssiixx//tt66aattttrrss..hh>>.    This   file   defines  constants  for
       attribute types to  be  used  by  various  TSIX  attribute
       library  access  functions,  as  well as constants used as
       parameters to the library functions.


























TSIX(RE) 1.1               12 Nov 1995                          4


