OSF DCE Application Development Guide--Introduction and Style Guide

Security
/********************************************************************/
/* Now register our ACL manager’s object types with the ACL */
/* library... */
/* Register for the mgmt ACL... */
dce_acl_register_object_type(
*db_acl, /* Backing store where ACLs are to be stored. */
&mgmt_acl_mgr_uuid, /* Type of ACL manager: this one is */
/* for mgmt ACL operations; the UUID is defined */
/* globally at the top of this file. */
/* Why do we need this parameter? Well, the way */
/* that the ACL library keeps track of the differ- */
/* ent "sets" of ACL databases is by manager UUID. */
/* The manager UUID is what the library will use */
/* to figure out which ACL database to open and */
/* retrieve a requested ACL’s contents from. */
/* Essentially what we are doing here is setting */
/* up things so that calls to the library routine */
/* dce_acl_is_client_authorized() can be made to */
/* check our ACLs, giving only the ACL UUID and a */
/* manager UUID to get the desired result. */
sizeof mgmt_printstr/sizeof mgmt_printstr[0], /* Number of */
/* items in mgmt_printstr array. */
mgmt_printstr, /* An array of sec_acl_printstring_t struc- */
/* tures containing the printable repre- */
/* sentation of each specified permission. */
&mgmt_info, /* A single sec_acl_printstring_t contain- */
/* ing the name and short description for */
/* the given ACL manager. */
sec_acl_perm_control, /* Permission set needed to change */
/* an ACL. Constants like these are defined */
/* in <dce/aclbase.h>. */
sec_acl_perm_test, /* Permission set needed to test an ACL. */
resolver, /* Server function to get ACL UUID for a given */
/* object; for us it’s the */
/* sample_resolve_by_name() call, below. */
/* This routine is for the use of acl_edit: */
/* it allows acl_edit to receive an object */
/* name and come up with the ACL UUID; at */
/* least that’s what I think it’s for. */
NULL, /* Argument to pass to resolver function. */
0, /* Flags -- none here. */
status);
124246 Tandem Computers Incorporated 3 39