Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dce_acl_inq_client_permset(3sec) — DCE 3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

dce_acl_inq_client_permset(3sec)  —  Subroutines

NAME

dce_acl_inq_client_permset — Returns the client’s permissions corresponding to an ACL

Synopsis

void dce_acl_inq_client_permset(
handle_t handle,
uuid_t ∗mgr_type,
uuid_t ∗acl_uuid,
uuid_t ∗owner_id,
uuid_t ∗group_id,
sec_acl_permset_t ∗permset,
error_status_t ∗status);

Parameters

Input

handleThe remote procedure call binding handle. 

mgr_typeA pointer to the UUID identifying the type of the ACL manager in question.  There may be more than one type of ACL manager protecting the object whose ACL is bound to the input handle.  Use this parameter to distinguish them. 

acl_uuidA pointer to the UUID of the ACL. 

owner_idIdentifies the owner of the object that is protected by the specified ACL.  If the sec_acl_e_type_user_obj ACLE (ACL entry) exists, then the owner_id (uuid_t pointer) can not be NULL.  If it is, then the error sec_acl_expected_user_obj is returned. 

group_idIdentifies the group to which the object that is protected by the specified ACL belongs.  If the a sec_acl_e_type_group_obj ACLE exists, the group_id (uuid_t pointer) can not be NULL.  If it is, the error sec_acl_expected_group_obj is returned. 

Output

permsetThe set of permissions allowed to the client. 

statusA pointer to the completion status.  On successful completion, the routine returns error_status_ok.  Otherwise, it returns an error. 

Description

The dce_acl_inq_client_permset() routine returns the client’s permissions that correspond to the ACL.  It finds the ACL in the database as defined for this ACL manager type with dce_acl_register_object_type().  The client’s credentials are determined from the binding handle.  The ACL and credentials determine the permission set. 

Errors

The following describes a partial list of errors that might be returned.  Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages. 

acl_s_bad_manager_type
The mgr_type parameter does not match the manager type in the ACL itself. 

error_status_ok
The call was successful.

Related Information

Functions: dce_acl_inq_client_pac(3sec), dce_acl_inq_permset_for_pac(3sec), dce_acl_register_object_type(3sec). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026