fc_main.c File Reference

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

Go to the source code of this file.

Functions

static enum rsbac_adf_req_ret_t check_role_fc (enum rsbac_target_t target, union rsbac_target_id_t tid, rsbac_uid_t owner)
static enum rsbac_adf_req_ret_t fc_check_sysrole (rsbac_uid_t owner, enum rsbac_system_role_t role)
enum rsbac_adf_req_ret_t rsbac_adf_request_fc (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_fc (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

static enum rsbac_adf_req_ret_t check_role_fc enum rsbac_target_t  target,
union rsbac_target_id_t  tid,
rsbac_uid_t  owner
[static]
 

Definition at line 30 of file fc_main.c.

References A_fc_role, A_object_category, FC, GRANTED, NOT_GRANTED, rsbac_attribute_value_t::object_category, OC_general, OC_security, OC_system, rsbac_get_attr, SR_administrator, SR_security_officer, rsbac_attribute_value_t::system_role, T_USER, TRUE, and rsbac_target_id_t::user.

Referenced by rsbac_adf_request_fc().

static enum rsbac_adf_req_ret_t fc_check_sysrole rsbac_uid_t  owner,
enum rsbac_system_role_t  role
[static]
 

Definition at line 149 of file fc_main.c.

References A_fc_role, FC, GRANTED, NOT_GRANTED, rsbac_get_attr, rsbac_attribute_value_t::system_role, T_USER, TRUE, and rsbac_target_id_t::user.

Referenced by rsbac_adf_request_fc().

enum rsbac_adf_req_ret_t rsbac_adf_request_fc 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 178 of file fc_main.c.

References A_audit_uid, A_auid_exempt, A_auth_learn, A_auth_may_set_cap, A_auth_may_setuid, A_fake_root_uid, A_fc_role, A_linux_dac_disable, A_local_object_category, A_log_array_high, A_log_array_low, A_log_program_based, A_log_user_based, A_none, A_object_category, A_remote_object_category, A_symlink_add_rc_role, A_symlink_add_uid, A_system_role, AUTH, check_role_fc(), DO_NOT_CARE, FC, fc_check_sysrole(), FREEZE, GRANTED, NOT_GRANTED, rsbac_attribute_value_t::owner, R_ACCEPT, R_ADD_TO_KERNEL, R_ALTER, R_APPEND_OPEN, R_BIND, R_CHANGE_GROUP, R_CHANGE_OWNER, R_CHDIR, R_CONNECT, R_CREATE, R_DELETE, R_EXECUTE, R_GET_STATUS_DATA, R_LINK_HARD, R_LISTEN, R_MODIFY_ACCESS_DATA, R_MODIFY_ATTRIBUTE, R_MODIFY_PERMISSIONS_DATA, R_MODIFY_SYSTEM_DATA, R_MOUNT, R_READ, R_READ_ATTRIBUTE, R_READ_OPEN, R_READ_WRITE_OPEN, R_RECEIVE, R_REMOVE_FROM_KERNEL, R_RENAME, R_SEARCH, R_SEND, R_SHUTDOWN, R_SWITCH_LOG, R_SWITCH_MODULE, R_TRUNCATE, R_UMOUNT, R_WRITE, R_WRITE_OPEN, rsbac_get_attr, rsbac_target_id_t::scd, SOFTMODE, SR_administrator, SR_auditor, SR_security_officer, SR_user, ST_ioports, ST_rlimit, ST_rsbac, ST_rsbac_remote_log, ST_rsbaclog, rsbac_attribute_value_t::system_role, T_DEV, T_DIR, T_FIFO, T_FILE, T_IPC, T_NETDEV, T_NETOBJ, T_NETTEMP, T_NONE, T_PROCESS, T_SCD, T_SYMLINK, T_USER, TRUE, UNDEFINED, and rsbac_target_id_t::user.

Referenced by rsbac_adf_request_int().

int rsbac_adf_set_attr_fc 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 795 of file fc_main.c.

References A_fc_role, A_local_object_category, A_object_category, FC, rsbac_attribute_value_t::object_category, OC_security, OC_system, R_CREATE, RSBAC_EREADFAILED, RSBAC_EWRITEFAILED, rsbac_get_attr, rsbac_set_attr, SR_administrator, SR_security_officer, SR_user, rsbac_attribute_value_t::system_role, T_IPC, T_NETOBJ, T_USER, TRUE, and rsbac_target_id_t::user.

Referenced by rsbac_adf_set_attr().


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