#include <linux/string.h>
#include <rsbac/types.h>
#include <rsbac/aci.h>
#include <rsbac/mac.h>
#include <rsbac/adf_main.h>
#include <rsbac/error.h>
#include <rsbac/helpers.h>
#include <rsbac/getname.h>
#include <rsbac/debug.h>
#include <rsbac/rkmem.h>
Go to the source code of this file.
Functions | |
static int | mac_sys_check_role (enum rsbac_system_role_t role) |
int | rsbac_mac_set_curr_level (rsbac_security_level_t level, rsbac_mac_category_vector_t categories) |
int | rsbac_mac_get_curr_level (rsbac_security_level_t *level_p, rsbac_mac_category_vector_t *categories_p) |
int | rsbac_mac_get_max_level (rsbac_security_level_t *level_p, rsbac_mac_category_vector_t *categories_p) |
int | rsbac_mac_get_min_level (rsbac_security_level_t *level_p, rsbac_mac_category_vector_t *categories_p) |
int | rsbac_mac_add_p_tru (rsbac_list_ta_number_t ta_number, rsbac_pid_t pid, rsbac_uid_t uid, rsbac_time_t ttl) |
int | rsbac_mac_remove_p_tru (rsbac_list_ta_number_t ta_number, rsbac_pid_t pid, rsbac_uid_t uid) |
int | rsbac_mac_add_f_tru (rsbac_list_ta_number_t ta_number, rsbac_mac_file_t file, rsbac_uid_t uid, rsbac_time_t ttl) |
int | rsbac_mac_remove_f_tru (rsbac_list_ta_number_t ta_number, rsbac_mac_file_t file, rsbac_uid_t uid) |
|
Definition at line 33 of file mac_syscalls.c. References A_mac_role, MAC, rsbac_get_attr, rsbac_attribute_value_t::system_role, T_USER, TRUE, and rsbac_target_id_t::user. Referenced by rsbac_mac_add_f_tru(), rsbac_mac_add_p_tru(), rsbac_mac_remove_f_tru(), and rsbac_mac_remove_p_tru(). |
|
Definition at line 775 of file mac_syscalls.c. References MAC, mac_sys_check_role(), RSBAC_EWRITEFAILED, rsbac_mac_add_to_f_truset(), and SR_security_officer. Referenced by sys_rsbac_mac_add_f_tru(). |
|
Definition at line 676 of file mac_syscalls.c. References MAC, mac_sys_check_role(), RSBAC_EWRITEFAILED, rsbac_mac_add_to_p_truset(), and SR_security_officer. Referenced by sys_rsbac_mac_add_p_tru(). |
|
Definition at line 561 of file mac_syscalls.c. References A_current_sec_level, A_mac_curr_categories, A_none, rsbac_attribute_value_t::current_sec_level, FALSE, MAC, rsbac_attribute_value_t::mac_categories, rsbac_target_id_t::process, RSBAC_EREADFAILED, rsbac_get_attr, and T_PROCESS. Referenced by sys_rsbac_mac_get_curr_level(). |
|
Definition at line 599 of file mac_syscalls.c. References A_mac_categories, A_none, A_security_level, FALSE, MAC, rsbac_attribute_value_t::mac_categories, rsbac_target_id_t::process, RSBAC_EREADFAILED, rsbac_get_attr, rsbac_attribute_value_t::security_level, and T_PROCESS. Referenced by sys_rsbac_mac_get_max_level(). |
|
Definition at line 638 of file mac_syscalls.c. References A_mac_min_categories, A_min_security_level, A_none, FALSE, MAC, rsbac_attribute_value_t::mac_categories, rsbac_target_id_t::process, RSBAC_EREADFAILED, rsbac_get_attr, rsbac_attribute_value_t::security_level, and T_PROCESS. Referenced by sys_rsbac_mac_get_min_level(). |
|
Definition at line 835 of file mac_syscalls.c. References MAC, mac_sys_check_role(), rsbac_mac_remove_from_f_truset(), and SR_security_officer. Referenced by sys_rsbac_mac_remove_f_tru(). |
|
Definition at line 733 of file mac_syscalls.c. References MAC, mac_sys_check_role(), rsbac_mac_remove_from_p_truset(), and SR_security_officer. Referenced by sys_rsbac_mac_remove_p_tru(). |
|