Previous section.

DCE 1.1: Authentication and Security Services
Copyright © 1997 The Open Group

NAME

sec_acl_calc_mask-Obtain MASK_OBJ from an ACL.

SYNOPSIS

#include <dce/daclif.h>

void sec_acl_calc_mask(
    sec_acl_list_t acl_list,
    error_status_t *status);

PARAMETERS

Input/Output

acl_list

An ACL list.

Output

status

Completion status. On successful completion, error_status_ok is returned. Otherwise, an error (!= error_status_ok) is returned.

DESCRIPTION

The sec_acl_calc_mask() routine sets the permission bits of the (sec_acl_e_type_mask_obj) entry (creating it first, if necessary) of each of the ACLs in the specified ACL list (acl_list), to the "union" (bitwise OR) of the permissions of all the ACL entries in the ACL of types USER, FOREIGN_USER, GROUP_OBJ, GROUP, FOREIGN_GROUP, FOREIGN_OTHER and ANY_OTHER (but not USER_OBJ, OTHER_OBJ, UNAUTHENTICATED, EXTENDED or MASK_OBJ, if these exist).

ERRORS

error_status_ok, sec_acl_cant_allocate_memory.

SEE ALSO

Functions: sec_acl_get_manager_types_semantics().
Please note that the html version of this specification may contain formatting aberrations. The definitive version is available as an electronic publication on CD-ROM from The Open Group.

Contents Next section Index