pm_getname.c File Reference

#include <rsbac/pm_getname.h>
#include <rsbac/helpers.h>
#include <rsbac/error.h>
#include <string.h>

Go to the source code of this file.

Functions

char * get_pm_list_name (char *name, enum rsbac_pm_list_t value)
enum rsbac_pm_list_t get_pm_list_nr (const char *name)
char * get_pm_all_list_name (char *name, enum rsbac_pm_all_list_t value)
enum rsbac_pm_all_list_t get_pm_all_list_nr (const char *name)
char * get_pm_role_name (char *name, enum rsbac_pm_role_t value)
enum rsbac_pm_role_t get_pm_role_nr (const char *name)
char * get_pm_process_type_name (char *name, enum rsbac_pm_process_type_t value)
enum rsbac_pm_process_type_t get_pm_process_type_nr (const char *name)
char * get_pm_object_type_name (char *name, enum rsbac_pm_object_type_t value)
enum rsbac_pm_object_type_t get_pm_object_type_nr (const char *name)
char * get_pm_function_type_name (char *name, enum rsbac_pm_function_type_t value)
enum rsbac_pm_function_type_t get_pm_function_type_nr (const char *name)
char * get_pm_function_param (char *name, enum rsbac_pm_function_type_t value)
char * get_pm_tkt_function_type_name (char *name, enum rsbac_pm_tkt_function_type_t value)
enum rsbac_pm_tkt_function_type_t get_pm_tkt_function_type_nr (const char *name)
char * get_pm_tkt_function_param (char *name, enum rsbac_pm_tkt_function_type_t value)

Variables

static char pm_list [PL_none][6]
static char pm_all_list [PA_none][11]
static char pm_role [PR_none+1][24]
static char pm_process_type [PP_TP+1][5]
static char pm_object_type [PO_dir+1][18]
static char pm_function_type [PF_none+1][24]
static char pm_function_param [PF_none+1][123]
static char pm_tkt_function_type [PTF_none+1][25]
static char pm_tkt_function_param [PTF_none+1][116]


Function Documentation

char* get_pm_all_list_name char *  name,
enum rsbac_pm_all_list_t  value
 

Definition at line 256 of file pm_getname.c.

References NULL, PA_none, and pm_all_list.

enum rsbac_pm_all_list_t get_pm_all_list_nr const char *  name  ) 
 

Definition at line 268 of file pm_getname.c.

References PA_none, and pm_all_list.

char* get_pm_function_param char *  name,
enum rsbac_pm_function_type_t  value
 

Definition at line 498 of file pm_getname.c.

References NULL, PF_none, and pm_function_param.

char* get_pm_function_type_name char *  name,
enum rsbac_pm_function_type_t  value
 

Definition at line 469 of file pm_getname.c.

References NULL, PF_none, and pm_function_type.

Referenced by rsbac_pm().

enum rsbac_pm_function_type_t get_pm_function_type_nr const char *  name  ) 
 

Definition at line 481 of file pm_getname.c.

References PF_none, and pm_function_type.

char* get_pm_list_name char *  name,
enum rsbac_pm_list_t  value
 

Definition at line 228 of file pm_getname.c.

References NULL, PL_none, and pm_list.

enum rsbac_pm_list_t get_pm_list_nr const char *  name  ) 
 

Definition at line 240 of file pm_getname.c.

References PL_none, and pm_list.

char* get_pm_object_type_name char *  name,
enum rsbac_pm_object_type_t  value
 

Definition at line 347 of file pm_getname.c.

References NULL, pm_object_type, and PO_dir.

enum rsbac_pm_object_type_t get_pm_object_type_nr const char *  name  ) 
 

Definition at line 359 of file pm_getname.c.

References pm_object_type, PO_dir, and PO_none.

char* get_pm_process_type_name char *  name,
enum rsbac_pm_process_type_t  value
 

Definition at line 316 of file pm_getname.c.

References NULL, pm_process_type, and PP_TP.

enum rsbac_pm_process_type_t get_pm_process_type_nr const char *  name  ) 
 

Definition at line 328 of file pm_getname.c.

References pm_process_type, PP_none, and PP_TP.

char* get_pm_role_name char *  name,
enum rsbac_pm_role_t  value
 

Definition at line 286 of file pm_getname.c.

References NULL, pm_role, and PR_none.

enum rsbac_pm_role_t get_pm_role_nr const char *  name  ) 
 

Definition at line 298 of file pm_getname.c.

References pm_role, and PR_none.

char* get_pm_tkt_function_param char *  name,
enum rsbac_pm_tkt_function_type_t  value
 

Definition at line 543 of file pm_getname.c.

References NULL, pm_tkt_function_param, and PTF_none.

char* get_pm_tkt_function_type_name char *  name,
enum rsbac_pm_tkt_function_type_t  value
 

Definition at line 513 of file pm_getname.c.

References NULL, pm_tkt_function_type, and PTF_none.

enum rsbac_pm_tkt_function_type_t get_pm_tkt_function_type_nr const char *  name  ) 
 

Definition at line 526 of file pm_getname.c.

References pm_tkt_function_type, and PTF_none.


Variable Documentation

char pm_all_list[PA_none][11] [static]
 

Initial value:

 {
                        "task",
                        "class",
                        "na",
                        "cs",
                        "tp",
                        "pp",
                        "tkt",
                        "task_set",
                        "tp_set",
                        "ru_set",
                        "pp_set",
                        "in_pp_set",
                        "out_pp_set" }

Definition at line 28 of file pm_getname.c.

Referenced by get_pm_all_list_name(), and get_pm_all_list_nr().

char pm_function_param[PF_none+1][123] [static]
 

Definition at line 133 of file pm_getname.c.

Referenced by get_pm_function_param().

char pm_function_type[PF_none+1][24] [static]
 

Definition at line 99 of file pm_getname.c.

Referenced by get_pm_function_type_name(), and get_pm_function_type_nr().

char pm_list[PL_none][6] [static]
 

Initial value:

 {
                        "task",
                        "class",
                        "na",
                        "cs",
                        "tp",
                        "pp",
                        "tkt" }

Definition at line 19 of file pm_getname.c.

Referenced by get_pm_list_name(), and get_pm_list_nr().

char pm_object_type[PO_dir+1][18] [static]
 

Initial value:

 {
                          "none",
                          "tp",
                          "personal_data",
                          "non_personal_data",
                          "ipc",
                          "dir" }

Definition at line 55 of file pm_getname.c.

Referenced by get_pm_object_type_name(), and get_pm_object_type_nr().

char pm_process_type[PP_TP+1][5] [static]
 

Initial value:

 {
                          "none",
                          "tp" }

Definition at line 51 of file pm_getname.c.

Referenced by get_pm_process_type_name(), and get_pm_process_type_nr().

char pm_role[PR_none+1][24] [static]
 

Initial value:

 {
                         "user",
                         "security_officer",
                         "data_protection_officer",
                         "tp_manager",
                         "system_admin",
                         "none" }

Definition at line 43 of file pm_getname.c.

Referenced by get_pm_role_name(), and get_pm_role_nr().

char pm_tkt_function_param[PTF_none+1][116] [static]
 

Initial value:

 {
                          "\t\ttask class tp accesses  (class can be IPC, DEV or NIL)",
                          "\ttask class tp accesses  (class can be IPC, DEV or NIL)",
                          "\tid purpose",
                          "\tid",
                          "id purpose1 purpose2 ...",
                          "id",
                          "task tp",
                          "task tp",
                          "\tfilename purpose",
                          "\tfilename purpose",
                          "\tid default-class (class must not be NIL, IPC or DEV)",
                          "\tid",
                          "user task",
                          "user task",
                          "user",
                          "\tuser role\n (roles: user|security_officer|data_protection_officer|tp_manager|system_admin)",
                          "filename object_class\n (sets object_type personal_data (cl!=0) or non_personal_data (cl=0)",
                          "\tvalue (0 or 1)",
                          "\tvalue (0 or 1)",
                          "devicename object_type [object_class]\n (types: none, tp, personal_data, non_personal_data)\n (default class is DEV)",
                          "filename value(0 or 1)",
                          "filename value(0 or 1)",
                          
                          "user task",
                          "user task",
                          "INVALID"}

Definition at line 197 of file pm_getname.c.

Referenced by get_pm_tkt_function_param().

char pm_tkt_function_type[PTF_none+1][25] [static]
 

Initial value:

 {
                          "add_na",
                          "delete_na",
                          "add_task",
                          "delete_task",
                          "add_object_class",
                          "delete_object_class",
                          "add_authorized_tp",
                          "delete_authorized_tp",
                          "add_consent",
                          "delete_consent",
                          "add_purpose",
                          "delete_purpose",
                          "add_responsible_user",
                          "delete_responsible_user",
                          "delete_user_aci",
                          "set_role",
                          "set_object_class",
                          "switch_pm",
                          "switch_auth",
                          "set_device_object_type",
                          "set_auth_may_setuid",
                          "set_auth_may_set_cap",
                          
                          "add_authorized_task",
                          "delete_authorized_task",
                          "none"}

Definition at line 168 of file pm_getname.c.

Referenced by get_pm_tkt_function_type_name(), and get_pm_tkt_function_type_nr().


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