jail_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/network.h>
#include <rsbac/debug.h>

Go to the source code of this file.

Functions

static rsbac_jail_id_t jail_get_id (enum rsbac_target_t target, union rsbac_target_id_t tid)
static rsbac_jail_id_t jail_get_id_process (rsbac_pid_t pid)
static rsbac_jail_flags_t jail_get_flags_process (rsbac_pid_t pid)
static enum rsbac_adf_req_ret_t jail_check_sysrole (rsbac_uid_t owner, enum rsbac_system_role_t role)
enum rsbac_adf_req_ret_t rsbac_adf_request_jail (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_jail (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 jail_check_sysrole rsbac_uid_t  owner,
enum rsbac_system_role_t  role
[static]
 

Definition at line 120 of file jail_main.c.

References A_jail_role, GRANTED, JAIL, 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_jail().

static rsbac_jail_flags_t jail_get_flags_process rsbac_pid_t  pid  )  [static]
 

Definition at line 98 of file jail_main.c.

References A_jail_flags, JAIL, rsbac_attribute_value_t::jail_flags, rsbac_target_id_t::process, rsbac_get_attr, T_PROCESS, and TRUE.

Referenced by rsbac_adf_request_jail().

static rsbac_jail_id_t jail_get_id enum rsbac_target_t  target,
union rsbac_target_id_t  tid
[static]
 

Definition at line 31 of file jail_main.c.

References A_jail_id, JAIL, rsbac_attribute_value_t::jail_id, rsbac_get_attr, and TRUE.

Referenced by rsbac_adf_request_jail().

static rsbac_jail_id_t jail_get_id_process rsbac_pid_t  pid  )  [static]
 

Definition at line 52 of file jail_main.c.

References A_jail_id, JAIL, rsbac_attribute_value_t::jail_id, rsbac_target_id_t::process, rsbac_get_attr, T_PROCESS, and TRUE.

Referenced by rsbac_adf_request_jail().

enum rsbac_adf_req_ret_t rsbac_adf_request_jail 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 345 of file jail_main.c.

References A_jail_flags, A_jail_id, A_jail_ip, A_jail_max_caps, A_jail_role, A_none, A_system_role, DO_NOT_CARE, FREEZE, GRANTED, JAIL, JAIL_allow_all_net_family, JAIL_allow_clock, JAIL_allow_external_ipc, JAIL_allow_inet_raw, JAIL_allow_rlimit, jail_check_sysrole(), jail_get_flags_process(), jail_get_id(), jail_get_id_process(), rsbac_target_id_t::netobj, NOT_GRANTED, rsbac_target_id_t::process, R_ACCEPT, R_ADD_TO_KERNEL, R_BIND, R_CONNECT, R_CREATE, R_DELETE, R_GET_STATUS_DATA, R_LISTEN, R_MODIFY_ATTRIBUTE, R_MODIFY_PERMISSIONS_DATA, R_MODIFY_SYSTEM_DATA, R_MOUNT, R_READ, R_READ_ATTRIBUTE, R_RECEIVE, R_REMOVE_FROM_KERNEL, R_SEND, R_SEND_SIGNAL, R_SHUTDOWN, R_SWITCH_LOG, R_SWITCH_MODULE, R_TRACE, R_UMOUNT, R_WRITE, rsbac_target_id_t::scd, rsbac_net_obj_desc_t::sock_p, SOFTMODE, SR_administrator, SR_security_officer, ST_clock, ST_rlimit, ST_time_strucs, T_DEV, T_DIR, T_FIFO, T_FILE, T_IPC, T_NETDEV, T_NETOBJ, T_NETTEMP, T_NONE, T_PROCESS, T_SCD, T_SYMLINK, and UNDEFINED.

Referenced by rsbac_adf_request_int().

int rsbac_adf_set_attr_jail 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 903 of file jail_main.c.

References A_jail_flags, A_jail_id, A_jail_ip, A_jail_max_caps, FALSE, JAIL, JAIL_auto_adjust_inet_any, rsbac_attribute_value_t::jail_flags, rsbac_attribute_value_t::jail_ip, rsbac_attribute_value_t::jail_max_caps, rsbac_target_id_t::netobj, rsbac_target_id_t::process, R_BIND, R_CHANGE_OWNER, R_CLONE, R_CREATE, R_EXECUTE, RSBAC_EINVALIDATTR, RSBAC_EREADFAILED, RSBAC_EWRITEFAILED, rsbac_get_attr, rsbac_set_attr, rsbac_net_obj_desc_t::sock_p, T_FILE, T_IPC, T_NETOBJ, T_PROCESS, and TRUE.

Referenced by rsbac_adf_set_attr().


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