cap_main.c File Reference

#include <linux/string.h>
#include <rsbac/types.h>
#include <rsbac/aci.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

enum rsbac_adf_req_ret_t rsbac_adf_request_cap (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_cap (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_cap 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 34 of file cap_main.c.

References A_auth_learn, A_auth_may_set_cap, A_auth_may_setuid, A_cap_process_hiding, A_cap_role, A_max_caps, A_min_caps, A_none, A_system_role, AUTH, CAP, rsbac_attribute_value_t::cap_process_hiding, DO_NOT_CARE, FREEZE, GRANTED, NOT_GRANTED, PH_from_other_users, PH_full, rsbac_target_id_t::process, R_CHANGE_GROUP, R_GET_STATUS_DATA, R_MODIFY_ATTRIBUTE, R_READ_ATTRIBUTE, R_SEND_SIGNAL, R_SWITCH_LOG, R_SWITCH_MODULE, R_TRACE, rsbac_get_attr, SOFTMODE, SR_administrator, SR_security_officer, rsbac_attribute_value_t::system_role, T_NONE, T_PROCESS, T_USER, TRUE, UNDEFINED, and rsbac_target_id_t::user.

Referenced by rsbac_adf_request_int().

int rsbac_adf_set_attr_cap 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 293 of file cap_main.c.

References A_cap_process_hiding, A_max_caps, A_max_caps_program, A_max_caps_user, A_min_caps, CAP, rsbac_attribute_value_t::cap_process_hiding, FALSE, rsbac_attribute_value_t::max_caps, rsbac_attribute_value_t::max_caps_program, rsbac_attribute_value_t::max_caps_user, rsbac_attribute_value_t::min_caps, rsbac_attribute_value_t::owner, rsbac_target_id_t::process, R_CHANGE_OWNER, R_CLONE, R_EXECUTE, RSBAC_CAP_DEFAULT_MAX, RSBAC_EINVALIDATTR, rsbac_get_attr, rsbac_set_attr, T_FILE, T_PROCESS, T_USER, 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