Skip to content

File authenticate_grant.cpp

FileList > cubrid > src > object > authenticate_grant.cpp

Go to the source code of this file

  • #include "authenticate_grant.hpp"
  • #include "authenticate.h"
  • #include "authenticate_cache.hpp"
  • #include "authenticate_access_auth.hpp"
  • #include "boot.h"
  • #include "db.h"
  • #include "dbtype.h"
  • #include "class_object.h"
  • #include "schema_manager.h"
  • #include "transaction_cl.h"
  • #include "execute_schema.h"
  • #include "set_object.h"
  • #include "object_accessor.h"
  • #include "object_primitive.h"
  • #include "msgcat_glossary.hpp"
  • #include "jsp_cl.h"
  • #include "catalog_class.h"

Public Functions

Type Name
int add_grant_entry (DB_SET * grants, DB_OBJECT_TYPE obj_type, MOP obj_mop, MOP grantor)
int apply_grants (MOP auth, MOP class_mop, unsigned int * bits)
int appropriate_error (unsigned int bits, unsigned int requested)
int au_check_procedure_authorization (MOP procedure_mop)
int au_force_write_new_auth (void)
int au_grant (DB_OBJECT_TYPE obj_type, MOP user, MOP class_mop, DB_AUTH type, bool grant_option)
void au_print_grants (MOP auth, FILE * fp)
int au_revoke (DB_OBJECT_TYPE obj_type, MOP user, MOP obj_mop, DB_AUTH type, MOP drop_user)
void drop_grant_entry (DB_SET * grants, int index)
int get_grants (MOP auth, DB_SET ** grant_ptr, int filter)

Public Static Functions

Type Name
int au_compare_grantor_and_return (MOP * grantor, MOP obj_mop, DB_AUTH type, MOP login_user, MOP class_owner, MOP drop_user)
int au_grant_class (MOP user, MOP class_mop, DB_AUTH type, bool grant_option)
int au_grant_procedure (MOP user, MOP obj_mop, DB_AUTH type, bool grant_option)
int au_propagate_del_new_auth (DB_OBJECT_TYPE obj_type, AU_GRANT * glist, DB_AUTH mask)
int au_revoke_class (MOP user, MOP class_mop, DB_AUTH type, MOP drop_user)
int au_revoke_procedure (MOP user, MOP obj_mop, DB_AUTH type, MOP drop_user)
int check_grant_option (MOP classop, SM_CLASS * sm_class, DB_AUTH type)
int collect_class_grants (MOP class_mop, DB_AUTH type, MOP revoked_auth, int revoked_grant_index, AU_GRANT ** return_grants)
int find_grant_entry (DB_SET * grants, MOP class_mop, MOP grantor)
void free_grant_list (AU_GRANT * grants)
void map_grant_list (AU_GRANT * grants, MOP grantor)
void print_grant_entry (DB_SET * grants, int grant_index, FILE * fp)
int propagate_revoke (DB_OBJECT_TYPE obj_type, AU_GRANT * grant_list, MOP owner, DB_AUTH mask)

Public Functions Documentation

function add_grant_entry

int add_grant_entry (
    DB_SET * grants,
    DB_OBJECT_TYPE obj_type,
    MOP obj_mop,
    MOP grantor
) 

function apply_grants

int apply_grants (
    MOP auth,
    MOP class_mop,
    unsigned  int * bits
) 

function appropriate_error

int appropriate_error (
    unsigned  int bits,
    unsigned  int requested
) 

function au_check_procedure_authorization

int au_check_procedure_authorization (
    MOP procedure_mop
) 

function au_force_write_new_auth

int au_force_write_new_auth (
    void
) 

function au_grant

int au_grant (
    DB_OBJECT_TYPE obj_type,
    MOP user,
    MOP class_mop,
    DB_AUTH type,
    bool grant_option
) 

function au_print_grants

void au_print_grants (
    MOP auth,
    FILE * fp
) 

function au_revoke

int au_revoke (
    DB_OBJECT_TYPE obj_type,
    MOP user,
    MOP obj_mop,
    DB_AUTH type,
    MOP drop_user
) 

function drop_grant_entry

void drop_grant_entry (
    DB_SET * grants,
    int index
) 

function get_grants

int get_grants (
    MOP auth,
    DB_SET ** grant_ptr,
    int filter
) 

Public Static Functions Documentation

function au_compare_grantor_and_return

static int au_compare_grantor_and_return (
    MOP * grantor,
    MOP obj_mop,
    DB_AUTH type,
    MOP login_user,
    MOP class_owner,
    MOP drop_user
) 

function au_grant_class

static int au_grant_class (
    MOP user,
    MOP class_mop,
    DB_AUTH type,
    bool grant_option
) 

function au_grant_procedure

static int au_grant_procedure (
    MOP user,
    MOP obj_mop,
    DB_AUTH type,
    bool grant_option
) 

function au_propagate_del_new_auth

static int au_propagate_del_new_auth (
    DB_OBJECT_TYPE obj_type,
    AU_GRANT * glist,
    DB_AUTH mask
) 

function au_revoke_class

static int au_revoke_class (
    MOP user,
    MOP class_mop,
    DB_AUTH type,
    MOP drop_user
) 

function au_revoke_procedure

static int au_revoke_procedure (
    MOP user,
    MOP obj_mop,
    DB_AUTH type,
    MOP drop_user
) 

function check_grant_option

static int check_grant_option (
    MOP classop,
    SM_CLASS * sm_class,
    DB_AUTH type
) 

function collect_class_grants

static int collect_class_grants (
    MOP class_mop,
    DB_AUTH type,
    MOP revoked_auth,
    int revoked_grant_index,
    AU_GRANT ** return_grants
) 

function find_grant_entry

static int find_grant_entry (
    DB_SET * grants,
    MOP class_mop,
    MOP grantor
) 

function free_grant_list

static void free_grant_list (
    AU_GRANT * grants
) 

function map_grant_list

static void map_grant_list (
    AU_GRANT * grants,
    MOP grantor
) 

function print_grant_entry

static void print_grant_entry (
    DB_SET * grants,
    int grant_index,
    FILE * fp
) 

function propagate_revoke

static int propagate_revoke (
    DB_OBJECT_TYPE obj_type,
    AU_GRANT * grant_list,
    MOP owner,
    DB_AUTH mask
) 


The documentation for this class was generated from the following file cubrid/src/object/authenticate_grant.cpp