#include <rsbac/types.h>#include <rsbac/helpers.h>#include <rsbac/error.h>Go to the source code of this file.
|
|
Definition at line 14 of file pm_getname.h. |
|
||||||||||||
|
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 };
|
1.4.2