#include <rsbac/pm_getname.h>
#include <rsbac/helpers.h>
#include <rsbac/error.h>
#include <string.h>
Go to the source code of this file.
|
Definition at line 256 of file pm_getname.c. References NULL, PA_none, and pm_all_list. 00258 { 00259 if(!name) 00260 return(NULL); 00261 if(value > PA_none) 00262 strcpy(name, "ERROR!"); 00263 else 00264 strcpy(name, pm_all_list[value]); 00265 return(name); 00266 };
|
|
Definition at line 268 of file pm_getname.c. References PA_none, and pm_all_list. 00269 { 00270 enum rsbac_pm_all_list_t i; 00271 00272 if(!name) 00273 return(PA_none); 00274 for (i = 0; i < PA_none; i++) 00275 { 00276 if (!strcmp(name,pm_all_list[i])) 00277 { 00278 return(i); 00279 } 00280 } 00281 return(PA_none); 00282 };
|
|
Definition at line 498 of file pm_getname.c. References NULL, PF_none, and pm_function_param. 00500 { 00501 if(!name) 00502 return(NULL); 00503 if(value > PF_none) 00504 strcpy(name, "ERROR!"); 00505 else 00506 strcpy(name, pm_function_param[value]); 00507 return(name); 00508 };
|
|
Definition at line 469 of file pm_getname.c. References NULL, PF_none, and pm_function_type. Referenced by rsbac_pm(). 00471 { 00472 if(!name) 00473 return(NULL); 00474 if(value > PF_none) 00475 strcpy(name, "ERROR!"); 00476 else 00477 strcpy(name, pm_function_type[value]); 00478 return(name); 00479 };
|
|
Definition at line 481 of file pm_getname.c. References PF_none, and pm_function_type. 00482 { 00483 enum rsbac_pm_function_type_t i; 00484 00485 if(!name) 00486 return(PF_none); 00487 for (i = 0; i < PF_none; i++) 00488 { 00489 if (!strcmp(name,pm_function_type[i])) 00490 { 00491 return(i); 00492 } 00493 } 00494 return(PF_none); 00495 };
|
|
Definition at line 228 of file pm_getname.c. References NULL, PL_none, and pm_list. 00230 { 00231 if(!name) 00232 return(NULL); 00233 if(value > PL_none) 00234 strcpy(name, "ERROR!"); 00235 else 00236 strcpy(name, pm_list[value]); 00237 return(name); 00238 };
|
|
Definition at line 240 of file pm_getname.c. References PL_none, and pm_list. 00241 { 00242 enum rsbac_pm_list_t i; 00243 00244 if(!name) 00245 return(PL_none); 00246 for (i = 0; i < PL_none; i++) 00247 { 00248 if (!strcmp(name,pm_list[i])) 00249 { 00250 return(i); 00251 } 00252 } 00253 return(PL_none); 00254 };
|
|
Definition at line 347 of file pm_getname.c. References NULL, pm_object_type, and PO_dir. 00349 { 00350 if(!name) 00351 return(NULL); 00352 if(value > PO_dir) 00353 strcpy(name, "ERROR!"); 00354 else 00355 strcpy(name, pm_object_type[value]); 00356 return(name); 00357 };
|
|
Definition at line 359 of file pm_getname.c. References pm_object_type, PO_dir, and PO_none. 00360 { 00361 enum rsbac_pm_object_type_t i; 00362 00363 if(!name) 00364 return(PO_none); 00365 for (i = 0; i < PO_dir; i++) 00366 { 00367 if (!strcmp(name,pm_object_type[i])) 00368 { 00369 return(i); 00370 } 00371 } 00372 return(PO_none); 00373 };
|
|
Definition at line 316 of file pm_getname.c. References NULL, pm_process_type, and PP_TP. 00318 { 00319 if(!name) 00320 return(NULL); 00321 if(value > PP_TP) 00322 strcpy(name, "ERROR!"); 00323 else 00324 strcpy(name, pm_process_type[value]); 00325 return(name); 00326 };
|
|
Definition at line 328 of file pm_getname.c. References pm_process_type, PP_none, and PP_TP. 00329 { 00330 enum rsbac_pm_process_type_t i; 00331 00332 if(!name) 00333 return(PP_none); 00334 for (i = 0; i < PP_TP; i++) 00335 { 00336 if (!strcmp(name,pm_process_type[i])) 00337 { 00338 return(i); 00339 } 00340 } 00341 return(PP_none); 00342 };
|
|
Definition at line 286 of file pm_getname.c. References NULL, pm_role, and PR_none. 00288 { 00289 if(!name) 00290 return(NULL); 00291 if(value > PR_none) 00292 strcpy(name, "ERROR!"); 00293 else 00294 strcpy(name, pm_role[value]); 00295 return(name); 00296 };
|
|
Definition at line 298 of file pm_getname.c. References pm_role, and PR_none. 00299 { 00300 enum rsbac_pm_role_t i; 00301 00302 if(!name) 00303 return(PR_none); 00304 for (i = 0; i < PR_none; i++) 00305 { 00306 if (!strcmp(name,pm_role[i])) 00307 { 00308 return(i); 00309 } 00310 } 00311 return(PR_none); 00312 };
|
|
Definition at line 543 of file pm_getname.c. References NULL, pm_tkt_function_param, and PTF_none. 00545 { 00546 if(!name) 00547 return(NULL); 00548 if(value > PTF_none) 00549 strcpy(name, "ERROR!"); 00550 else 00551 strcpy(name, pm_tkt_function_param[value]); 00552 return(name); 00553 };
|
|
Definition at line 513 of file pm_getname.c. References NULL, pm_tkt_function_type, and PTF_none. 00515 { 00516 if(!name) 00517 return(NULL); 00518 if(value > PTF_none) 00519 strcpy(name, "ERROR!"); 00520 else 00521 strcpy(name, pm_tkt_function_type[value]); 00522 return(name); 00523 };
|
|
Definition at line 526 of file pm_getname.c. References pm_tkt_function_type, and PTF_none. 00527 { 00528 enum rsbac_pm_tkt_function_type_t i; 00529 00530 if(!name) 00531 return(PTF_none); 00532 for (i = 0; i < PTF_none; i++) 00533 { 00534 if (!strcmp(name,pm_tkt_function_type[i])) 00535 { 00536 return(i); 00537 } 00538 } 00539 return(PTF_none); 00540 };
|
|
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(). |
|
Definition at line 133 of file pm_getname.c. Referenced by get_pm_function_param(). |
|
Definition at line 99 of file pm_getname.c. Referenced by get_pm_function_type_name(), and get_pm_function_type_nr(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |