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