pm.h File Reference

#include <linux/init.h>
#include <rsbac/pm_types.h>

Go to the source code of this file.

Functions

int rsbac_init_pm (void) __init
int rsbac_stats_pm (void)
int rsbac_pm_add_to_set (rsbac_list_ta_number_t, enum rsbac_pm_set_t, union rsbac_pm_set_id_t, union rsbac_pm_set_member_t)
int rsbac_pm_remove_from_set (rsbac_list_ta_number_t, enum rsbac_pm_set_t, union rsbac_pm_set_id_t, union rsbac_pm_set_member_t)
int rsbac_pm_clear_set (rsbac_list_ta_number_t, enum rsbac_pm_set_t, union rsbac_pm_set_id_t)
rsbac_boolean_t rsbac_pm_set_member (rsbac_list_ta_number_t, enum rsbac_pm_set_t, union rsbac_pm_set_id_t, union rsbac_pm_set_member_t)
rsbac_boolean_t rsbac_pm_pp_subset (rsbac_pm_pp_set_id_t, rsbac_pm_in_pp_set_id_t)
rsbac_boolean_t rsbac_pm_pp_superset (rsbac_pm_pp_set_id_t, rsbac_pm_out_pp_set_id_t)
rsbac_boolean_t rsbac_pm_pp_only (rsbac_pm_purpose_id_t, rsbac_pm_out_pp_set_id_t)
int rsbac_pm_pp_intersec (rsbac_pm_pp_set_id_t, rsbac_pm_in_pp_set_id_t)
int rsbac_pm_pp_union (rsbac_pm_pp_set_id_t, rsbac_pm_out_pp_set_id_t)
int rsbac_pm_create_set (rsbac_list_ta_number_t, enum rsbac_pm_set_t, union rsbac_pm_set_id_t)
rsbac_boolean_t rsbac_pm_set_exist (rsbac_list_ta_number_t, enum rsbac_pm_set_t, union rsbac_pm_set_id_t)
int rsbac_pm_remove_set (rsbac_list_ta_number_t, enum rsbac_pm_set_t, union rsbac_pm_set_id_t)
int rsbac_pm_get_data (rsbac_list_ta_number_t, enum rsbac_pm_target_t, union rsbac_pm_target_id_t, enum rsbac_pm_data_t, union rsbac_pm_data_value_t *)
int rsbac_pm_get_all_data (rsbac_list_ta_number_t, enum rsbac_pm_target_t, union rsbac_pm_target_id_t, union rsbac_pm_all_data_value_t *)
rsbac_boolean_t rsbac_pm_exists (rsbac_list_ta_number_t, enum rsbac_pm_target_t, union rsbac_pm_target_id_t)
int rsbac_pm_set_data (rsbac_list_ta_number_t, enum rsbac_pm_target_t, union rsbac_pm_target_id_t, enum rsbac_pm_data_t, union rsbac_pm_data_value_t)
int rsbac_pm_add_target (rsbac_list_ta_number_t, enum rsbac_pm_target_t, union rsbac_pm_all_data_value_t)
int rsbac_pm_remove_target (rsbac_list_ta_number_t, enum rsbac_pm_target_t, union rsbac_pm_target_id_t)


Function Documentation

int rsbac_init_pm void   ) 
 

Definition at line 1201 of file pm_data_structures.c.

References class_handle, cs_handle, rsbac_list_info_t::data_size, rsbac_list_lol_info_t::data_size, rsbac_list_info_t::desc_size, rsbac_list_lol_info_t::desc_size, in_pp_set_handle, rsbac_list_info_t::key, rsbac_list_lol_info_t::key, rsbac_list_info_t::max_age, rsbac_list_lol_info_t::max_age, na_handle, NULL, out_pp_set_handle, PA_class, PA_cs, PA_in_pp_set, PA_na, PA_out_pp_set, PA_pp, PA_pp_set, PA_ru_set, PA_task, PA_task_set, PA_tkt, PA_tp, PA_tp_set, pp_handle, pp_set_handle, proc_rsbac_root_p, registration_error(), RSBAC_EREINIT, rsbac_is_initialized(), RSBAC_LIST_BACKUP, rsbac_list_compare_u32(), rsbac_list_lol_register(), RSBAC_LIST_PERSIST, rsbac_list_register(), RSBAC_LIST_VERSION, RSBAC_PM_CLASS_LIST_NAME, RSBAC_PM_CLASS_LIST_PROC_NAME, RSBAC_PM_CLASS_LIST_VERSION, RSBAC_PM_CS_LIST_NAME, RSBAC_PM_CS_LIST_PROC_NAME, RSBAC_PM_CS_LIST_VERSION, RSBAC_PM_IN_PP_SET_LIST_NAME, RSBAC_PM_IN_PP_SET_LIST_PROC_NAME, RSBAC_PM_LIST_KEY, RSBAC_PM_NA_LIST_NAME, RSBAC_PM_NA_LIST_PROC_NAME, RSBAC_PM_NA_LIST_VERSION, RSBAC_PM_NO_VERSION, RSBAC_PM_OUT_PP_SET_LIST_NAME, RSBAC_PM_OUT_PP_SET_LIST_PROC_NAME, RSBAC_PM_PP_LIST_NAME, RSBAC_PM_PP_LIST_PROC_NAME, RSBAC_PM_PP_LIST_VERSION, RSBAC_PM_PP_SET_LIST_NAME, RSBAC_PM_PP_SET_LIST_PROC_NAME, RSBAC_PM_PP_SET_LIST_VERSION, RSBAC_PM_PROC_DIR_NAME, RSBAC_PM_PROC_STATS_NAME, RSBAC_PM_RU_SET_LIST_NAME, RSBAC_PM_RU_SET_LIST_PROC_NAME, RSBAC_PM_RU_SET_LIST_VERSION, RSBAC_PM_TASK_LIST_NAME, RSBAC_PM_TASK_LIST_PROC_NAME, RSBAC_PM_TASK_LIST_VERSION, RSBAC_PM_TASK_SET_LIST_NAME, RSBAC_PM_TASK_SET_LIST_PROC_NAME, RSBAC_PM_TASK_SET_LIST_VERSION, RSBAC_PM_TKT_LIST_NAME, RSBAC_PM_TKT_LIST_PROC_NAME, RSBAC_PM_TKT_LIST_VERSION, RSBAC_PM_TP_LIST_NAME, RSBAC_PM_TP_LIST_PROC_NAME, RSBAC_PM_TP_LIST_VERSION, RSBAC_PM_TP_SET_LIST_NAME, RSBAC_PM_TP_SET_LIST_PROC_NAME, RSBAC_PM_TP_SET_LIST_VERSION, ru_set_handle, rsbac_list_lol_info_t::subdata_size, rsbac_list_lol_info_t::subdesc_size, task_handle, task_set_handle, tkt_handle, tp_handle, tp_set_handle, rsbac_list_info_t::version, and rsbac_list_lol_info_t::version.

Referenced by rsbac_do_init().

int rsbac_pm_add_target rsbac_list_ta_number_t  ,
enum  rsbac_pm_target_t,
union  rsbac_pm_all_data_value_t
 

Definition at line 2839 of file pm_data_structures.c.

References class_handle, cs_handle, na_handle, pp_handle, RSBAC_EINVALIDTARGET, rsbac_ta_list_add_ttl(), task_handle, tkt_handle, and tp_handle.

Referenced by rsbac_pm().

int rsbac_pm_add_to_set rsbac_list_ta_number_t  ,
enum  rsbac_pm_set_t,
union  rsbac_pm_set_id_t,
union  rsbac_pm_set_member_t
 

Definition at line 1783 of file pm_data_structures.c.

References in_pp_set_handle, NULL, out_pp_set_handle, pp_set_handle, RSBAC_EINVALIDTARGET, rsbac_ta_list_lol_subadd_ttl(), ru_set_handle, task_set_handle, and tp_set_handle.

Referenced by adjust_in_out_pp_ipc(), and rsbac_pm().

int rsbac_pm_clear_set rsbac_list_ta_number_t  ,
enum  rsbac_pm_set_t,
union  rsbac_pm_set_id_t
 

Definition at line 1843 of file pm_data_structures.c.

References in_pp_set_handle, out_pp_set_handle, pp_set_handle, RSBAC_EINVALIDTARGET, rsbac_ta_list_lol_subremove_all(), ru_set_handle, task_set_handle, and tp_set_handle.

Referenced by adjust_in_out_pp_ipc(), and rsbac_pm().

int rsbac_pm_create_set rsbac_list_ta_number_t  ,
enum  rsbac_pm_set_t,
union  rsbac_pm_set_id_t
 

Definition at line 2075 of file pm_data_structures.c.

References in_pp_set_handle, NULL, out_pp_set_handle, pp_set_handle, RSBAC_EEXISTS, RSBAC_EINVALIDTARGET, rsbac_ta_list_lol_add_ttl(), rsbac_ta_list_lol_exist(), ru_set_handle, task_set_handle, and tp_set_handle.

Referenced by adjust_in_out_pp_ipc(), and rsbac_pm().

rsbac_boolean_t rsbac_pm_exists rsbac_list_ta_number_t  ,
enum  rsbac_pm_target_t,
union  rsbac_pm_target_id_t
 

Definition at line 2555 of file pm_data_structures.c.

References class_handle, cs_handle, FALSE, na_handle, NULL, pp_handle, pp_set_handle, RSBAC_PM_DEV_OBJECT_CLASS_ID, RSBAC_PM_IPC_OBJECT_CLASS_ID, rsbac_ta_list_exist(), rsbac_ta_list_get_data_ttl(), rsbac_ta_list_lol_exist(), rsbac_ta_list_lol_remove(), rsbac_ta_list_remove(), task_handle, tkt_handle, tp_handle, and TRUE.

Referenced by na_and_pp_or_cs(), rsbac_pm(), and rsbac_pm_create_file().

int rsbac_pm_get_all_data rsbac_list_ta_number_t  ,
enum  rsbac_pm_target_t,
union  rsbac_pm_target_id_t,
union rsbac_pm_all_data_value_t * 
 

Definition at line 2460 of file pm_data_structures.c.

References class_handle, cs_handle, na_handle, NULL, pp_handle, RSBAC_EINVALIDTARGET, RSBAC_EINVALIDVALUE, rsbac_ta_list_get_data_ttl(), task_handle, tkt_handle, and tp_handle.

Referenced by rsbac_pm().

int rsbac_pm_get_data rsbac_list_ta_number_t  ,
enum  rsbac_pm_target_t,
union  rsbac_pm_target_id_t,
enum  rsbac_pm_data_t,
union rsbac_pm_data_value_t * 
 

Definition at line 2219 of file pm_data_structures.c.

References class_handle, cs_handle, na_handle, NULL, pp_handle, RSBAC_EINVALIDATTR, RSBAC_EINVALIDTARGET, RSBAC_EINVALIDVALUE, rsbac_ta_list_get_data_ttl(), task_handle, tkt_handle, and tp_handle.

Referenced by adjust_in_out_pp(), na_and_pp_ipc(), na_and_pp_or_cs(), na_dev(), na_ipc(), rsbac_adf_request_pm(), rsbac_adf_set_attr_pm(), rsbac_pm(), and rsbac_pm_create_file().

int rsbac_pm_pp_intersec rsbac_pm_pp_set_id_t  ,
rsbac_pm_in_pp_set_id_t 
 

Definition at line 1994 of file pm_data_structures.c.

References in_pp_set_handle, NULL, pp_set_handle, RSBAC_EINVALIDVALUE, rsbac_list_lol_add(), rsbac_list_lol_exist(), rsbac_list_lol_get_all_subdesc(), rsbac_list_lol_subadd(), rsbac_list_lol_subexist(), rsbac_list_lol_subremove(), and rsbac_vfree.

Referenced by adjust_in_out_pp().

rsbac_boolean_t rsbac_pm_pp_only rsbac_pm_purpose_id_t  ,
rsbac_pm_out_pp_set_id_t 
 

Definition at line 1971 of file pm_data_structures.c.

References FALSE, out_pp_set_handle, rsbac_list_lol_subcount(), rsbac_list_lol_subexist(), and TRUE.

Referenced by na_and_pp_ipc().

rsbac_boolean_t rsbac_pm_pp_subset rsbac_pm_pp_set_id_t  ,
rsbac_pm_in_pp_set_id_t 
 

Definition at line 1898 of file pm_data_structures.c.

References FALSE, in_pp_set_handle, pp_set_handle, rsbac_list_lol_exist(), rsbac_list_lol_get_all_subdesc(), rsbac_list_lol_subexist(), rsbac_vfree, and TRUE.

Referenced by na_and_pp_or_cs().

rsbac_boolean_t rsbac_pm_pp_superset rsbac_pm_pp_set_id_t  ,
rsbac_pm_out_pp_set_id_t 
 

Definition at line 1936 of file pm_data_structures.c.

References FALSE, out_pp_set_handle, pp_set_handle, rsbac_list_lol_exist(), rsbac_list_lol_get_all_subdesc(), rsbac_list_lol_subexist(), rsbac_vfree, and TRUE.

Referenced by na_and_pp_or_cs().

int rsbac_pm_pp_union rsbac_pm_pp_set_id_t  ,
rsbac_pm_out_pp_set_id_t 
 

Definition at line 2040 of file pm_data_structures.c.

References NULL, out_pp_set_handle, pp_set_handle, RSBAC_EINVALIDVALUE, rsbac_list_lol_add(), rsbac_list_lol_exist(), rsbac_list_lol_get_all_subdesc(), rsbac_list_lol_subadd(), and rsbac_vfree.

Referenced by adjust_in_out_pp().

int rsbac_pm_remove_from_set rsbac_list_ta_number_t  ,
enum  rsbac_pm_set_t,
union  rsbac_pm_set_id_t,
union  rsbac_pm_set_member_t
 

Definition at line 1813 of file pm_data_structures.c.

References in_pp_set_handle, out_pp_set_handle, pp_set_handle, RSBAC_EINVALIDTARGET, rsbac_ta_list_lol_subremove(), ru_set_handle, task_set_handle, and tp_set_handle.

Referenced by rsbac_pm().

int rsbac_pm_remove_set rsbac_list_ta_number_t  ,
enum  rsbac_pm_set_t,
union  rsbac_pm_set_id_t
 

Definition at line 2182 of file pm_data_structures.c.

References in_pp_set_handle, out_pp_set_handle, pp_set_handle, RSBAC_EINVALIDTARGET, rsbac_ta_list_lol_remove(), ru_set_handle, task_set_handle, and tp_set_handle.

Referenced by rsbac_adf_request_pm(), and rsbac_pm().

int rsbac_pm_remove_target rsbac_list_ta_number_t  ,
enum  rsbac_pm_target_t,
union  rsbac_pm_target_id_t
 

Definition at line 2937 of file pm_data_structures.c.

References class_handle, cs_handle, na_handle, pp_handle, pp_set_handle, RSBAC_EINVALIDTARGET, rsbac_ta_list_lol_exist(), rsbac_ta_list_lol_remove(), rsbac_ta_list_remove(), task_handle, tkt_handle, and tp_handle.

Referenced by rsbac_pm().

int rsbac_pm_set_data rsbac_list_ta_number_t  ,
enum  rsbac_pm_target_t,
union  rsbac_pm_target_id_t,
enum  rsbac_pm_data_t,
union  rsbac_pm_data_value_t
 

Definition at line 2618 of file pm_data_structures.c.

References class_handle, cs_handle, na_handle, NULL, pp_handle, RSBAC_EINVALIDATTR, RSBAC_EINVALIDTARGET, rsbac_ta_list_add_ttl(), rsbac_ta_list_get_data_ttl(), task_handle, and tkt_handle.

Referenced by rsbac_pm().

rsbac_boolean_t rsbac_pm_set_exist rsbac_list_ta_number_t  ,
enum  rsbac_pm_set_t,
union  rsbac_pm_set_id_t
 

Definition at line 2151 of file pm_data_structures.c.

References FALSE, in_pp_set_handle, out_pp_set_handle, pp_set_handle, rsbac_ta_list_lol_exist(), ru_set_handle, task_set_handle, and tp_set_handle.

Referenced by adjust_in_out_pp_ipc().

rsbac_boolean_t rsbac_pm_set_member rsbac_list_ta_number_t  ,
enum  rsbac_pm_set_t,
union  rsbac_pm_set_id_t,
union  rsbac_pm_set_member_t
 

Definition at line 1870 of file pm_data_structures.c.

References FALSE, in_pp_set_handle, out_pp_set_handle, pp_set_handle, rsbac_ta_list_lol_subexist(), ru_set_handle, task_set_handle, and tp_set_handle.

Referenced by na_and_pp_ipc(), na_and_pp_or_cs(), rsbac_adf_request_pm(), rsbac_pm(), rsbac_pm_change_current_task(), and rsbac_pm_create_file().

int rsbac_stats_pm void   ) 
 

Definition at line 1656 of file pm_data_structures.c.


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