auth_main.c File Reference

#include <linux/string.h>
#include <rsbac/types.h>
#include <rsbac/aci.h>
#include <rsbac/auth.h>
#include <rsbac/adf_main.h>
#include <rsbac/error.h>
#include <rsbac/helpers.h>
#include <rsbac/getname.h>
#include <rsbac/debug.h>

Go to the source code of this file.

Functions

static int rsbac_replace_auth_cap (rsbac_pid_t caller_pid, enum rsbac_auth_cap_type_t cap_type, rsbac_uid_t from, rsbac_uid_t to)
enum rsbac_adf_req_ret_t rsbac_adf_request_auth (enum rsbac_adf_request_t request, rsbac_pid_t caller_pid, enum rsbac_target_t target, union rsbac_target_id_t tid, enum rsbac_attribute_t attr, union rsbac_attribute_value_t attr_val, rsbac_uid_t owner)
int rsbac_adf_set_attr_auth (enum rsbac_adf_request_t request, rsbac_pid_t caller_pid, enum rsbac_target_t target, union rsbac_target_id_t tid, enum rsbac_target_t new_target, union rsbac_target_id_t new_tid, enum rsbac_attribute_t attr, union rsbac_attribute_value_t attr_val, rsbac_uid_t owner)


Function Documentation

enum rsbac_adf_req_ret_t rsbac_adf_request_auth enum rsbac_adf_request_t  request,
rsbac_pid_t  caller_pid,
enum rsbac_target_t  target,
union rsbac_target_id_t  tid,
enum rsbac_attribute_t  attr,
union rsbac_attribute_value_t  attr_val,
rsbac_uid_t  owner
 

Definition at line 65 of file auth_main.c.

References A_auth_last_auth, A_auth_learn, A_auth_may_set_cap, A_auth_may_setuid, A_auth_role, A_none, A_system_role, ACT_eff, ACT_fs, ACT_group_eff, ACT_group_fs, ACT_group_real, ACT_real, AMS_full, AMS_last_auth_and_gid, AMS_last_auth_only, AMS_off, AUTH, rsbac_attribute_value_t::auth_last_auth, rsbac_attribute_value_t::auth_may_set_cap, rsbac_attribute_value_t::auth_may_setuid, DO_NOT_CARE, FALSE, FREEZE, GRANTED, NOT_GRANTED, rsbac_attribute_value_t::owner, rsbac_target_id_t::process, R_CHANGE_DAC_EFF_GROUP, R_CHANGE_DAC_EFF_OWNER, R_CHANGE_DAC_FS_GROUP, R_CHANGE_DAC_FS_OWNER, R_CHANGE_GROUP, R_CHANGE_OWNER, R_CREATE, R_DELETE, R_GET_PERMISSIONS_DATA, R_GET_STATUS_DATA, R_MODIFY_ATTRIBUTE, R_MODIFY_PERMISSIONS_DATA, R_MODIFY_SYSTEM_DATA, R_RENAME, R_SWITCH_LOG, R_SWITCH_MODULE, R_WRITE, rsbac_auth_p_capset_member(), RSBAC_EREADFAILED, rsbac_get_attr, RSBAC_NO_USER, rsbac_target_id_t::scd, SOFTMODE, SR_administrator, SR_auditor, SR_security_officer, ST_ioports, ST_rsbaclog, rsbac_attribute_value_t::system_role, T_GROUP, T_NONE, T_PROCESS, T_SCD, T_USER, TRUE, UNDEFINED, and rsbac_target_id_t::user.

Referenced by rsbac_adf_request_int().

int rsbac_adf_set_attr_auth enum rsbac_adf_request_t  request,
rsbac_pid_t  caller_pid,
enum rsbac_target_t  target,
union rsbac_target_id_t  tid,
enum rsbac_target_t  new_target,
union rsbac_target_id_t  new_tid,
enum rsbac_attribute_t  attr,
union rsbac_attribute_value_t  attr_val,
rsbac_uid_t  owner
 

Definition at line 738 of file auth_main.c.

References A_auth_last_auth, A_auth_learn, A_auth_may_set_cap, A_auth_may_setuid, ACT_eff, ACT_fs, ACT_real, AUTH, rsbac_attribute_value_t::auth_last_auth, FALSE, rsbac_target_id_t::process, R_APPEND_OPEN, R_CHANGE_GROUP, R_CLONE, R_DELETE, R_EXECUTE, R_LINK_HARD, R_MODIFY_ACCESS_DATA, R_READ_WRITE_OPEN, R_RENAME, R_TRUNCATE, R_WRITE_OPEN, rsbac_auth_copy_fp_capset(), rsbac_auth_copy_pp_capset(), RSBAC_AUTH_DAC_OWNER_F_CAP, RSBAC_AUTH_OWNER_F_CAP, rsbac_auth_remove_f_capsets(), RSBAC_EREADFAILED, RSBAC_EWRITEFAILED, rsbac_get_attr, RSBAC_NO_USER, rsbac_replace_auth_cap(), rsbac_set_attr, T_FILE, T_PROCESS, and TRUE.

Referenced by rsbac_adf_set_attr().

static int rsbac_replace_auth_cap rsbac_pid_t  caller_pid,
enum rsbac_auth_cap_type_t  cap_type,
rsbac_uid_t  from,
rsbac_uid_t  to
[static]
 

Definition at line 30 of file auth_main.c.

References rsbac_auth_cap_range_t::first, rsbac_auth_cap_range_t::last, rsbac_auth_add_to_p_capset(), rsbac_auth_p_capset_member(), rsbac_auth_remove_from_p_capset(), and RSBAC_EWRITEFAILED.

Referenced by rsbac_adf_set_attr_auth().


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