reg.h File Reference

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

Go to the source code of this file.

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 rsbac_boolean_t rsbac_reg_need_overwrite_func_t (struct dentry *dentry_p)
typedef int rsbac_reg_write_func_t (rsbac_boolean_t 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, rsbac_boolean_t 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(), and rsbac_reg_register_syscall().


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 rsbac_boolean_t 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(rsbac_boolean_t 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_NAME_LEN, RSBAC_REG_VERSION, rsbac_reg_entry_t::set_attr_func, rsbac_reg_entry_t::umount_func, and rsbac_reg_entry_t::write_func.

Referenced by init_module().

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_NAME_LEN, RSBAC_REG_VERSION, sc_list_head, and rsbac_reg_syscall_entry_t::syscall_func.

Referenced by init_module().

int rsbac_reg_switch rsbac_reg_handle_t  handle,
rsbac_boolean_t  value
 

Definition at line 787 of file reg_main.c.

References FALSE, list_head, lookup_item(), RSBAC_EINVALIDTARGET, RSBAC_EINVALIDVALUE, 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, and RSBAC_EINVALIDVALUE.

Referenced by cleanup_module(), and init_module().

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, and sc_list_head.

Referenced by cleanup_module(), and init_module().


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