acl_getname.c File Reference

#include <rsbac/types.h>
#include <rsbac/getname.h>
#include <rsbac/acl_getname.h>
#include <rsbac/helpers.h>
#include <rsbac/error.h>
#include <string.h>

Go to the source code of this file.

Functions

char * get_acl_subject_type_name (char *name, enum rsbac_acl_subject_type_t value)
enum rsbac_acl_subject_type_t get_acl_subject_type_nr (const char *name)
char * get_acl_group_syscall_name (char *name, enum rsbac_acl_group_syscall_type_t value)
enum rsbac_acl_group_syscall_type_t get_acl_group_syscall_nr (const char *name)
char * get_acl_scd_type_name (char *name, enum rsbac_acl_scd_type_t value)
enum rsbac_acl_scd_type_t get_acl_scd_type_nr (const char *name)
char * get_acl_special_right_name (char *name, enum rsbac_acl_special_rights_t value)
enum rsbac_acl_special_rights_t get_acl_special_right_nr (const char *name)

Variables

static char acl_subject_type_list [ACLS_NONE+1][6]
static char acl_group_syscall_list [ACLGS_none+1][18]
static char acl_scd_type_list [AST_none-32+1][20]
static char acl_special_right_list [ACLR_NONE-32+1][20]


Function Documentation

char* get_acl_group_syscall_name char *  name,
enum rsbac_acl_group_syscall_type_t  value
 

Definition at line 82 of file acl_getname.c.

References acl_group_syscall_list, ACLGS_none, and NULL.

Referenced by rsbac_acl_sys_group().

enum rsbac_acl_group_syscall_type_t get_acl_group_syscall_nr const char *  name  ) 
 

Definition at line 95 of file acl_getname.c.

References acl_group_syscall_list, and ACLGS_none.

char* get_acl_scd_type_name char *  name,
enum rsbac_acl_scd_type_t  value
 

Definition at line 112 of file acl_getname.c.

References acl_scd_type_list, AST_min, AST_none, get_scd_type_name(), and NULL.

Referenced by rsbac_acl_remove_acl(), rsbac_acl_remove_acl_entry(), and rsbac_acl_set_mask().

enum rsbac_acl_scd_type_t get_acl_scd_type_nr const char *  name  ) 
 

Definition at line 132 of file acl_getname.c.

References acl_scd_type_list, AST_none, and get_scd_type_nr().

char* get_acl_special_right_name char *  name,
enum rsbac_acl_special_rights_t  value
 

Definition at line 149 of file acl_getname.c.

References acl_special_right_list, ACLR_NONE, get_request_name(), NULL, and RSBAC_ACL_SPECIAL_RIGHT_BASE.

enum rsbac_acl_special_rights_t get_acl_special_right_nr const char *  name  ) 
 

Definition at line 169 of file acl_getname.c.

References acl_special_right_list, ACLR_NONE, get_request_nr(), and RSBAC_ACL_SPECIAL_RIGHT_BASE.

char* get_acl_subject_type_name char *  name,
enum rsbac_acl_subject_type_t  value
 

Definition at line 52 of file acl_getname.c.

References acl_subject_type_list, ACLS_NONE, and NULL.

Referenced by rsbac_acl_remove_acl_entry(), rsbac_acl_sys_add_to_acl_entry(), rsbac_acl_sys_remove_acl_entry(), rsbac_acl_sys_remove_from_acl_entry(), and rsbac_acl_sys_set_acl_entry().

enum rsbac_acl_subject_type_t get_acl_subject_type_nr const char *  name  ) 
 

Definition at line 65 of file acl_getname.c.

References acl_subject_type_list, and ACLS_NONE.


Variable Documentation

char acl_group_syscall_list[ACLGS_none+1][18] [static]
 

Initial value:

 {
                          "add_group",
                          "change_group",
                          "remove_group",
                          "get_group_entry",
                          "list_groups",
                          "add_member",
                          "remove_member",
                          "get_user_groups",
                          "get_group_members",
                          "none" }

Definition at line 28 of file acl_getname.c.

Referenced by get_acl_group_syscall_name(), and get_acl_group_syscall_nr().

char acl_scd_type_list[AST_none-32+1][20] [static]
 

Initial value:

 {
                          "auth_administration",
                          "none" }

Definition at line 40 of file acl_getname.c.

Referenced by get_acl_scd_type_name(), and get_acl_scd_type_nr().

char acl_special_right_list[ACLR_NONE-32+1][20] [static]
 

Initial value:

 {
                          "FORWARD",
                          "ACCESS_CONTROL",
                          "SUPERVISOR",
                          "NONE" }

Definition at line 44 of file acl_getname.c.

Referenced by get_acl_special_right_name(), and get_acl_special_right_nr().

char acl_subject_type_list[ACLS_NONE+1][6] [static]
 

Initial value:

 {
                          "USER",
                          "ROLE",
                          "GROUP",
                          "NONE" }

Definition at line 22 of file acl_getname.c.

Referenced by get_acl_subject_type_name(), and get_acl_subject_type_nr().


Generated on Fri Jun 17 09:45:30 2005 for RSBAC by  doxygen 1.4.2