#include <linux/types.h>
#include <linux/sched.h>
#include <linux/fs.h>
#include <asm/uaccess.h>
#include <linux/file.h>
#include <linux/vmalloc.h>
#include <linux/init.h>
#include <rsbac/types.h>
#include <rsbac/pm_types.h>
#include <rsbac/pm_data_structures.h>
#include <rsbac/getname.h>
#include <rsbac/pm_getname.h>
#include <rsbac/error.h>
#include <rsbac/helpers.h>
#include <rsbac/fs.h>
#include <rsbac/adf.h>
#include <rsbac/adf_main.h>
#include <rsbac/debug.h>
#include <rsbac/proc_fs.h>
#include <rsbac/rkmem.h>
#include <rsbac/lists.h>
#include <linux/string.h>
Go to the source code of this file.
Functions | |
int | sys_write (u_int, char *, u_int) |
static void __init | registration_error (int err, char *listname) |
int __init | rsbac_init_pm (void) |
int | rsbac_stats_pm (void) |
int | rsbac_pm_add_to_set (rsbac_list_ta_number_t ta_number, enum rsbac_pm_set_t set, union rsbac_pm_set_id_t id, union rsbac_pm_set_member_t member) |
int | rsbac_pm_remove_from_set (rsbac_list_ta_number_t ta_number, enum rsbac_pm_set_t set, union rsbac_pm_set_id_t id, union rsbac_pm_set_member_t member) |
int | rsbac_pm_clear_set (rsbac_list_ta_number_t ta_number, enum rsbac_pm_set_t set, union rsbac_pm_set_id_t id) |
rsbac_boolean_t | rsbac_pm_set_member (rsbac_list_ta_number_t ta_number, enum rsbac_pm_set_t set, union rsbac_pm_set_id_t id, union rsbac_pm_set_member_t member) |
rsbac_boolean_t | rsbac_pm_pp_subset (rsbac_pm_pp_set_id_t pp_set, rsbac_pm_in_pp_set_id_t in_pp_set) |
rsbac_boolean_t | rsbac_pm_pp_superset (rsbac_pm_pp_set_id_t pp_set, rsbac_pm_out_pp_set_id_t out_pp_set) |
rsbac_boolean_t | rsbac_pm_pp_only (rsbac_pm_purpose_id_t purpose, rsbac_pm_out_pp_set_id_t out_pp_set) |
int | rsbac_pm_pp_intersec (rsbac_pm_pp_set_id_t pp_set, rsbac_pm_in_pp_set_id_t in_pp_set) |
int | rsbac_pm_pp_union (rsbac_pm_pp_set_id_t pp_set, rsbac_pm_out_pp_set_id_t out_pp_set) |
int | rsbac_pm_create_set (rsbac_list_ta_number_t ta_number, enum rsbac_pm_set_t set, union rsbac_pm_set_id_t id) |
rsbac_boolean_t | rsbac_pm_set_exist (rsbac_list_ta_number_t ta_number, enum rsbac_pm_set_t set, union rsbac_pm_set_id_t id) |
int | rsbac_pm_remove_set (rsbac_list_ta_number_t ta_number, enum rsbac_pm_set_t set, union rsbac_pm_set_id_t id) |
int | rsbac_pm_get_data (rsbac_list_ta_number_t ta_number, enum rsbac_pm_target_t target, union rsbac_pm_target_id_t tid, enum rsbac_pm_data_t data, union rsbac_pm_data_value_t *value) |
int | rsbac_pm_get_all_data (rsbac_list_ta_number_t ta_number, enum rsbac_pm_target_t target, union rsbac_pm_target_id_t tid, union rsbac_pm_all_data_value_t *value) |
rsbac_boolean_t | rsbac_pm_exists (rsbac_list_ta_number_t ta_number, enum rsbac_pm_target_t target, union rsbac_pm_target_id_t tid) |
int | rsbac_pm_set_data (rsbac_list_ta_number_t ta_number, enum rsbac_pm_target_t target, union rsbac_pm_target_id_t tid, enum rsbac_pm_data_t data, union rsbac_pm_data_value_t value) |
int | rsbac_pm_add_target (rsbac_list_ta_number_t ta_number, enum rsbac_pm_target_t target, union rsbac_pm_all_data_value_t data) |
int | rsbac_pm_remove_target (rsbac_list_ta_number_t ta_number, enum rsbac_pm_target_t target, union rsbac_pm_target_id_t tid) |
Variables | |
static rsbac_list_handle_t | task_set_handle = NULL |
static rsbac_list_handle_t | tp_set_handle = NULL |
static rsbac_list_handle_t | ru_set_handle = NULL |
static rsbac_list_handle_t | pp_set_handle = NULL |
static rsbac_list_handle_t | in_pp_set_handle = NULL |
static rsbac_list_handle_t | out_pp_set_handle = NULL |
static rsbac_list_handle_t | task_handle = NULL |
static rsbac_list_handle_t | class_handle = NULL |
static rsbac_list_handle_t | na_handle = NULL |
static rsbac_list_handle_t | cs_handle = NULL |
static rsbac_list_handle_t | tp_handle = NULL |
static rsbac_list_handle_t | pp_handle = NULL |
static rsbac_list_handle_t | tkt_handle = NULL |
|
Definition at line 1163 of file pm_data_structures.c. References get_error_name(), rsbac_kfree(), rsbac_kmalloc(), and RSBAC_MAXNAMELEN. |
|
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
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(). |
|
Definition at line 1656 of file pm_data_structures.c. References class_handle, cs_handle, in_pp_set_handle, na_handle, out_pp_set_handle, pp_handle, pp_set_handle, RSBAC_ENOTINITIALIZED, rsbac_is_initialized(), rsbac_list_lol_all_subcount(), rsbac_list_lol_count(), ru_set_handle, task_handle, task_set_handle, tkt_handle, tp_handle, and tp_set_handle. Referenced by rsbac_stats(), and sys_rsbac_stats_pm(). |
|
|
|
Definition at line 46 of file pm_data_structures.c. Referenced by rsbac_init_pm(), rsbac_pm_add_target(), rsbac_pm_exists(), rsbac_pm_get_all_data(), rsbac_pm_get_data(), rsbac_pm_remove_target(), rsbac_pm_set_data(), and rsbac_stats_pm(). |
|
Definition at line 48 of file pm_data_structures.c. Referenced by rsbac_init_pm(), rsbac_pm_add_target(), rsbac_pm_exists(), rsbac_pm_get_all_data(), rsbac_pm_get_data(), rsbac_pm_remove_target(), rsbac_pm_set_data(), and rsbac_stats_pm(). |
|
Definition at line 42 of file pm_data_structures.c. Referenced by rsbac_init_pm(), rsbac_pm_add_to_set(), rsbac_pm_clear_set(), rsbac_pm_create_set(), rsbac_pm_pp_intersec(), rsbac_pm_pp_subset(), rsbac_pm_remove_from_set(), rsbac_pm_remove_set(), rsbac_pm_set_exist(), rsbac_pm_set_member(), and rsbac_stats_pm(). |
|
Definition at line 47 of file pm_data_structures.c. Referenced by rsbac_init_pm(), rsbac_pm_add_target(), rsbac_pm_exists(), rsbac_pm_get_all_data(), rsbac_pm_get_data(), rsbac_pm_remove_target(), rsbac_pm_set_data(), and rsbac_stats_pm(). |
|
Definition at line 43 of file pm_data_structures.c. Referenced by rsbac_init_pm(), rsbac_pm_add_to_set(), rsbac_pm_clear_set(), rsbac_pm_create_set(), rsbac_pm_pp_only(), rsbac_pm_pp_superset(), rsbac_pm_pp_union(), rsbac_pm_remove_from_set(), rsbac_pm_remove_set(), rsbac_pm_set_exist(), rsbac_pm_set_member(), and rsbac_stats_pm(). |
|
Definition at line 50 of file pm_data_structures.c. Referenced by rsbac_init_pm(), rsbac_pm_add_target(), rsbac_pm_exists(), rsbac_pm_get_all_data(), rsbac_pm_get_data(), rsbac_pm_remove_target(), rsbac_pm_set_data(), and rsbac_stats_pm(). |
|
|
Definition at line 40 of file pm_data_structures.c. Referenced by rsbac_init_pm(), rsbac_pm_add_to_set(), rsbac_pm_clear_set(), rsbac_pm_create_set(), rsbac_pm_remove_from_set(), rsbac_pm_remove_set(), rsbac_pm_set_exist(), rsbac_pm_set_member(), and rsbac_stats_pm(). |
|
Definition at line 45 of file pm_data_structures.c. Referenced by rsbac_init_pm(), rsbac_pm_add_target(), rsbac_pm_exists(), rsbac_pm_get_all_data(), rsbac_pm_get_data(), rsbac_pm_remove_target(), rsbac_pm_set_data(), and rsbac_stats_pm(). |
|
Definition at line 38 of file pm_data_structures.c. Referenced by rsbac_init_pm(), rsbac_pm_add_to_set(), rsbac_pm_clear_set(), rsbac_pm_create_set(), rsbac_pm_remove_from_set(), rsbac_pm_remove_set(), rsbac_pm_set_exist(), rsbac_pm_set_member(), and rsbac_stats_pm(). |
|
Definition at line 51 of file pm_data_structures.c. Referenced by rsbac_init_pm(), rsbac_pm_add_target(), rsbac_pm_exists(), rsbac_pm_get_all_data(), rsbac_pm_get_data(), rsbac_pm_remove_target(), rsbac_pm_set_data(), and rsbac_stats_pm(). |
|
Definition at line 49 of file pm_data_structures.c. Referenced by rsbac_init_pm(), rsbac_pm_add_target(), rsbac_pm_exists(), rsbac_pm_get_all_data(), rsbac_pm_get_data(), rsbac_pm_remove_target(), and rsbac_stats_pm(). |
|
Definition at line 39 of file pm_data_structures.c. Referenced by rsbac_init_pm(), rsbac_pm_add_to_set(), rsbac_pm_clear_set(), rsbac_pm_create_set(), rsbac_pm_remove_from_set(), rsbac_pm_remove_set(), rsbac_pm_set_exist(), rsbac_pm_set_member(), and rsbac_stats_pm(). |