mac_syscalls.c File Reference

#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)


Function Documentation

static int mac_sys_check_role enum rsbac_system_role_t  role  )  [static]
 

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().

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
 

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().

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
 

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().

int rsbac_mac_get_curr_level rsbac_security_level_t level_p,
rsbac_mac_category_vector_t categories_p
 

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().

int rsbac_mac_get_max_level rsbac_security_level_t level_p,
rsbac_mac_category_vector_t categories_p
 

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().

int rsbac_mac_get_min_level rsbac_security_level_t level_p,
rsbac_mac_category_vector_t categories_p
 

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().

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 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().

int rsbac_mac_remove_p_tru rsbac_list_ta_number_t  ta_number,
rsbac_pid_t  pid,
rsbac_uid_t  uid
 

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().

int rsbac_mac_set_curr_level rsbac_security_level_t  level,
rsbac_mac_category_vector_t  categories
 

Definition at line 68 of file mac_syscalls.c.

References A_current_sec_level, A_mac_categories, A_mac_curr_categories, A_mac_min_categories, A_mac_process_flags, A_max_read_categories, A_max_read_open, A_min_security_level, A_min_write_categories, A_min_write_open, A_none, A_security_level, rsbac_attribute_value_t::current_sec_level, FALSE, MAC, MAC_auto, rsbac_attribute_value_t::mac_categories, MAC_override, rsbac_attribute_value_t::mac_process_flags, MAC_trusted, rsbac_attribute_value_t::max_read_open, rsbac_attribute_value_t::min_write_open, rsbac_target_id_t::process, RSBAC_EINVALIDVALUE, RSBAC_EREADFAILED, RSBAC_EWRITEFAILED, rsbac_get_attr, rsbac_kfree(), rsbac_kmalloc(), RSBAC_MAC_MIN_CAT_VECTOR, RSBAC_MAXNAMELEN, rsbac_set_attr, rsbac_attribute_value_t::security_level, SL_max, SL_none, T_PROCESS, and u64tostrmac().

Referenced by sys_rsbac_mac_set_curr_level().


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