syscalls.h File Reference

#include <linux/unistd.h>
#include <rsbac/types.h>
#include <rsbac/getname.h>
#include <rsbac/helpers.h>
#include <rsbac/error.h>

Go to the source code of this file.

Enumerations

enum  rsbac_syscall_t {
  RSYS_stats, RSYS_check, RSYS_get_attr, RSYS_get_attr_n,
  RSYS_set_attr, RSYS_set_attr_n, RSYS_remove_target, RSYS_remove_target_n,
  RSYS_net_list_all_netdev, RSYS_net_template, RSYS_net_list_all_template, RSYS_switch,
  RSYS_adf_log_switch, RSYS_get_adf_log, RSYS_write, RSYS_log,
  RSYS_mac_set_curr_level, RSYS_mac_get_curr_level, RSYS_mac_get_max_level, RSYS_mac_get_min_level,
  RSYS_mac_add_p_tru, RSYS_mac_remove_p_tru, RSYS_mac_add_f_tru, RSYS_mac_remove_f_tru,
  RSYS_mac_get_f_trulist, RSYS_mac_get_p_trulist, RSYS_stats_pm, RSYS_pm,
  RSYS_pm_change_current_task, RSYS_pm_create_file, RSYS_daz_flush_cache, RSYS_rc_copy_role,
  RSYS_rc_copy_type, RSYS_rc_get_item, RSYS_rc_set_item, RSYS_rc_change_role,
  RSYS_rc_get_eff_rights_n, RSYS_rc_get_list, RSYS_auth_add_p_cap, RSYS_auth_remove_p_cap,
  RSYS_auth_add_f_cap, RSYS_auth_remove_f_cap, RSYS_auth_get_f_caplist, RSYS_auth_get_p_caplist,
  RSYS_acl, RSYS_acl_n, RSYS_acl_get_rights, RSYS_acl_get_rights_n,
  RSYS_acl_get_tlist, RSYS_acl_get_tlist_n, RSYS_acl_get_mask, RSYS_acl_get_mask_n,
  RSYS_acl_group, RSYS_reg, RSYS_jail, RSYS_init,
  RSYS_rc_get_current_role, RSYS_um_auth_name, RSYS_um_auth_uid, RSYS_um_add_user,
  RSYS_um_add_group, RSYS_um_add_gm, RSYS_um_mod_user, RSYS_um_mod_group,
  RSYS_um_get_user_item, RSYS_um_get_group_item, RSYS_um_remove_user, RSYS_um_remove_group,
  RSYS_um_remove_gm, RSYS_um_user_exists, RSYS_um_group_exists, RSYS_um_get_next_user,
  RSYS_um_get_user_list, RSYS_um_get_gm_list, RSYS_um_get_gm_user_list, RSYS_um_get_group_list,
  RSYS_um_get_uid, RSYS_um_get_gid, RSYS_um_set_pass, RSYS_um_set_pass_name,
  RSYS_um_set_group_pass, RSYS_um_check_account, RSYS_um_check_account_name, RSYS_list_ta_begin,
  RSYS_list_ta_refresh, RSYS_list_ta_commit, RSYS_list_ta_forget, RSYS_none
}

Functions

int rsbac_stats (void)
int rsbac_check (int correct, int check_inode)
int rsbac_write (void)
int rsbac_get_attr (rsbac_list_ta_number_t ta_number, enum rsbac_switch_target_t module, enum rsbac_target_t target, union rsbac_target_id_t *tid, enum rsbac_attribute_t attr, union rsbac_attribute_value_t *value, int inherit)
int rsbac_get_attr_n (rsbac_list_ta_number_t ta_number, enum rsbac_switch_target_t module, enum rsbac_target_t target, char *t_name, enum rsbac_attribute_t attr, union rsbac_attribute_value_t *value, int inherit)
int rsbac_set_attr (rsbac_list_ta_number_t ta_number, enum rsbac_switch_target_t module, enum rsbac_target_t target, union rsbac_target_id_t *tid, enum rsbac_attribute_t attr, union rsbac_attribute_value_t *value)
int rsbac_set_attr_n (rsbac_list_ta_number_t ta_number, enum rsbac_switch_target_t module, enum rsbac_target_t target, char *t_name, enum rsbac_attribute_t attr, union rsbac_attribute_value_t *value)
int rsbac_remove_target (rsbac_list_ta_number_t ta_number, enum rsbac_target_t target, union rsbac_target_id_t *tid)
int rsbac_remove_target_n (rsbac_list_ta_number_t ta_number, enum rsbac_target_t target, char *t_name)
int rsbac_net_list_all_netdev (rsbac_list_ta_number_t ta_number, rsbac_netdev_id_t *id_p, u_long maxnum)
int rsbac_net_template (rsbac_list_ta_number_t ta_number, enum rsbac_net_temp_syscall_t call, rsbac_net_temp_id_t id, union rsbac_net_temp_syscall_data_t *data_p)
int rsbac_net_list_all_template (rsbac_list_ta_number_t ta_number, rsbac_net_temp_id_t *id_p, u_long maxnum)
int rsbac_switch (enum rsbac_switch_target_t target, int value)
int rsbac_mac_set_curr_level (rsbac_security_level_t level, rsbac_mac_category_vector_t *categories_p)
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, char *filename, rsbac_uid_t uid, rsbac_time_t ttl)
int rsbac_mac_remove_f_tru (rsbac_list_ta_number_t ta_number, char *filename, rsbac_uid_t uid)
int rsbac_mac_get_f_trulist (rsbac_list_ta_number_t ta_number, char *filename, rsbac_uid_t trulist[], rsbac_time_t ttllist[], u_int maxnum)
int rsbac_mac_get_p_trulist (rsbac_list_ta_number_t ta_number, rsbac_pid_t pid, rsbac_uid_t trulist[], rsbac_time_t ttllist[], u_int maxnum)
int rsbac_stats_pm (void)
int rsbac_pm (rsbac_list_ta_number_t ta_number, enum rsbac_pm_function_type_t function, union rsbac_pm_function_param_t *param_p, rsbac_pm_tkt_id_t ticket)
int rsbac_pm_change_current_task (rsbac_pm_task_id_t task)
int rsbac_pm_create_file (const char *filename, int mode, rsbac_pm_object_class_id_t object_class)
int rsbac_daz_flush_cache (void)
int rsbac_rc_copy_role (rsbac_list_ta_number_t ta_number, rsbac_rc_role_id_t from_role, rsbac_rc_role_id_t to_role)
int rsbac_rc_copy_type (rsbac_list_ta_number_t ta_number, enum rsbac_target_t target, rsbac_rc_type_id_t from_type, rsbac_rc_type_id_t to_type)
int rsbac_rc_get_item (rsbac_list_ta_number_t ta_number, enum rsbac_rc_target_t target, union rsbac_rc_target_id_t *tid_p, union rsbac_rc_target_id_t *subtid_p, enum rsbac_rc_item_t item, union rsbac_rc_item_value_t *value_p, rsbac_time_t *ttl_p)
int rsbac_rc_set_item (rsbac_list_ta_number_t ta_number, enum rsbac_rc_target_t target, union rsbac_rc_target_id_t *tid_p, union rsbac_rc_target_id_t *subtid_p, enum rsbac_rc_item_t item, union rsbac_rc_item_value_t *value_p, rsbac_time_t ttl)
int rsbac_rc_get_list (rsbac_list_ta_number_t ta_number, enum rsbac_rc_target_t target, union rsbac_rc_target_id_t *tid_p, enum rsbac_rc_item_t item, u_int maxnum, __u32 *array_p, rsbac_time_t *ttl_array_p)
int rsbac_rc_change_role (rsbac_rc_role_id_t role)
int rsbac_rc_get_eff_rights_n (rsbac_list_ta_number_t ta_number, enum rsbac_target_t target, char *t_name, rsbac_rc_request_vector_t *request_vector_p, rsbac_time_t *ttl_p)
int rsbac_rc_get_current_role (rsbac_rc_role_id_t *role_p)
int rsbac_auth_add_p_cap (rsbac_list_ta_number_t ta_number, rsbac_pid_t pid, enum rsbac_auth_cap_type_t cap_type, struct rsbac_auth_cap_range_t cap_range, rsbac_time_t ttl)
int rsbac_auth_remove_p_cap (rsbac_list_ta_number_t ta_number, rsbac_pid_t pid, enum rsbac_auth_cap_type_t cap_type, struct rsbac_auth_cap_range_t cap_range)
int rsbac_auth_add_f_cap (rsbac_list_ta_number_t ta_number, char *filename, enum rsbac_auth_cap_type_t cap_type, struct rsbac_auth_cap_range_t cap_range, rsbac_time_t ttl)
int rsbac_auth_remove_f_cap (rsbac_list_ta_number_t ta_number, char *filename, enum rsbac_auth_cap_type_t cap_type, struct rsbac_auth_cap_range_t cap_range)
int rsbac_auth_get_f_caplist (rsbac_list_ta_number_t ta_number, char *filename, enum rsbac_auth_cap_type_t cap_type, struct rsbac_auth_cap_range_t caplist[], rsbac_time_t ttllist[], u_int maxnum)
int rsbac_auth_get_p_caplist (rsbac_list_ta_number_t ta_number, rsbac_pid_t pid, enum rsbac_auth_cap_type_t cap_type, struct rsbac_auth_cap_range_t caplist[], rsbac_time_t ttllist[], u_int maxnum)
int rsbac_reg (rsbac_reg_handle_t handle, void *arg)
int rsbac_acl (rsbac_list_ta_number_t ta_number, enum rsbac_acl_syscall_type_t call, struct rsbac_acl_syscall_arg_t *arg)
int rsbac_acl_n (rsbac_list_ta_number_t ta_number, enum rsbac_acl_syscall_type_t call, struct rsbac_acl_syscall_n_arg_t *arg)
int rsbac_acl_get_rights (rsbac_list_ta_number_t ta_number, struct rsbac_acl_syscall_arg_t *arg, rsbac_acl_rights_vector_t *rights_p, u_int effective)
int rsbac_acl_get_rights_n (rsbac_list_ta_number_t ta_number, struct rsbac_acl_syscall_n_arg_t *arg, rsbac_acl_rights_vector_t *rights_p, u_int effective)
int rsbac_acl_get_tlist (rsbac_list_ta_number_t ta_number, enum rsbac_target_t target, union rsbac_target_id_t *tid, struct rsbac_acl_entry_t entry_array[], rsbac_time_t ttl_array[], u_int maxnum)
int rsbac_acl_get_tlist_n (rsbac_list_ta_number_t ta_number, enum rsbac_target_t target, char *t_name, struct rsbac_acl_entry_t entry_array[], rsbac_time_t ttl_array[], u_int maxnum)
int rsbac_acl_get_mask (rsbac_list_ta_number_t ta_number, enum rsbac_target_t target, union rsbac_target_id_t *tid, rsbac_acl_rights_vector_t *mask_p)
int rsbac_acl_get_mask_n (rsbac_list_ta_number_t ta_number, enum rsbac_target_t target, char *t_name, rsbac_acl_rights_vector_t *mask_p)
int rsbac_acl_group (rsbac_list_ta_number_t ta_number, enum rsbac_acl_group_syscall_type_t call, union rsbac_acl_group_syscall_arg_t *arg_p)
int rsbac_jail (rsbac_version_t version, char *path, rsbac_jail_ip_t ip, rsbac_jail_flags_t flags, rsbac_cap_vector_t max_caps)
int rsbac_um_auth_name (char *name, char *pass)
int rsbac_um_auth_uid (rsbac_uid_t uid, char *pass)
int rsbac_um_add_user (rsbac_list_ta_number_t ta_number, rsbac_uid_t uid, struct rsbac_um_user_entry_t *entry_p, char *pass, rsbac_time_t ttl)
int rsbac_um_add_group (rsbac_list_ta_number_t ta_number, rsbac_gid_t gid, struct rsbac_um_group_entry_t *entry_p, char *pass, rsbac_time_t ttl)
int rsbac_um_add_gm (rsbac_list_ta_number_t ta_number, rsbac_uid_t uid, rsbac_gid_t gid, rsbac_time_t ttl)
int rsbac_um_mod_user (rsbac_list_ta_number_t ta_number, rsbac_uid_t uid, enum rsbac_um_mod_t mod, union rsbac_um_mod_data_t *data_p)
int rsbac_um_mod_group (rsbac_list_ta_number_t ta_number, rsbac_gid_t gid, enum rsbac_um_mod_t mod, union rsbac_um_mod_data_t *data_p)
int rsbac_um_get_user_item (rsbac_list_ta_number_t ta_number, rsbac_uid_t uid, enum rsbac_um_mod_t mod, union rsbac_um_mod_data_t *data_p)
int rsbac_um_get_group_item (rsbac_list_ta_number_t ta_number, rsbac_gid_t gid, enum rsbac_um_mod_t mod, union rsbac_um_mod_data_t *data_p)
int rsbac_um_remove_user (rsbac_list_ta_number_t ta_number, rsbac_uid_t uid)
int rsbac_um_remove_group (rsbac_list_ta_number_t ta_number, rsbac_gid_t gid)
int rsbac_um_remove_gm (rsbac_list_ta_number_t ta_number, rsbac_uid_t uid, rsbac_gid_t gid)
int rsbac_um_user_exists (rsbac_list_ta_number_t ta_number, rsbac_uid_t uid)
int rsbac_um_group_exists (rsbac_list_ta_number_t ta_number, rsbac_gid_t gid)
int rsbac_um_get_next_user (rsbac_list_ta_number_t ta_number, rsbac_uid_t old_user, rsbac_uid_t *next_user_p)
int rsbac_um_get_user_list (rsbac_list_ta_number_t ta_number, rsbac_uid_t user_array[], u_int maxnum)
int rsbac_um_get_gm_list (rsbac_list_ta_number_t ta_number, rsbac_uid_t user, rsbac_gid_t group_array[], u_int maxnum)
int rsbac_um_get_gm_user_list (rsbac_list_ta_number_t ta_number, rsbac_gid_t group, rsbac_uid_t user_array[], u_int maxnum)
int rsbac_um_get_group_list (rsbac_list_ta_number_t ta_number, rsbac_gid_t group_array[], u_int maxnum)
int rsbac_um_get_uid (rsbac_list_ta_number_t ta_number, char *name, rsbac_uid_t *uid_p)
int rsbac_um_get_gid (rsbac_list_ta_number_t ta_number, char *name, rsbac_gid_t *gid_p)
int rsbac_um_set_pass (rsbac_uid_t uid, char *old_pass, char *new_pass)
int rsbac_um_set_pass_name (char *name, char *old_pass, char *new_pass)
int rsbac_um_set_group_pass (rsbac_gid_t gid, char *new_pass)
int rsbac_um_check_account (rsbac_uid_t uid)
int rsbac_um_check_account_name (char *name)
int rsbac_list_ta_begin (rsbac_time_t ttl, rsbac_list_ta_number_t *ta_number_p, rsbac_uid_t commit_uid, char *password)
int rsbac_list_ta_refresh (rsbac_time_t ttl, rsbac_list_ta_number_t ta_number, char *password)
int rsbac_list_ta_commit (rsbac_list_ta_number_t ta_number, char *password)
int rsbac_list_ta_forget (rsbac_list_ta_number_t ta_number, char *password)
int rsbac_adf_log_switch (enum rsbac_adf_request_t request, enum rsbac_target_t target, u_int value)
int rsbac_get_adf_log (enum rsbac_adf_request_t request, enum rsbac_target_t target, u_int *value_p)
int rsbac_log (int type, char *buf, int len)
int rsbac_init (char *root_dev)


Enumeration Type Documentation

enum rsbac_syscall_t
 

Enumeration values:
RSYS_stats 
RSYS_check 
RSYS_get_attr 
RSYS_get_attr_n 
RSYS_set_attr 
RSYS_set_attr_n 
RSYS_remove_target 
RSYS_remove_target_n 
RSYS_net_list_all_netdev 
RSYS_net_template 
RSYS_net_list_all_template 
RSYS_switch 
RSYS_adf_log_switch 
RSYS_get_adf_log 
RSYS_write 
RSYS_log 
RSYS_mac_set_curr_level 
RSYS_mac_get_curr_level 
RSYS_mac_get_max_level 
RSYS_mac_get_min_level 
RSYS_mac_add_p_tru 
RSYS_mac_remove_p_tru 
RSYS_mac_add_f_tru 
RSYS_mac_remove_f_tru 
RSYS_mac_get_f_trulist 
RSYS_mac_get_p_trulist 
RSYS_stats_pm 
RSYS_pm 
RSYS_pm_change_current_task 
RSYS_pm_create_file 
RSYS_daz_flush_cache 
RSYS_rc_copy_role 
RSYS_rc_copy_type 
RSYS_rc_get_item 
RSYS_rc_set_item 
RSYS_rc_change_role 
RSYS_rc_get_eff_rights_n 
RSYS_rc_get_list 
RSYS_auth_add_p_cap 
RSYS_auth_remove_p_cap 
RSYS_auth_add_f_cap 
RSYS_auth_remove_f_cap 
RSYS_auth_get_f_caplist 
RSYS_auth_get_p_caplist 
RSYS_acl 
RSYS_acl_n 
RSYS_acl_get_rights 
RSYS_acl_get_rights_n 
RSYS_acl_get_tlist 
RSYS_acl_get_tlist_n 
RSYS_acl_get_mask 
RSYS_acl_get_mask_n 
RSYS_acl_group 
RSYS_reg 
RSYS_jail 
RSYS_init 
RSYS_rc_get_current_role 
RSYS_um_auth_name 
RSYS_um_auth_uid 
RSYS_um_add_user 
RSYS_um_add_group 
RSYS_um_add_gm 
RSYS_um_mod_user 
RSYS_um_mod_group 
RSYS_um_get_user_item 
RSYS_um_get_group_item 
RSYS_um_remove_user 
RSYS_um_remove_group 
RSYS_um_remove_gm 
RSYS_um_user_exists 
RSYS_um_group_exists 
RSYS_um_get_next_user 
RSYS_um_get_user_list 
RSYS_um_get_gm_list 
RSYS_um_get_gm_user_list 
RSYS_um_get_group_list 
RSYS_um_get_uid 
RSYS_um_get_gid 
RSYS_um_set_pass 
RSYS_um_set_pass_name 
RSYS_um_set_group_pass 
RSYS_um_check_account 
RSYS_um_check_account_name 
RSYS_list_ta_begin 
RSYS_list_ta_refresh 
RSYS_list_ta_commit 
RSYS_list_ta_forget 
RSYS_none 

Definition at line 19 of file syscalls.h.


Function Documentation

int rsbac_acl rsbac_list_ta_number_t  ta_number,
enum rsbac_acl_syscall_type_t  call,
struct rsbac_acl_syscall_arg_t arg
 

int rsbac_acl_get_mask rsbac_list_ta_number_t  ta_number,
enum rsbac_target_t  target,
union rsbac_target_id_t tid,
rsbac_acl_rights_vector_t mask_p
 

int rsbac_acl_get_mask_n rsbac_list_ta_number_t  ta_number,
enum rsbac_target_t  target,
char *  t_name,
rsbac_acl_rights_vector_t mask_p
 

int rsbac_acl_get_rights rsbac_list_ta_number_t  ta_number,
struct rsbac_acl_syscall_arg_t arg,
rsbac_acl_rights_vector_t rights_p,
u_int  effective
 

int rsbac_acl_get_rights_n rsbac_list_ta_number_t  ta_number,
struct rsbac_acl_syscall_n_arg_t arg,
rsbac_acl_rights_vector_t rights_p,
u_int  effective
 

int rsbac_acl_get_tlist rsbac_list_ta_number_t  ta_number,
enum rsbac_target_t  target,
union rsbac_target_id_t tid,
struct rsbac_acl_entry_t  entry_array[],
rsbac_time_t  ttl_array[],
u_int  maxnum
 

int rsbac_acl_get_tlist_n rsbac_list_ta_number_t  ta_number,
enum rsbac_target_t  target,
char *  t_name,
struct rsbac_acl_entry_t  entry_array[],
rsbac_time_t  ttl_array[],
u_int  maxnum
 

int rsbac_acl_group rsbac_list_ta_number_t  ta_number,
enum rsbac_acl_group_syscall_type_t  call,
union rsbac_acl_group_syscall_arg_t arg_p
 

int rsbac_acl_n rsbac_list_ta_number_t  ta_number,
enum rsbac_acl_syscall_type_t  call,
struct rsbac_acl_syscall_n_arg_t arg
 

int rsbac_adf_log_switch enum rsbac_adf_request_t  request,
enum rsbac_target_t  target,
u_int  value
 

int rsbac_auth_add_f_cap rsbac_list_ta_number_t  ta_number,
char *  filename,
enum rsbac_auth_cap_type_t  cap_type,
struct rsbac_auth_cap_range_t  cap_range,
rsbac_time_t  ttl
 

int rsbac_auth_add_p_cap rsbac_list_ta_number_t  ta_number,
rsbac_pid_t  pid,
enum rsbac_auth_cap_type_t  cap_type,
struct rsbac_auth_cap_range_t  cap_range,
rsbac_time_t  ttl
 

Definition at line 35 of file auth_syscalls.c.

References A_auth_may_set_cap, AUTH, rsbac_attribute_value_t::auth_may_set_cap, FALSE, rsbac_auth_cap_range_t::first, rsbac_auth_cap_range_t::last, rsbac_target_id_t::process, rsbac_auth_add_to_p_capset(), RSBAC_EREADFAILED, RSBAC_EWRITEFAILED, rsbac_get_attr, and T_PROCESS.

Referenced by sys_rsbac_auth_add_p_cap().

int rsbac_auth_get_f_caplist rsbac_list_ta_number_t  ta_number,
char *  filename,
enum rsbac_auth_cap_type_t  cap_type,
struct rsbac_auth_cap_range_t  caplist[],
rsbac_time_t  ttllist[],
u_int  maxnum
 

int rsbac_auth_get_p_caplist rsbac_list_ta_number_t  ta_number,
rsbac_pid_t  pid,
enum rsbac_auth_cap_type_t  cap_type,
struct rsbac_auth_cap_range_t  caplist[],
rsbac_time_t  ttllist[],
u_int  maxnum
 

int rsbac_auth_remove_f_cap rsbac_list_ta_number_t  ta_number,
char *  filename,
enum rsbac_auth_cap_type_t  cap_type,
struct rsbac_auth_cap_range_t  cap_range
 

int rsbac_auth_remove_p_cap rsbac_list_ta_number_t  ta_number,
rsbac_pid_t  pid,
enum rsbac_auth_cap_type_t  cap_type,
struct rsbac_auth_cap_range_t  cap_range
 

Definition at line 111 of file auth_syscalls.c.

References A_auth_may_set_cap, AUTH, rsbac_attribute_value_t::auth_may_set_cap, FALSE, rsbac_auth_cap_range_t::first, rsbac_auth_cap_range_t::last, rsbac_target_id_t::process, rsbac_auth_remove_from_p_capset(), RSBAC_EREADFAILED, rsbac_get_attr, and T_PROCESS.

Referenced by sys_rsbac_auth_remove_p_cap().

int rsbac_check int  correct,
int  check_inode
 

Definition at line 11452 of file aci_data_structures.c.

References device_list_head, rsbac_check_inode(), RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_initialized, rsbac_kfree(), rsbac_kmalloc(), rsbac_list_get_all_desc(), rsbac_list_remove(), RSBAC_MAXNAMELEN, and rsbac_vfree.

Referenced by rsbac_do_init(), and sys_rsbac_check().

int rsbac_daz_flush_cache void   ) 
 

int rsbac_get_adf_log enum rsbac_adf_request_t  request,
enum rsbac_target_t  target,
u_int *  value_p
 

int rsbac_get_attr rsbac_list_ta_number_t  ta_number,
enum rsbac_switch_target_t  module,
enum rsbac_target_t  target,
union rsbac_target_id_t tid,
enum rsbac_attribute_t  attr,
union rsbac_attribute_value_t value,
int  inherit
 

int rsbac_get_attr_n rsbac_list_ta_number_t  ta_number,
enum rsbac_switch_target_t  module,
enum rsbac_target_t  target,
char *  t_name,
enum rsbac_attribute_t  attr,
union rsbac_attribute_value_t value,
int  inherit
 

int rsbac_init char *  root_dev  ) 
 

int rsbac_jail rsbac_version_t  version,
char *  path,
rsbac_jail_ip_t  ip,
rsbac_jail_flags_t  flags,
rsbac_cap_vector_t  max_caps
 

int rsbac_list_ta_begin rsbac_time_t  ttl,
rsbac_list_ta_number_t ta_number_p,
rsbac_uid_t  commit_uid,
char *  password
 

int rsbac_list_ta_commit rsbac_list_ta_number_t  ta_number,
char *  password
 

int rsbac_list_ta_forget rsbac_list_ta_number_t  ta_number,
char *  password
 

int rsbac_list_ta_refresh rsbac_time_t  ttl,
rsbac_list_ta_number_t  ta_number,
char *  password
 

int rsbac_log int  type,
char *  buf,
int  len
 

Referenced by sys_rsbac_log().

int rsbac_mac_add_f_tru rsbac_list_ta_number_t  ta_number,
char *  filename,
rsbac_uid_t  uid,
rsbac_time_t  ttl
 

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_f_trulist rsbac_list_ta_number_t  ta_number,
char *  filename,
rsbac_uid_t  trulist[],
rsbac_time_t  ttllist[],
u_int  maxnum
 

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_get_p_trulist rsbac_list_ta_number_t  ta_number,
rsbac_pid_t  pid,
rsbac_uid_t  trulist[],
rsbac_time_t  ttllist[],
u_int  maxnum
 

int rsbac_mac_remove_f_tru rsbac_list_ta_number_t  ta_number,
char *  filename,
rsbac_uid_t  uid
 

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_p
 

int rsbac_net_list_all_netdev rsbac_list_ta_number_t  ta_number,
rsbac_netdev_id_t id_p,
u_long  maxnum
 

int rsbac_net_list_all_template rsbac_list_ta_number_t  ta_number,
rsbac_net_temp_id_t id_p,
u_long  maxnum
 

int rsbac_net_template rsbac_list_ta_number_t  ta_number,
enum rsbac_net_temp_syscall_t  call,
rsbac_net_temp_id_t  id,
union rsbac_net_temp_syscall_data_t data_p
 

int rsbac_pm rsbac_list_ta_number_t  ta_number,
enum rsbac_pm_function_type_t  function,
union rsbac_pm_function_param_t param_p,
rsbac_pm_tkt_id_t  ticket
 

int rsbac_pm_change_current_task rsbac_pm_task_id_t  task  ) 
 

Definition at line 2990 of file pm_syscalls.c.

References A_pm_current_task, A_pm_task_set, A_pm_tp, FALSE, rsbac_attribute_value_t::owner, PM, rsbac_attribute_value_t::pm_current_task, rsbac_attribute_value_t::pm_task_set, rsbac_attribute_value_t::pm_tp, rsbac_target_id_t::process, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, RSBAC_EPERM, RSBAC_EREADFAILED, RSBAC_EWRITEFAILED, rsbac_get_attr, rsbac_is_initialized(), rsbac_pm_set_member(), rsbac_set_attr, T_PROCESS, T_USER, and rsbac_target_id_t::user.

Referenced by sys_rsbac_pm_change_current_task().

int rsbac_pm_create_file const char *  filename,
int  mode,
rsbac_pm_object_class_id_t  object_class
 

Definition at line 3096 of file pm_syscalls.c.

References A_pm_current_task, A_pm_object_class, A_pm_tp, FALSE, PM, rsbac_attribute_value_t::pm_current_task, rsbac_attribute_value_t::pm_object_class, rsbac_attribute_value_t::pm_tp, rsbac_target_id_t::process, RSBAC_EINVALIDTARGET, RSBAC_EINVALIDVALUE, RSBAC_ENOTFOUND, RSBAC_EPERM, RSBAC_EREADFAILED, rsbac_get_attr, RSBAC_PM_A_CREATE, RSBAC_PM_DEV_OBJECT_CLASS_ID, rsbac_pm_exists(), rsbac_pm_get_data(), RSBAC_PM_IPC_OBJECT_CLASS_ID, rsbac_pm_set_member(), rsbac_set_attr, T_FILE, and T_PROCESS.

Referenced by sys_rsbac_pm_create_file().

int rsbac_rc_change_role rsbac_rc_role_id_t  role  ) 
 

int rsbac_rc_copy_role rsbac_list_ta_number_t  ta_number,
rsbac_rc_role_id_t  from_role,
rsbac_rc_role_id_t  to_role
 

Definition at line 1870 of file rc_data_structures.c.

References NULL, RC_role_max_value, role_adr_handle, role_asr_handle, role_dfdc_handle, role_handle, role_rc_handle, role_tcdv_handle, role_tcfd_handle, role_tcgr_handle, role_tcip_handle, role_tcnd_handle, role_tcno_handle, role_tcnt_handle, role_tcpr_handle, role_tcsc_handle, role_tcus_handle, RSBAC_EINVALIDTARGET, RSBAC_ENOTINITIALIZED, rsbac_is_initialized(), rsbac_list_lol_get_subitem_size(), rsbac_ta_list_add_ttl(), rsbac_ta_list_get_data_ttl(), rsbac_ta_list_lol_get_all_subdesc_ttl(), rsbac_ta_list_lol_get_all_subitems_ttl(), rsbac_ta_list_lol_remove(), rsbac_ta_list_lol_subadd_ttl(), and rsbac_vfree.

Referenced by rsbac_rc_sys_copy_role().

int rsbac_rc_copy_type rsbac_list_ta_number_t  ta_number,
enum rsbac_target_t  target,
rsbac_rc_type_id_t  from_type,
rsbac_rc_type_id_t  to_type
 

int rsbac_rc_get_current_role rsbac_rc_role_id_t role_p  ) 
 

int rsbac_rc_get_eff_rights_n rsbac_list_ta_number_t  ta_number,
enum rsbac_target_t  target,
char *  t_name,
rsbac_rc_request_vector_t request_vector_p,
rsbac_time_t ttl_p
 

int rsbac_rc_get_item rsbac_list_ta_number_t  ta_number,
enum rsbac_rc_target_t  target,
union rsbac_rc_target_id_t tid_p,
union rsbac_rc_target_id_t subtid_p,
enum rsbac_rc_item_t  item,
union rsbac_rc_item_value_t value_p,
rsbac_time_t ttl_p
 

int rsbac_rc_get_list rsbac_list_ta_number_t  ta_number,
enum rsbac_rc_target_t  target,
union rsbac_rc_target_id_t tid_p,
enum rsbac_rc_item_t  item,
u_int  maxnum,
__u32 *  array_p,
rsbac_time_t ttl_array_p
 

int rsbac_rc_set_item rsbac_list_ta_number_t  ta_number,
enum rsbac_rc_target_t  target,
union rsbac_rc_target_id_t tid_p,
union rsbac_rc_target_id_t subtid_p,
enum rsbac_rc_item_t  item,
union rsbac_rc_item_value_t value_p,
rsbac_time_t  ttl
 

int rsbac_reg rsbac_reg_handle_t  handle,
void *  arg
 

int rsbac_remove_target rsbac_list_ta_number_t  ta_number,
enum rsbac_target_t  target,
union rsbac_target_id_t tid
 

int rsbac_remove_target_n rsbac_list_ta_number_t  ta_number,
enum rsbac_target_t  target,
char *  t_name
 

int rsbac_set_attr rsbac_list_ta_number_t  ta_number,
enum rsbac_switch_target_t  module,
enum rsbac_target_t  target,
union rsbac_target_id_t tid,
enum rsbac_attribute_t  attr,
union rsbac_attribute_value_t value
 

int rsbac_set_attr_n rsbac_list_ta_number_t  ta_number,
enum rsbac_switch_target_t  module,
enum rsbac_target_t  target,
char *  t_name,
enum rsbac_attribute_t  attr,
union rsbac_attribute_value_t value
 

int rsbac_stats void   ) 
 

Definition at line 10790 of file aci_data_structures.c.

References dev_handles, device_list_head, ipc_handles, process_handles, rsbac_adf_request_count, rsbac_adf_set_attr_count, RSBAC_ENOTINITIALIZED, rsbac_initialized, rsbac_list_count(), rsbac_stats_acl(), rsbac_stats_auth(), rsbac_stats_pm(), rsbac_stats_rc(), T_DEV, T_DIR, T_FIFO, T_FILE, T_IPC, T_NETDEV, T_NETOBJ, T_NETTEMP, T_PROCESS, T_SCD, T_SYMLINK, T_USER, and user_handles.

Referenced by sys_rsbac_stats().

int rsbac_stats_pm void   ) 
 

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

int rsbac_switch enum rsbac_switch_target_t  target,
int  value
 

int rsbac_um_add_gm rsbac_list_ta_number_t  ta_number,
rsbac_uid_t  uid,
rsbac_gid_t  gid,
rsbac_time_t  ttl
 

Definition at line 715 of file um_data_structures.c.

int rsbac_um_add_group rsbac_list_ta_number_t  ta_number,
rsbac_gid_t  gid,
struct rsbac_um_group_entry_t entry_p,
char *  pass,
rsbac_time_t  ttl
 

Definition at line 658 of file um_data_structures.c.

int rsbac_um_add_user rsbac_list_ta_number_t  ta_number,
rsbac_uid_t  uid,
struct rsbac_um_user_entry_t entry_p,
char *  pass,
rsbac_time_t  ttl
 

Definition at line 583 of file um_data_structures.c.

int rsbac_um_auth_name char *  name,
char *  pass
 

int rsbac_um_auth_uid rsbac_uid_t  uid,
char *  pass
 

int rsbac_um_check_account rsbac_uid_t  uid  ) 
 

Definition at line 1649 of file um_data_structures.c.

int rsbac_um_check_account_name char *  name  ) 
 

int rsbac_um_get_gid rsbac_list_ta_number_t  ta_number,
char *  name,
rsbac_gid_t gid_p
 

Definition at line 562 of file um_data_structures.c.

int rsbac_um_get_gm_list rsbac_list_ta_number_t  ta_number,
rsbac_uid_t  user,
rsbac_gid_t  group_array[],
u_int  maxnum
 

int rsbac_um_get_gm_user_list rsbac_list_ta_number_t  ta_number,
rsbac_gid_t  group,
rsbac_uid_t  user_array[],
u_int  maxnum
 

int rsbac_um_get_group_item rsbac_list_ta_number_t  ta_number,
rsbac_gid_t  gid,
enum rsbac_um_mod_t  mod,
union rsbac_um_mod_data_t data_p
 

Definition at line 1133 of file um_data_structures.c.

int rsbac_um_get_group_list rsbac_list_ta_number_t  ta_number,
rsbac_gid_t  group_array[],
u_int  maxnum
 

int rsbac_um_get_next_user rsbac_list_ta_number_t  ta_number,
rsbac_uid_t  old_user,
rsbac_uid_t next_user_p
 

Definition at line 1257 of file um_data_structures.c.

int rsbac_um_get_uid rsbac_list_ta_number_t  ta_number,
char *  name,
rsbac_uid_t uid_p
 

Definition at line 541 of file um_data_structures.c.

int rsbac_um_get_user_item rsbac_list_ta_number_t  ta_number,
rsbac_uid_t  uid,
enum rsbac_um_mod_t  mod,
union rsbac_um_mod_data_t data_p
 

Definition at line 1043 of file um_data_structures.c.

int rsbac_um_get_user_list rsbac_list_ta_number_t  ta_number,
rsbac_uid_t  user_array[],
u_int  maxnum
 

int rsbac_um_group_exists rsbac_list_ta_number_t  ta_number,
rsbac_gid_t  gid
 

Definition at line 1190 of file um_data_structures.c.

int rsbac_um_mod_group rsbac_list_ta_number_t  ta_number,
rsbac_gid_t  gid,
enum rsbac_um_mod_t  mod,
union rsbac_um_mod_data_t data_p
 

int rsbac_um_mod_user rsbac_list_ta_number_t  ta_number,
rsbac_uid_t  uid,
enum rsbac_um_mod_t  mod,
union rsbac_um_mod_data_t data_p
 

Definition at line 781 of file um_data_structures.c.

int rsbac_um_remove_gm rsbac_list_ta_number_t  ta_number,
rsbac_uid_t  uid,
rsbac_gid_t  gid
 

Definition at line 1219 of file um_data_structures.c.

int rsbac_um_remove_group rsbac_list_ta_number_t  ta_number,
rsbac_gid_t  gid
 

Definition at line 1206 of file um_data_structures.c.

int rsbac_um_remove_user rsbac_list_ta_number_t  ta_number,
rsbac_uid_t  uid
 

Definition at line 1197 of file um_data_structures.c.

int rsbac_um_set_group_pass rsbac_gid_t  gid,
char *  new_pass
 

Definition at line 1602 of file um_data_structures.c.

int rsbac_um_set_pass rsbac_uid_t  uid,
char *  old_pass,
char *  new_pass
 

int rsbac_um_set_pass_name char *  name,
char *  old_pass,
char *  new_pass
 

int rsbac_um_user_exists rsbac_list_ta_number_t  ta_number,
rsbac_uid_t  uid
 

Definition at line 1183 of file um_data_structures.c.

int rsbac_write void   ) 
 

Referenced by rsbac_umount(), and sys_rsbac_write().


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