/daten/src/linux-2.4.27-rsbac-v1.2.3/include/rsbac/reg.h File Reference

#include <rsbac/types.h>
#include <rsbac/debug.h>

Go to the source code of this file.

Data Structures

struct  rsbac_reg_entry_t
struct  rsbac_reg_syscall_entry_t

Defines

#define RSBAC_REG_VERSION   1
#define RSBAC_REG_NAME_LEN   30

Typedefs

typedef int rsbac_reg_request_func_t (enum rsbac_adf_request_t, rsbac_pid_t, enum rsbac_target_t, union rsbac_target_id_t, enum rsbac_attribute_t, union rsbac_attribute_value_t, rsbac_uid_t)
typedef int rsbac_reg_set_attr_func_t (enum rsbac_adf_request_t, rsbac_pid_t, enum rsbac_target_t, union rsbac_target_id_t, enum rsbac_target_t, union rsbac_target_id_t, enum rsbac_attribute_t, union rsbac_attribute_value_t, rsbac_uid_t)
typedef boolean rsbac_reg_need_overwrite_func_t (struct dentry *dentry_p)
typedef int rsbac_reg_write_func_t (boolean need_lock)
typedef int rsbac_reg_mount_func_t (kdev_t kdev)
typedef int rsbac_reg_umount_func_t (kdev_t kdev)
typedef int rsbac_reg_syscall_func_t (void *data)
typedef int rsbac_reg_check_func_t (int correct, int check_inode)

Functions

rsbac_reg_handle_t rsbac_reg_register (rsbac_version_t version, struct rsbac_reg_entry_t entry)
int rsbac_reg_switch (rsbac_reg_handle_t handle, boolean value)
int rsbac_reg_unregister (rsbac_reg_handle_t handle)
rsbac_reg_handle_t rsbac_reg_register_syscall (rsbac_version_t version, struct rsbac_reg_syscall_entry_t entry)
int rsbac_reg_unregister_syscall (rsbac_reg_handle_t handle)


Define Documentation

#define RSBAC_REG_NAME_LEN   30
 

Definition at line 21 of file reg.h.

Referenced by add_item(), add_sc_item(), init_module(), rsbac_reg_register(), and rsbac_reg_register_syscall().

#define RSBAC_REG_VERSION   1
 

Definition at line 15 of file reg.h.

Referenced by init_module(), rsbac_reg_register(), rsbac_reg_register_syscall(), and xp_sys_hook().


Typedef Documentation

typedef int rsbac_reg_check_func_t(int correct, int check_inode)
 

Definition at line 73 of file reg.h.

typedef int rsbac_reg_mount_func_t(kdev_t kdev)
 

Definition at line 61 of file reg.h.

typedef boolean rsbac_reg_need_overwrite_func_t(struct dentry *dentry_p)
 

Definition at line 46 of file reg.h.

typedef int rsbac_reg_request_func_t(enum rsbac_adf_request_t, rsbac_pid_t, enum rsbac_target_t, union rsbac_target_id_t, enum rsbac_attribute_t, union rsbac_attribute_value_t, rsbac_uid_t)
 

Definition at line 25 of file reg.h.

typedef int rsbac_reg_set_attr_func_t(enum rsbac_adf_request_t, rsbac_pid_t, enum rsbac_target_t, union rsbac_target_id_t, enum rsbac_target_t, union rsbac_target_id_t, enum rsbac_attribute_t, union rsbac_attribute_value_t, rsbac_uid_t)
 

Definition at line 35 of file reg.h.

typedef int rsbac_reg_syscall_func_t(void *data)
 

Definition at line 68 of file reg.h.

typedef int rsbac_reg_umount_func_t(kdev_t kdev)
 

Definition at line 64 of file reg.h.

typedef int rsbac_reg_write_func_t(boolean need_lock)
 

Definition at line 58 of file reg.h.


Function Documentation

rsbac_reg_handle_t rsbac_reg_register rsbac_version_t  version,
struct rsbac_reg_entry_t  entry
 

Definition at line 710 of file reg_main.c.

References add_item(), rsbac_reg_entry_t::handle, list_head, lookup_item(), rsbac_reg_entry_t::mount_func, rsbac_reg_entry_t::name, rsbac_reg_entry_t::need_overwrite_func, rsbac_reg_entry_t::request_func, RSBAC_ECOULDNOTADDITEM, RSBAC_EEXISTS, RSBAC_EINVALIDVALUE, RSBAC_EINVALIDVERSION, rsbac_reg_handle_t, RSBAC_REG_NAME_LEN, RSBAC_REG_VERSION, rsbac_version_t, rsbac_reg_entry_t::set_attr_func, rsbac_reg_entry_t::umount_func, and rsbac_reg_entry_t::write_func.

Referenced by init_module(), and xp_sys_hook().

rsbac_reg_handle_t rsbac_reg_register_syscall rsbac_version_t  version,
struct rsbac_reg_syscall_entry_t  entry
 

Definition at line 888 of file reg_main.c.

References add_sc_item(), rsbac_reg_syscall_entry_t::dispatcher_handle, lookup_sc_item_dis(), lookup_sc_item_reg(), rsbac_reg_syscall_entry_t::name, rsbac_reg_syscall_entry_t::registration_handle, RSBAC_ECOULDNOTADDITEM, RSBAC_EEXISTS, RSBAC_EINVALIDVALUE, RSBAC_EINVALIDVERSION, rsbac_reg_handle_t, RSBAC_REG_NAME_LEN, RSBAC_REG_VERSION, rsbac_version_t, sc_list_head, and rsbac_reg_syscall_entry_t::syscall_func.

Referenced by init_module().

int rsbac_reg_switch rsbac_reg_handle_t  handle,
boolean  value
 

Definition at line 787 of file reg_main.c.

References FALSE, list_head, lookup_item(), RSBAC_EINVALIDTARGET, RSBAC_EINVALIDVALUE, rsbac_reg_handle_t, and TRUE.

int rsbac_reg_unregister rsbac_reg_handle_t  handle  ) 
 

Definition at line 835 of file reg_main.c.

References list_head, lookup_item(), remove_item(), RSBAC_EINVALIDTARGET, RSBAC_EINVALIDVALUE, and rsbac_reg_handle_t.

Referenced by cleanup_module(), init_module(), and xp_sys_unhook().

int rsbac_reg_unregister_syscall rsbac_reg_handle_t  handle  ) 
 

Definition at line 975 of file reg_main.c.

References lookup_sc_item_reg(), remove_sc_item(), RSBAC_EINVALIDTARGET, RSBAC_EINVALIDVALUE, rsbac_reg_handle_t, and sc_list_head.

Referenced by cleanup_module(), and init_module().


Generated on Tue Aug 31 10:05:27 2004 for RSBAC by doxygen 1.3.8