gen_lists.h File Reference

#include <linux/init.h>
#include <rsbac/rkmem.h>
#include <rsbac/lists.h>

Go to the source code of this file.

Defines

#define RSBAC_LIST_DISK_VERSION   10002
#define RSBAC_LIST_DISK_OLD_VERSION   10001
#define RSBAC_LIST_NONAME   "(no name)"
#define RSBAC_LIST_PROC_NAME   "gen_lists"
#define RSBAC_LIST_DEVICENAME   "gen_list_device"
#define RSBAC_LIST_FILENAME   "genlst"
#define RSBAC_GEN_LIST_DISK_VERSION   10001
#define RSBAC_GEN_LIST_KEY   0x101face
#define RSBAC_LIST_TA_KEY   0xface99

Typedefs

typedef __u32 rsbac_list_count_t

Functions

int __init rsbac_list_init (void)
int rsbac_list_mount (kdev_t kdev)
int rsbac_list_umount (kdev_t kdev)
int rsbac_check_lists (int correct)


Define Documentation

#define RSBAC_GEN_LIST_DISK_VERSION   10001
 

Definition at line 22 of file gen_lists.h.

#define RSBAC_GEN_LIST_KEY   0x101face
 

Definition at line 23 of file gen_lists.h.

#define RSBAC_LIST_DEVICENAME   "gen_list_device"
 

Definition at line 19 of file gen_lists.h.

#define RSBAC_LIST_DISK_OLD_VERSION   10001
 

Definition at line 16 of file gen_lists.h.

Referenced by read_list(), and read_lol_list().

#define RSBAC_LIST_DISK_VERSION   10002
 

Definition at line 15 of file gen_lists.h.

Referenced by fill_buffer(), fill_lol_buffer(), read_list(), and read_lol_list().

#define RSBAC_LIST_FILENAME   "genlst"
 

Definition at line 20 of file gen_lists.h.

#define RSBAC_LIST_NONAME   "(no name)"
 

Definition at line 17 of file gen_lists.h.

Referenced by create_lol_reg(), and create_reg().

#define RSBAC_LIST_PROC_NAME   "gen_lists"
 

Definition at line 18 of file gen_lists.h.

Referenced by rsbac_list_init().

#define RSBAC_LIST_TA_KEY   0xface99
 

Definition at line 25 of file gen_lists.h.

Referenced by rsbac_list_init().


Typedef Documentation

typedef __u32 rsbac_list_count_t
 

Definition at line 77 of file gen_lists.h.


Function Documentation

int rsbac_check_lists int  correct  ) 
 

Definition at line 5403 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::count, rsbac_list_lol_item_t::count, rsbac_list_reg_item_t::count, rsbac_list_lol_info_t::data_size, rsbac_list_info_t::data_size, rsbac_list_lol_reg_item_t::def_data, rsbac_list_reg_item_t::def_data, rsbac_list_lol_reg_item_t::def_subdata, rsbac_list_lol_info_t::desc_size, rsbac_list_info_t::desc_size, rsbac_list_lol_reg_item_t::device, rsbac_list_reg_item_t::device, rsbac_list_lol_reg_item_t::dirty, rsbac_list_reg_item_t::dirty, do_remove_item(), do_remove_lol_item(), do_remove_lol_subitem(), rsbac_list_lol_reg_item_t::flags, rsbac_list_reg_item_t::flags, rsbac_list_lol_reg_item_t::head, rsbac_list_lol_reg_head_t::head, rsbac_list_reg_item_t::head, rsbac_list_reg_head_t::head, rsbac_list_lol_reg_item_t::info, rsbac_list_reg_item_t::info, list_initialized, rsbac_list_lol_reg_item_t::lock, rsbac_list_lol_reg_head_t::lock, rsbac_list_reg_item_t::lock, rsbac_list_reg_head_t::lock, rsbac_list_lol_item_t::max_age, rsbac_list_item_t::max_age, rsbac_list_lol_reg_item_t::name, rsbac_list_reg_item_t::name, rsbac_list_lol_reg_item_t::next, rsbac_list_lol_item_t::next, rsbac_list_reg_item_t::next, rsbac_list_item_t::next, RSBAC_ENOTINITIALIZED, RSBAC_LIST_DEF_DATA, RSBAC_LIST_PERSIST, rsbac_list_lol_info_t::subdata_size, and rsbac_list_lol_info_t::subdesc_size.

Referenced by rsbac_do_init(), and sys_rsbac_check().

int __init rsbac_list_init void   ) 
 

Definition at line 5012 of file gen_lists.c.

References rsbac_list_lol_reg_head_t::count, rsbac_list_reg_head_t::count, rsbac_list_lol_reg_head_t::curr, rsbac_list_reg_head_t::curr, get_error_name(), rsbac_list_lol_reg_head_t::head, rsbac_list_reg_head_t::head, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_reg_head_t::lock, NULL, proc_rsbac_root_p, rsbac_list_compare_u32(), RSBAC_LIST_PROC_NAME, rsbac_list_register(), RSBAC_LIST_TA_KEY, RSBAC_LIST_VERSION, RSBAC_MAXNAMELEN, rsbac_list_lol_reg_head_t::tail, rsbac_list_reg_head_t::tail, and TRUE.

Referenced by rsbac_do_init().

int rsbac_list_mount kdev_t  kdev  ) 
 

Definition at line 5104 of file gen_lists.c.

Referenced by rsbac_mount().

int rsbac_list_umount kdev_t  kdev  ) 
 

Definition at line 5109 of file gen_lists.c.

Referenced by rsbac_umount().


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