gen_lists.c File Reference

#include <linux/sched.h>
#include <linux/smp_lock.h>
#include <linux/module.h>
#include <asm/uaccess.h>
#include <rsbac/types.h>
#include <rsbac/error.h>
#include <rsbac/helpers.h>
#include <rsbac/getname.h>
#include <rsbac/debug.h>
#include <rsbac/adf.h>
#include <rsbac/aci_data_structures.h>
#include <rsbac/proc_fs.h>
#include <rsbac/rkmem.h>
#include <rsbac/lists.h>
#include <rsbac/gen_lists.h>

Go to the source code of this file.

Functions

static struct rsbac_list_item_tlookup_item_compare (struct rsbac_list_reg_item_t *list, void *desc)
static struct rsbac_list_item_tlookup_item_memcmp (struct rsbac_list_reg_item_t *list, void *desc)
static struct rsbac_list_item_tlookup_item (struct rsbac_list_reg_item_t *list, void *desc)
static struct rsbac_list_item_tlookup_item_data_compare (struct rsbac_list_reg_item_t *list, void *data, rsbac_list_data_compare_function_t compare)
static struct rsbac_list_item_tlookup_item_data_memcmp (struct rsbac_list_reg_item_t *list, void *data)
static struct rsbac_list_item_tlookup_item_data (struct rsbac_list_reg_item_t *list, void *data, rsbac_list_data_compare_function_t compare)
static struct rsbac_list_item_tlookup_lol_subitem_compare (struct rsbac_list_lol_reg_item_t *list, struct rsbac_list_lol_item_t *sublist, void *subdesc, rsbac_list_compare_function_t compare)
static struct rsbac_list_item_tlookup_lol_subitem_memcmp (struct rsbac_list_lol_reg_item_t *list, struct rsbac_list_lol_item_t *sublist, void *subdesc)
static struct rsbac_list_item_tlookup_lol_subitem (struct rsbac_list_lol_reg_item_t *list, struct rsbac_list_lol_item_t *sublist, void *subdesc)
static struct rsbac_list_item_tlookup_lol_subitem_user_compare (struct rsbac_list_lol_reg_item_t *list, struct rsbac_list_lol_item_t *sublist, void *subdesc, rsbac_list_compare_function_t compare)
static struct rsbac_list_lol_item_tlookup_lol_item_compare (struct rsbac_list_lol_reg_item_t *list, void *desc)
static struct rsbac_list_lol_item_tlookup_lol_item_memcmp (struct rsbac_list_lol_reg_item_t *list, void *desc)
static struct rsbac_list_lol_item_tlookup_lol_item (struct rsbac_list_lol_reg_item_t *list, void *desc)
static struct rsbac_list_lol_item_tlookup_lol_item_data_compare (struct rsbac_list_lol_reg_item_t *list, void *data, rsbac_list_data_compare_function_t compare)
static struct rsbac_list_lol_item_tlookup_lol_item_data_memcmp (struct rsbac_list_lol_reg_item_t *list, void *data)
static struct rsbac_list_lol_item_tlookup_lol_item_data (struct rsbac_list_lol_reg_item_t *list, void *data, rsbac_list_data_compare_function_t compare)
static struct rsbac_list_reg_item_tlookup_reg (struct rsbac_list_reg_item_t *handle)
static struct rsbac_list_reg_item_tlookup_reg_name (char *name, kdev_t device)
static struct rsbac_list_lol_reg_item_tlookup_lol_reg (struct rsbac_list_lol_reg_item_t *handle)
static struct rsbac_list_lol_reg_item_tlookup_lol_reg_name (char *name, kdev_t device)
static struct rsbac_list_item_tinsert_item_compare (struct rsbac_list_reg_item_t *list, void *desc, struct rsbac_list_item_t *new_item_p)
static struct rsbac_list_item_tinsert_item_memcmp (struct rsbac_list_reg_item_t *list, void *desc, struct rsbac_list_item_t *new_item_p)
static struct rsbac_list_item_tadd_item (struct rsbac_list_reg_item_t *list, rsbac_time_t max_age, void *desc, void *data)
static struct rsbac_list_item_tinsert_lol_subitem_compare (struct rsbac_list_lol_reg_item_t *list, struct rsbac_list_lol_item_t *sublist, void *subdesc, struct rsbac_list_item_t *new_item_p)
static struct rsbac_list_item_tinsert_lol_subitem_memcmp (struct rsbac_list_lol_reg_item_t *list, struct rsbac_list_lol_item_t *sublist, void *subdesc, struct rsbac_list_item_t *new_item_p)
static struct rsbac_list_item_tadd_lol_subitem (struct rsbac_list_lol_reg_item_t *list, struct rsbac_list_lol_item_t *sublist, rsbac_time_t max_age, void *subdesc, void *subdata)
static struct rsbac_list_lol_item_tinsert_lol_item_compare (struct rsbac_list_lol_reg_item_t *list, void *desc, struct rsbac_list_lol_item_t *new_item_p)
static struct rsbac_list_lol_item_tinsert_lol_item_memcmp (struct rsbac_list_lol_reg_item_t *list, void *desc, struct rsbac_list_lol_item_t *new_item_p)
static struct rsbac_list_lol_item_tadd_lol_item (struct rsbac_list_lol_reg_item_t *list, rsbac_time_t max_age, void *desc, void *data)
static struct rsbac_list_reg_item_tcreate_reg (struct rsbac_list_info_t *info_p, u_int flags, rsbac_list_compare_function_t *compare, rsbac_list_get_conv_t *get_conv, void *def_data, char *name, kdev_t device)
static struct rsbac_list_reg_item_tadd_reg (struct rsbac_list_reg_item_t *new_item_p)
static struct rsbac_list_lol_reg_item_tcreate_lol_reg (struct rsbac_list_lol_info_t *info_p, u_int flags, rsbac_list_compare_function_t *compare, rsbac_list_compare_function_t *subcompare, rsbac_list_get_conv_t *get_conv, rsbac_list_get_conv_t *get_subconv, void *def_data, void *def_subdata, char *name, kdev_t device)
static struct rsbac_list_lol_reg_item_tadd_lol_reg (struct rsbac_list_lol_reg_item_t *new_item_p)
static void do_remove_item (struct rsbac_list_reg_item_t *list, struct rsbac_list_item_t *item_p)
static void remove_item (struct rsbac_list_reg_item_t *list, void *desc)
static void remove_all_items (struct rsbac_list_reg_item_t *list)
static void do_remove_lol_subitem (struct rsbac_list_lol_item_t *sublist, struct rsbac_list_item_t *item_p)
static void remove_lol_subitem (struct rsbac_list_lol_reg_item_t *list, struct rsbac_list_lol_item_t *sublist, void *subdesc)
static void do_remove_lol_item (struct rsbac_list_lol_reg_item_t *list, struct rsbac_list_lol_item_t *item_p)
static void remove_lol_item (struct rsbac_list_lol_reg_item_t *list, void *desc)
static void remove_all_lol_subitems (struct rsbac_list_lol_item_t *sublist)
static void remove_all_lol_items (struct rsbac_list_lol_reg_item_t *list)
static void clear_reg (struct rsbac_list_reg_item_t *item_p)
static void remove_reg (struct rsbac_list_reg_item_t *handle)
static void clear_lol_reg (struct rsbac_list_lol_reg_item_t *item_p)
static void remove_lol_reg (struct rsbac_list_lol_reg_item_t *handle)
static int read_list (struct rsbac_list_reg_item_t *list)
static int read_lol_list (struct rsbac_list_lol_reg_item_t *list)
static int fill_buffer (struct rsbac_list_reg_item_t *list, struct rsbac_list_write_item_t **write_item_pp)
static int rsbac_list_write_buffers (struct rsbac_list_write_head_t write_head, rsbac_boolean_t need_lock)
static int fill_lol_buffer (struct rsbac_list_lol_reg_item_t *list, struct rsbac_list_lol_write_item_t **write_item_pp)
static int rsbac_list_write_lol_buffers (struct rsbac_list_lol_write_head_t write_head, rsbac_boolean_t need_lock)
int rsbac_list_compare_u32 (void *desc1, void *desc2)
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)
int rsbac_list_check (rsbac_list_handle_t handle, int correct)
int rsbac_list_lol_check (rsbac_list_handle_t handle, int correct)
rsbac_version_t rsbac_list_version (void)
int rsbac_list_register (rsbac_version_t ds_version, rsbac_list_handle_t *handle_p, struct rsbac_list_info_t *info_p, u_int flags, rsbac_list_compare_function_t *compare, rsbac_list_get_conv_t *get_conv, void *def_data, char *name, kdev_t device)
int rsbac_list_lol_register (rsbac_version_t ds_version, rsbac_list_handle_t *handle_p, struct rsbac_list_lol_info_t *info_p, u_int flags, rsbac_list_compare_function_t *compare, rsbac_list_compare_function_t *subcompare, rsbac_list_get_conv_t *get_conv, rsbac_list_get_conv_t *get_subconv, void *def_data, void *def_subdata, char *name, kdev_t device)
int rsbac_list_destroy (rsbac_list_handle_t *handle_p, rsbac_list_key_t key)
int rsbac_list_lol_destroy (rsbac_list_handle_t *handle_p, rsbac_list_key_t key)
int rsbac_list_detach (rsbac_list_handle_t *handle_p, rsbac_list_key_t key)
int rsbac_list_lol_detach (rsbac_list_handle_t *handle_p, rsbac_list_key_t key)
int rsbac_list_no_write (rsbac_list_handle_t handle, rsbac_list_key_t key, rsbac_boolean_t no_write)
int rsbac_list_lol_no_write (rsbac_list_handle_t handle, rsbac_list_key_t key, rsbac_boolean_t no_write)
int rsbac_ta_list_add_ttl (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, rsbac_time_t ttl, void *desc, void *data)
int rsbac_list_add_ttl (rsbac_list_handle_t handle, rsbac_time_t ttl, void *desc, void *data)
int rsbac_list_add (rsbac_list_handle_t handle, void *desc, void *data)
int rsbac_ta_list_lol_subadd_ttl (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, rsbac_time_t ttl, void *desc, void *subdesc, void *subdata)
int rsbac_list_lol_subadd_ttl (rsbac_list_handle_t handle, rsbac_time_t ttl, void *desc, void *subdesc, void *subdata)
int rsbac_list_lol_subadd (rsbac_list_handle_t handle, void *desc, void *subdesc, void *subdata)
int rsbac_ta_list_lol_add_ttl (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, rsbac_time_t ttl, void *desc, void *data)
int rsbac_list_lol_add_ttl (rsbac_list_handle_t handle, rsbac_time_t ttl, void *desc, void *data)
int rsbac_list_lol_add (rsbac_list_handle_t handle, void *desc, void *data)
int rsbac_ta_list_remove (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *desc)
int rsbac_list_remove (rsbac_list_handle_t handle, void *desc)
int rsbac_ta_list_remove_all (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle)
int rsbac_list_remove_all (rsbac_list_handle_t handle)
int rsbac_ta_list_lol_subremove (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *desc, void *subdesc)
int rsbac_list_lol_subremove (rsbac_list_handle_t handle, void *desc, void *subdesc)
int rsbac_ta_list_lol_subremove_from_all (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *subdesc)
int rsbac_list_lol_subremove_from_all (rsbac_list_handle_t handle, void *subdesc)
int rsbac_ta_list_lol_subremove_all (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *desc)
int rsbac_list_lol_subremove_all (rsbac_list_handle_t handle, void *desc)
int rsbac_ta_list_lol_remove (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *desc)
int rsbac_list_lol_remove (rsbac_list_handle_t handle, void *desc)
int rsbac_ta_list_lol_remove_all (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle)
int rsbac_list_lol_remove_all (rsbac_list_handle_t handle)
int rsbac_ta_list_get_data_ttl (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, rsbac_time_t *ttl_p, void *desc, void *data)
int rsbac_list_get_data_ttl (rsbac_list_handle_t handle, rsbac_time_t *ttl_p, void *desc, void *data)
int rsbac_list_get_data (rsbac_list_handle_t handle, void *desc, void *data)
int rsbac_ta_list_lol_get_subdata_ttl (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, rsbac_time_t *ttl_p, void *desc, void *subdesc, void *subdata)
int rsbac_list_lol_get_subdata_ttl (rsbac_list_handle_t handle, rsbac_time_t *ttl_p, void *desc, void *subdesc, void *subdata)
int rsbac_list_lol_get_subdata (rsbac_list_handle_t handle, void *desc, void *subdesc, void *subdata)
int rsbac_ta_list_lol_get_data_ttl (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, rsbac_time_t *ttl_p, void *desc, void *data)
int rsbac_list_lol_get_data_ttl (rsbac_list_handle_t handle, rsbac_time_t *ttl_p, void *desc, void *data)
int rsbac_list_lol_get_data (rsbac_list_handle_t handle, void *desc, void *data)
int rsbac_ta_list_get_max_desc (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *desc)
int rsbac_list_get_max_desc (rsbac_list_handle_t handle, void *desc)
int rsbac_ta_list_get_next_desc (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *old_desc, void *next_desc)
int rsbac_list_get_next_desc (rsbac_list_handle_t handle, void *old_desc, void *next_desc)
int rsbac_ta_list_lol_get_next_desc (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *old_desc, void *next_desc)
int rsbac_list_lol_get_next_desc (rsbac_list_handle_t handle, void *old_desc, void *next_desc)
int rsbac_ta_list_get_desc (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *desc, void *data, rsbac_list_data_compare_function_t compare)
int rsbac_list_get_desc (rsbac_list_handle_t handle, void *desc, void *data, rsbac_list_data_compare_function_t compare)
int rsbac_ta_list_lol_get_desc (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *desc, void *data, rsbac_list_data_compare_function_t compare)
int rsbac_list_lol_get_desc (rsbac_list_handle_t handle, void *desc, void *data, rsbac_list_data_compare_function_t compare)
int rsbac_ta_list_exist (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *desc)
int rsbac_list_exist (rsbac_list_handle_t handle, void *desc)
int rsbac_ta_list_lol_subexist (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *desc, void *subdesc)
int rsbac_list_lol_subexist (rsbac_list_handle_t handle, void *desc, void *subdesc)
int rsbac_ta_list_lol_subexist_compare (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *desc, void *subdesc, rsbac_list_compare_function_t compare)
int rsbac_list_lol_subexist_compare (rsbac_list_handle_t handle, void *desc, void *subdesc, rsbac_list_compare_function_t compare)
int rsbac_ta_list_lol_exist (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *desc)
int rsbac_list_lol_exist (rsbac_list_handle_t handle, void *desc)
long rsbac_ta_list_lol_subcount (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *desc)
long rsbac_list_lol_subcount (rsbac_list_handle_t handle, void *desc)
long rsbac_ta_list_lol_all_subcount (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle)
long rsbac_list_lol_all_subcount (rsbac_list_handle_t handle)
long rsbac_ta_list_lol_count (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle)
long rsbac_list_lol_count (rsbac_list_handle_t handle)
long rsbac_ta_list_count (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle)
long rsbac_list_count (rsbac_list_handle_t handle)
long rsbac_ta_list_get_all_desc (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void **array_p)
long rsbac_list_get_all_desc (rsbac_list_handle_t handle, void **array_p)
long rsbac_ta_list_lol_get_all_subdesc_ttl (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *desc, void **array_p, rsbac_time_t **ttl_array_p)
long rsbac_list_lol_get_all_subdesc_ttl (rsbac_list_handle_t handle, void *desc, void **array_p, rsbac_time_t **ttl_array_p)
long rsbac_list_lol_get_all_subdesc (rsbac_list_handle_t handle, void *desc, void **array_p)
long rsbac_ta_list_lol_get_all_desc (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void **array_p)
long rsbac_list_lol_get_all_desc (rsbac_list_handle_t handle, void **array_p)
long rsbac_ta_list_get_all_data (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void **array_p)
long rsbac_list_get_all_data (rsbac_list_handle_t handle, void **array_p)
long rsbac_ta_list_lol_get_all_subdata (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *desc, void **array_p)
long rsbac_list_lol_get_all_subdata (rsbac_list_handle_t handle, void *desc, void **array_p)
long rsbac_ta_list_lol_get_all_data (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void **array_p)
long rsbac_list_lol_get_all_data (rsbac_list_handle_t handle, void **array_p)
int rsbac_list_get_item_size (rsbac_list_handle_t handle)
int rsbac_list_lol_get_subitem_size (rsbac_list_handle_t handle)
int rsbac_list_lol_get_item_size (rsbac_list_handle_t handle)
long rsbac_ta_list_get_all_items_ttl (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void **array_p, rsbac_time_t **ttl_array_p)
long rsbac_list_get_all_items_ttl (rsbac_list_handle_t handle, void **array_p, rsbac_time_t **ttl_array_p)
long rsbac_list_get_all_items (rsbac_list_handle_t handle, void **array_p)
long rsbac_ta_list_lol_get_all_subitems_ttl (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void *desc, void **array_p, rsbac_time_t **ttl_array_p)
long rsbac_list_lol_get_all_subitems_ttl (rsbac_list_handle_t handle, void *desc, void **array_p, rsbac_time_t **ttl_array_p)
long rsbac_list_lol_get_all_subitems (rsbac_list_handle_t handle, void *desc, void **array_p)
long rsbac_ta_list_lol_get_all_items (rsbac_list_ta_number_t ta_number, rsbac_list_handle_t handle, void **array_p)
long rsbac_list_lol_get_all_items (rsbac_list_handle_t handle, void **array_p)

Variables

static struct rsbac_list_reg_head_t reg_head
static struct rsbac_list_lol_reg_head_t lol_reg_head
static rsbac_boolean_t list_initialized = FALSE


Function Documentation

static struct rsbac_list_item_t* add_item struct rsbac_list_reg_item_t list,
rsbac_time_t  max_age,
void *  desc,
void *  data
[static]
 

Definition at line 1268 of file gen_lists.c.

References insert_item_compare(), insert_item_memcmp(), NULL, and rsbac_kmalloc().

static struct rsbac_list_lol_item_t* add_lol_item struct rsbac_list_lol_reg_item_t list,
rsbac_time_t  max_age,
void *  desc,
void *  data
[static]
 

Definition at line 1971 of file gen_lists.c.

References insert_lol_item_compare(), insert_lol_item_memcmp(), NULL, and rsbac_kmalloc().

Referenced by read_lol_list(), rsbac_ta_list_lol_add_ttl(), and rsbac_ta_list_lol_subadd_ttl().

static struct rsbac_list_lol_reg_item_t* add_lol_reg struct rsbac_list_lol_reg_item_t new_item_p  )  [static]
 

Definition at line 2404 of file gen_lists.c.

References rsbac_list_lol_reg_head_t::count, rsbac_list_lol_reg_head_t::curr, rsbac_list_lol_reg_head_t::head, rsbac_list_lol_reg_item_t::next, NULL, rsbac_list_lol_reg_item_t::prev, and rsbac_list_lol_reg_head_t::tail.

Referenced by rsbac_list_lol_register().

static struct rsbac_list_item_t* add_lol_subitem struct rsbac_list_lol_reg_item_t list,
struct rsbac_list_lol_item_t sublist,
rsbac_time_t  max_age,
void *  subdesc,
void *  subdata
[static]
 

Definition at line 1792 of file gen_lists.c.

References rsbac_list_lol_item_t::count, rsbac_list_lol_item_t::curr, rsbac_list_lol_item_t::head, insert_lol_subitem_compare(), insert_lol_subitem_memcmp(), NULL, rsbac_kmalloc(), and rsbac_list_lol_item_t::tail.

Referenced by read_lol_list(), and rsbac_ta_list_lol_subadd_ttl().

static struct rsbac_list_reg_item_t* add_reg struct rsbac_list_reg_item_t new_item_p  )  [static]
 

Definition at line 2291 of file gen_lists.c.

References rsbac_list_reg_head_t::count, rsbac_list_reg_head_t::curr, rsbac_list_reg_head_t::head, rsbac_list_reg_item_t::next, NULL, rsbac_list_reg_item_t::prev, and rsbac_list_reg_head_t::tail.

Referenced by rsbac_list_register().

static void clear_lol_reg struct rsbac_list_lol_reg_item_t item_p  )  [static]
 

Definition at line 3005 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::def_data, rsbac_list_lol_reg_item_t::def_subdata, remove_all_lol_items(), and rsbac_kfree().

Referenced by remove_lol_reg(), and rsbac_list_lol_register().

static void clear_reg struct rsbac_list_reg_item_t item_p  )  [static]
 

Definition at line 2946 of file gen_lists.c.

References rsbac_list_reg_item_t::def_data, remove_all_items(), and rsbac_kfree().

Referenced by remove_reg(), and rsbac_list_register().

static struct rsbac_list_lol_reg_item_t* create_lol_reg struct rsbac_list_lol_info_t info_p,
u_int  flags,
rsbac_list_compare_function_t compare,
rsbac_list_compare_function_t subcompare,
rsbac_list_get_conv_t get_conv,
rsbac_list_get_conv_t get_subconv,
void *  def_data,
void *  def_subdata,
char *  name,
kdev_t  device
[inline, static]
 

Definition at line 2316 of file gen_lists.c.

References rsbac_list_lol_info_t::data_size, FALSE, NULL, rsbac_kfree(), rsbac_kmalloc(), RSBAC_LIST_DEF_DATA, RSBAC_LIST_DEF_SUBDATA, RSBAC_LIST_MAX_FILENAME, RSBAC_LIST_NO_WRITE, RSBAC_LIST_NONAME, rsbac_list_lol_info_t::subdata_size, and TRUE.

Referenced by rsbac_list_lol_register().

static struct rsbac_list_reg_item_t* create_reg struct rsbac_list_info_t info_p,
u_int  flags,
rsbac_list_compare_function_t compare,
rsbac_list_get_conv_t get_conv,
void *  def_data,
char *  name,
kdev_t  device
[inline, static]
 

Definition at line 2227 of file gen_lists.c.

References rsbac_list_info_t::data_size, FALSE, NULL, rsbac_kfree(), rsbac_kmalloc(), RSBAC_LIST_DEF_DATA, RSBAC_LIST_MAX_FILENAME, RSBAC_LIST_NO_WRITE, RSBAC_LIST_NONAME, and TRUE.

Referenced by rsbac_list_register().

static void do_remove_item struct rsbac_list_reg_item_t list,
struct rsbac_list_item_t item_p
[static]
 

Definition at line 2429 of file gen_lists.c.

References rsbac_list_reg_item_t::count, rsbac_list_reg_item_t::curr, rsbac_list_reg_item_t::head, rsbac_list_item_t::next, NULL, rsbac_list_item_t::prev, rsbac_kfree(), and rsbac_list_reg_item_t::tail.

Referenced by remove_item(), rsbac_check_lists(), rsbac_list_check(), and rsbac_ta_list_add_ttl().

static void do_remove_lol_item struct rsbac_list_lol_reg_item_t list,
struct rsbac_list_lol_item_t item_p
[static]
 

Definition at line 2643 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::count, rsbac_list_lol_reg_item_t::curr, rsbac_list_lol_item_t::head, rsbac_list_lol_reg_item_t::head, rsbac_list_lol_reg_item_t::name, rsbac_list_item_t::next, rsbac_list_lol_item_t::next, NULL, rsbac_list_lol_item_t::prev, rsbac_kfree(), and rsbac_list_lol_reg_item_t::tail.

Referenced by remove_lol_item(), rsbac_check_lists(), rsbac_list_lol_check(), rsbac_ta_list_lol_add_ttl(), and rsbac_ta_list_lol_subremove().

static void do_remove_lol_subitem struct rsbac_list_lol_item_t sublist,
struct rsbac_list_item_t item_p
[static]
 

Definition at line 2584 of file gen_lists.c.

References rsbac_list_lol_item_t::count, rsbac_list_lol_item_t::curr, rsbac_list_lol_item_t::head, rsbac_list_item_t::next, NULL, rsbac_list_item_t::prev, rsbac_kfree(), and rsbac_list_lol_item_t::tail.

Referenced by remove_lol_subitem(), rsbac_check_lists(), rsbac_list_lol_check(), and rsbac_ta_list_lol_subadd_ttl().

static int fill_buffer struct rsbac_list_reg_item_t list,
struct rsbac_list_write_item_t **  write_item_pp
[static]
 

Definition at line 3927 of file gen_lists.c.

References rsbac_list_reg_item_t::count, rsbac_list_info_t::data_size, rsbac_list_info_t::desc_size, rsbac_list_reg_item_t::device, FALSE, rsbac_list_reg_item_t::head, rsbac_list_reg_item_t::info, rsbac_list_reg_item_t::lock, rsbac_list_item_t::max_age, rsbac_list_reg_item_t::name, NULL, RSBAC_ENOMEM, rsbac_kfree(), rsbac_kmalloc(), RSBAC_LIST_DISK_VERSION, RSBAC_LIST_MAX_FILENAME, and rsbac_vkmalloc().

Referenced by rsbac_list_detach().

static int fill_lol_buffer struct rsbac_list_lol_reg_item_t list,
struct rsbac_list_lol_write_item_t **  write_item_pp
[static]
 

Definition at line 4167 of file gen_lists.c.

References rsbac_list_lol_item_t::count, rsbac_list_lol_reg_item_t::count, rsbac_list_lol_info_t::data_size, rsbac_list_lol_info_t::desc_size, rsbac_list_lol_reg_item_t::device, FALSE, rsbac_list_lol_reg_item_t::head, rsbac_list_lol_reg_item_t::info, rsbac_list_lol_reg_item_t::lock, rsbac_list_item_t::max_age, rsbac_list_lol_item_t::max_age, rsbac_list_lol_reg_item_t::name, rsbac_list_lol_item_t::next, NULL, RSBAC_ENOMEM, rsbac_kfree(), rsbac_kmalloc(), RSBAC_LIST_DISK_VERSION, RSBAC_LIST_MAX_FILENAME, rsbac_vkmalloc(), rsbac_list_lol_info_t::subdata_size, and rsbac_list_lol_info_t::subdesc_size.

Referenced by rsbac_list_lol_detach().

static struct rsbac_list_item_t* insert_item_compare struct rsbac_list_reg_item_t list,
void *  desc,
struct rsbac_list_item_t new_item_p
[static]
 

Definition at line 1134 of file gen_lists.c.

References rsbac_list_reg_item_t::compare, rsbac_list_reg_item_t::count, rsbac_list_reg_item_t::curr, rsbac_list_reg_item_t::head, rsbac_list_item_t::next, NULL, rsbac_list_item_t::prev, and rsbac_list_reg_item_t::tail.

Referenced by add_item().

static struct rsbac_list_item_t* insert_item_memcmp struct rsbac_list_reg_item_t list,
void *  desc,
struct rsbac_list_item_t new_item_p
[static]
 

Definition at line 1197 of file gen_lists.c.

References rsbac_list_item_t::next, NULL, and rsbac_list_item_t::prev.

Referenced by add_item().

static struct rsbac_list_lol_item_t* insert_lol_item_compare struct rsbac_list_lol_reg_item_t list,
void *  desc,
struct rsbac_list_lol_item_t new_item_p
[static]
 

Definition at line 1837 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::compare, rsbac_list_lol_reg_item_t::count, rsbac_list_lol_reg_item_t::curr, rsbac_list_lol_reg_item_t::head, rsbac_list_lol_item_t::next, NULL, rsbac_list_lol_item_t::prev, and rsbac_list_lol_reg_item_t::tail.

Referenced by add_lol_item().

static struct rsbac_list_lol_item_t* insert_lol_item_memcmp struct rsbac_list_lol_reg_item_t list,
void *  desc,
struct rsbac_list_lol_item_t new_item_p
[static]
 

Definition at line 1900 of file gen_lists.c.

References rsbac_list_lol_item_t::count, rsbac_list_lol_item_t::curr, rsbac_list_lol_item_t::head, rsbac_list_lol_item_t::next, NULL, rsbac_list_item_t::prev, rsbac_list_lol_item_t::prev, and rsbac_list_lol_item_t::tail.

Referenced by add_lol_item().

static struct rsbac_list_item_t* insert_lol_subitem_compare struct rsbac_list_lol_reg_item_t list,
struct rsbac_list_lol_item_t sublist,
void *  subdesc,
struct rsbac_list_item_t new_item_p
[static]
 

Definition at line 1656 of file gen_lists.c.

References rsbac_list_lol_item_t::count, rsbac_list_lol_item_t::curr, rsbac_list_lol_item_t::head, rsbac_list_item_t::next, NULL, rsbac_list_item_t::prev, rsbac_list_lol_reg_item_t::subcompare, and rsbac_list_lol_item_t::tail.

Referenced by add_lol_subitem().

static struct rsbac_list_item_t* insert_lol_subitem_memcmp struct rsbac_list_lol_reg_item_t list,
struct rsbac_list_lol_item_t sublist,
void *  subdesc,
struct rsbac_list_item_t new_item_p
[static]
 

Definition at line 1720 of file gen_lists.c.

References rsbac_list_lol_item_t::count, rsbac_list_lol_item_t::curr, rsbac_list_lol_item_t::head, rsbac_list_item_t::next, NULL, rsbac_list_item_t::prev, and rsbac_list_lol_item_t::tail.

Referenced by add_lol_subitem().

static struct rsbac_list_item_t* lookup_item struct rsbac_list_reg_item_t list,
void *  desc
[static]
 

Definition at line 164 of file gen_lists.c.

References rsbac_list_reg_item_t::compare, lookup_item_compare(), lookup_item_memcmp(), and NULL.

static struct rsbac_list_item_t* lookup_item_compare struct rsbac_list_reg_item_t list,
void *  desc
[static]
 

Definition at line 54 of file gen_lists.c.

References rsbac_list_reg_item_t::compare, rsbac_list_reg_item_t::curr, rsbac_list_reg_item_t::head, rsbac_list_item_t::next, NULL, and rsbac_list_item_t::prev.

Referenced by lookup_item().

static struct rsbac_list_item_t* lookup_item_data struct rsbac_list_reg_item_t list,
void *  data,
rsbac_list_data_compare_function_t  compare
[static]
 

Definition at line 355 of file gen_lists.c.

References lookup_item_data_compare(), lookup_item_data_memcmp(), and NULL.

Referenced by rsbac_ta_list_get_desc().

static struct rsbac_list_item_t* lookup_item_data_compare struct rsbac_list_reg_item_t list,
void *  data,
rsbac_list_data_compare_function_t  compare
[static]
 

Definition at line 308 of file gen_lists.c.

References rsbac_list_info_t::desc_size, rsbac_list_reg_item_t::head, rsbac_list_reg_item_t::info, rsbac_list_item_t::max_age, and NULL.

Referenced by lookup_item_data().

static struct rsbac_list_item_t* lookup_item_data_memcmp struct rsbac_list_reg_item_t list,
void *  data
[static]
 

Definition at line 331 of file gen_lists.c.

References rsbac_list_item_t::max_age, rsbac_list_item_t::next, and NULL.

Referenced by lookup_item_data().

static struct rsbac_list_item_t* lookup_item_memcmp struct rsbac_list_reg_item_t list,
void *  desc
[static]
 

Definition at line 104 of file gen_lists.c.

References rsbac_list_item_t::next, NULL, and rsbac_list_item_t::prev.

Referenced by lookup_item().

static struct rsbac_list_lol_item_t* lookup_lol_item struct rsbac_list_lol_reg_item_t list,
void *  desc
[static]
 

Definition at line 699 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::compare, lookup_lol_item_compare(), lookup_lol_item_memcmp(), and NULL.

Referenced by remove_lol_item(), rsbac_ta_list_lol_add_ttl(), rsbac_ta_list_lol_exist(), rsbac_ta_list_lol_get_all_subdata(), rsbac_ta_list_lol_get_all_subdesc_ttl(), rsbac_ta_list_lol_get_all_subitems_ttl(), rsbac_ta_list_lol_get_data_ttl(), rsbac_ta_list_lol_get_next_desc(), rsbac_ta_list_lol_get_subdata_ttl(), rsbac_ta_list_lol_remove(), rsbac_ta_list_lol_subadd_ttl(), rsbac_ta_list_lol_subcount(), rsbac_ta_list_lol_subexist(), rsbac_ta_list_lol_subexist_compare(), rsbac_ta_list_lol_subremove(), and rsbac_ta_list_lol_subremove_all().

static struct rsbac_list_lol_item_t* lookup_lol_item_compare struct rsbac_list_lol_reg_item_t list,
void *  desc
[static]
 

Definition at line 589 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::compare, rsbac_list_lol_reg_item_t::curr, rsbac_list_lol_reg_item_t::head, rsbac_list_lol_item_t::next, NULL, and rsbac_list_lol_item_t::prev.

Referenced by lookup_lol_item().

static struct rsbac_list_lol_item_t* lookup_lol_item_data struct rsbac_list_lol_reg_item_t list,
void *  data,
rsbac_list_data_compare_function_t  compare
[static]
 

Definition at line 890 of file gen_lists.c.

References lookup_lol_item_data_compare(), lookup_lol_item_data_memcmp(), and NULL.

Referenced by rsbac_ta_list_lol_get_desc().

static struct rsbac_list_lol_item_t* lookup_lol_item_data_compare struct rsbac_list_lol_reg_item_t list,
void *  data,
rsbac_list_data_compare_function_t  compare
[static]
 

Definition at line 843 of file gen_lists.c.

References rsbac_list_lol_info_t::desc_size, rsbac_list_lol_reg_item_t::head, rsbac_list_lol_reg_item_t::info, rsbac_list_lol_item_t::max_age, and NULL.

Referenced by lookup_lol_item_data().

static struct rsbac_list_lol_item_t* lookup_lol_item_data_memcmp struct rsbac_list_lol_reg_item_t list,
void *  data
[static]
 

Definition at line 866 of file gen_lists.c.

References rsbac_list_lol_item_t::head, rsbac_list_lol_item_t::max_age, rsbac_list_lol_item_t::next, and NULL.

Referenced by lookup_lol_item_data().

static struct rsbac_list_lol_item_t* lookup_lol_item_memcmp struct rsbac_list_lol_reg_item_t list,
void *  desc
[static]
 

Definition at line 639 of file gen_lists.c.

References rsbac_list_lol_item_t::curr, rsbac_list_lol_item_t::head, rsbac_list_lol_item_t::next, NULL, and rsbac_list_lol_item_t::prev.

Referenced by lookup_lol_item().

static struct rsbac_list_lol_reg_item_t* lookup_lol_reg struct rsbac_list_lol_reg_item_t handle  )  [static]
 

Definition at line 1053 of file gen_lists.c.

References rsbac_list_lol_reg_head_t::curr, rsbac_list_lol_reg_head_t::head, rsbac_list_lol_reg_item_t::next, and NULL.

Referenced by remove_lol_reg(), rsbac_list_lol_destroy(), rsbac_list_lol_detach(), and rsbac_list_lol_no_write().

static struct rsbac_list_lol_reg_item_t* lookup_lol_reg_name char *  name,
kdev_t  device
[static]
 

Definition at line 1087 of file gen_lists.c.

References rsbac_list_lol_reg_head_t::curr, rsbac_list_lol_reg_item_t::device, rsbac_list_lol_reg_head_t::head, rsbac_list_lol_reg_item_t::name, rsbac_list_lol_reg_item_t::next, NULL, and RSBAC_LIST_MAX_FILENAME.

Referenced by rsbac_list_lol_register(), and rsbac_list_register().

static struct rsbac_list_item_t* lookup_lol_subitem struct rsbac_list_lol_reg_item_t list,
struct rsbac_list_lol_item_t sublist,
void *  subdesc
[static]
 

Definition at line 551 of file gen_lists.c.

References lookup_lol_subitem_compare(), lookup_lol_subitem_memcmp(), NULL, and rsbac_list_lol_reg_item_t::subcompare.

Referenced by remove_lol_subitem(), rsbac_ta_list_lol_get_subdata_ttl(), rsbac_ta_list_lol_subadd_ttl(), rsbac_ta_list_lol_subexist(), rsbac_ta_list_lol_subremove(), and rsbac_ta_list_lol_subremove_from_all().

static struct rsbac_list_item_t* lookup_lol_subitem_compare struct rsbac_list_lol_reg_item_t list,
struct rsbac_list_lol_item_t sublist,
void *  subdesc,
rsbac_list_compare_function_t  compare
[static]
 

Definition at line 438 of file gen_lists.c.

References compare(), rsbac_list_lol_item_t::curr, rsbac_list_lol_item_t::head, rsbac_list_item_t::next, NULL, and rsbac_list_item_t::prev.

Referenced by lookup_lol_subitem().

static struct rsbac_list_item_t* lookup_lol_subitem_memcmp struct rsbac_list_lol_reg_item_t list,
struct rsbac_list_lol_item_t sublist,
void *  subdesc
[static]
 

Definition at line 490 of file gen_lists.c.

References rsbac_list_lol_item_t::curr, rsbac_list_lol_item_t::head, rsbac_list_lol_reg_item_t::info, rsbac_list_item_t::next, NULL, rsbac_list_item_t::prev, and rsbac_list_lol_info_t::subdesc_size.

Referenced by lookup_lol_subitem().

static struct rsbac_list_item_t* lookup_lol_subitem_user_compare struct rsbac_list_lol_reg_item_t list,
struct rsbac_list_lol_item_t sublist,
void *  subdesc,
rsbac_list_compare_function_t  compare
[static]
 

Definition at line 565 of file gen_lists.c.

References compare(), rsbac_list_lol_item_t::head, rsbac_list_item_t::next, and NULL.

Referenced by rsbac_ta_list_lol_subexist_compare().

static struct rsbac_list_reg_item_t* lookup_reg struct rsbac_list_reg_item_t handle  )  [static]
 

Definition at line 973 of file gen_lists.c.

References rsbac_list_reg_head_t::curr, rsbac_list_reg_head_t::head, rsbac_list_reg_item_t::next, and NULL.

Referenced by remove_reg(), rsbac_list_destroy(), rsbac_list_detach(), and rsbac_list_no_write().

static struct rsbac_list_reg_item_t* lookup_reg_name char *  name,
kdev_t  device
[static]
 

Definition at line 1007 of file gen_lists.c.

References rsbac_list_reg_head_t::curr, rsbac_list_reg_item_t::device, rsbac_list_reg_head_t::head, rsbac_list_reg_item_t::name, rsbac_list_reg_item_t::next, NULL, and RSBAC_LIST_MAX_FILENAME.

Referenced by rsbac_list_lol_register(), and rsbac_list_register().

static int read_list struct rsbac_list_reg_item_t list  )  [static]
 

Definition at line 3069 of file gen_lists.c.

References add_item(), rsbac_list_info_t::data_size, rsbac_list_info_t::desc_size, rsbac_list_reg_item_t::device, FALSE, rsbac_list_reg_item_t::flags, rsbac_list_reg_item_t::get_conv, rsbac_list_reg_item_t::info, rsbac_list_info_t::key, rsbac_list_reg_item_t::lock, rsbac_list_reg_item_t::name, NULL, RSBAC_EINVALIDVALUE, RSBAC_EINVALIDVERSION, RSBAC_ENOMEM, RSBAC_EREADFAILED, rsbac_kfree(), rsbac_kmalloc(), RSBAC_LIST_DISK_OLD_VERSION, RSBAC_LIST_DISK_VERSION, RSBAC_LIST_IGNORE_OLD, RSBAC_LIST_IGNORE_UNSUPP_VERSION, rsbac_read_close(), rsbac_read_open(), TRUE, and rsbac_list_info_t::version.

Referenced by rsbac_list_register().

static int read_lol_list struct rsbac_list_lol_reg_item_t list  )  [static]
 

Definition at line 3432 of file gen_lists.c.

References add_lol_item(), add_lol_subitem(), rsbac_list_lol_info_t::data_size, rsbac_list_lol_info_t::desc_size, rsbac_list_lol_reg_item_t::device, FALSE, rsbac_list_lol_reg_item_t::flags, rsbac_list_lol_reg_item_t::get_conv, rsbac_list_lol_reg_item_t::get_subconv, rsbac_list_lol_reg_item_t::info, rsbac_list_lol_info_t::key, rsbac_list_lol_reg_item_t::lock, rsbac_list_lol_reg_item_t::name, NULL, RSBAC_EINVALIDVALUE, RSBAC_EINVALIDVERSION, RSBAC_ENOMEM, RSBAC_EREADFAILED, rsbac_kfree(), rsbac_kmalloc(), RSBAC_LIST_DISK_OLD_VERSION, RSBAC_LIST_DISK_VERSION, RSBAC_LIST_IGNORE_OLD, RSBAC_LIST_IGNORE_UNSUPP_VERSION, rsbac_read_close(), rsbac_read_open(), rsbac_list_lol_info_t::subdata_size, rsbac_list_lol_info_t::subdesc_size, TRUE, and rsbac_list_lol_info_t::version.

Referenced by rsbac_list_lol_register().

static void remove_all_items struct rsbac_list_reg_item_t list  )  [static]
 

Definition at line 2485 of file gen_lists.c.

References rsbac_list_reg_item_t::count, rsbac_list_reg_item_t::curr, rsbac_list_reg_item_t::head, rsbac_list_item_t::next, NULL, rsbac_kfree(), and rsbac_list_reg_item_t::tail.

Referenced by clear_reg(), and rsbac_ta_list_remove_all().

static void remove_all_lol_items struct rsbac_list_lol_reg_item_t list  )  [static]
 

Definition at line 2883 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::count, rsbac_list_lol_reg_item_t::curr, rsbac_list_lol_item_t::head, rsbac_list_lol_reg_item_t::head, rsbac_list_lol_item_t::next, rsbac_list_item_t::next, NULL, rsbac_kfree(), and rsbac_list_lol_reg_item_t::tail.

Referenced by clear_lol_reg(), and rsbac_ta_list_lol_remove_all().

static void remove_all_lol_subitems struct rsbac_list_lol_item_t sublist  )  [static]
 

Definition at line 2863 of file gen_lists.c.

References rsbac_list_lol_item_t::count, rsbac_list_lol_item_t::curr, rsbac_list_lol_item_t::head, rsbac_list_item_t::next, NULL, rsbac_kfree(), and rsbac_list_lol_item_t::tail.

Referenced by rsbac_ta_list_lol_subremove_all().

static void remove_item struct rsbac_list_reg_item_t list,
void *  desc
[static]
 

Definition at line 2470 of file gen_lists.c.

References do_remove_item(), and lookup_item().

static void remove_lol_item struct rsbac_list_lol_reg_item_t list,
void *  desc
[static]
 

Definition at line 2735 of file gen_lists.c.

References do_remove_lol_item(), and lookup_lol_item().

Referenced by rsbac_ta_list_lol_remove(), and rsbac_ta_list_lol_subadd_ttl().

static void remove_lol_reg struct rsbac_list_lol_reg_item_t handle  )  [static]
 

Definition at line 3020 of file gen_lists.c.

References clear_lol_reg(), rsbac_list_lol_reg_head_t::count, rsbac_list_lol_reg_head_t::curr, rsbac_list_lol_reg_head_t::head, lookup_lol_reg(), rsbac_list_lol_reg_item_t::next, NULL, rsbac_list_lol_reg_item_t::prev, rsbac_list_lol_reg_item_t::self, and rsbac_list_lol_reg_head_t::tail.

Referenced by rsbac_list_lol_destroy(), and rsbac_list_lol_detach().

static void remove_lol_subitem struct rsbac_list_lol_reg_item_t list,
struct rsbac_list_lol_item_t sublist,
void *  subdesc
[static]
 

Definition at line 2625 of file gen_lists.c.

References do_remove_lol_subitem(), and lookup_lol_subitem().

Referenced by rsbac_ta_list_lol_subremove(), and rsbac_ta_list_lol_subremove_from_all().

static void remove_reg struct rsbac_list_reg_item_t handle  )  [static]
 

Definition at line 2959 of file gen_lists.c.

References clear_reg(), rsbac_list_reg_head_t::count, rsbac_list_reg_head_t::curr, rsbac_list_reg_head_t::head, lookup_reg(), rsbac_list_reg_item_t::next, NULL, rsbac_list_reg_item_t::prev, rsbac_list_reg_item_t::self, and rsbac_list_reg_head_t::tail.

Referenced by rsbac_list_destroy(), and rsbac_list_detach().

int rsbac_check_lists int  correct  ) 
 

Definition at line 5403 of file gen_lists.c.

References rsbac_list_reg_item_t::count, rsbac_list_lol_item_t::count, rsbac_list_lol_reg_item_t::count, rsbac_list_info_t::data_size, rsbac_list_lol_info_t::data_size, rsbac_list_reg_item_t::def_data, rsbac_list_lol_reg_item_t::def_data, rsbac_list_lol_reg_item_t::def_subdata, rsbac_list_info_t::desc_size, rsbac_list_lol_info_t::desc_size, rsbac_list_reg_item_t::device, rsbac_list_lol_reg_item_t::device, rsbac_list_reg_item_t::dirty, rsbac_list_lol_reg_item_t::dirty, do_remove_item(), do_remove_lol_item(), do_remove_lol_subitem(), rsbac_list_reg_item_t::flags, rsbac_list_lol_reg_item_t::flags, rsbac_list_reg_head_t::head, rsbac_list_reg_item_t::head, rsbac_list_lol_reg_head_t::head, rsbac_list_lol_reg_item_t::head, rsbac_list_reg_item_t::info, rsbac_list_lol_reg_item_t::info, list_initialized, rsbac_list_reg_head_t::lock, rsbac_list_reg_item_t::lock, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, rsbac_list_item_t::max_age, rsbac_list_lol_item_t::max_age, rsbac_list_reg_item_t::name, rsbac_list_lol_reg_item_t::name, rsbac_list_item_t::next, rsbac_list_reg_item_t::next, rsbac_list_lol_item_t::next, rsbac_list_lol_reg_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 rsbac_list_add rsbac_list_handle_t  handle,
void *  desc,
void *  data
 

Definition at line 7479 of file gen_lists.c.

References RSBAC_LIST_TTL_KEEP, and rsbac_ta_list_add_ttl().

Referenced by need_overwrite_func(), register_user_lists(), request_func(), rsbac_adf_log_switch(), rsbac_do_init(), rsbac_init(), rsbac_init_acl(), rsbac_init_rc(), rsbac_kthread_notify(), set_attr_func(), syscall_func(), and write_func().

int rsbac_list_add_ttl rsbac_list_handle_t  handle,
rsbac_time_t  ttl,
void *  desc,
void *  data
 

Definition at line 7467 of file gen_lists.c.

References rsbac_ta_list_add_ttl().

Referenced by set_attr_fd().

int rsbac_list_check rsbac_list_handle_t  handle,
int  correct
 

Definition at line 5713 of file gen_lists.c.

References rsbac_list_reg_item_t::count, rsbac_list_info_t::data_size, rsbac_list_reg_item_t::def_data, rsbac_list_info_t::desc_size, rsbac_list_reg_item_t::device, rsbac_list_reg_item_t::dirty, do_remove_item(), rsbac_list_reg_item_t::head, rsbac_list_reg_item_t::info, list_initialized, rsbac_list_reg_head_t::lock, rsbac_list_reg_item_t::lock, rsbac_list_item_t::max_age, rsbac_list_reg_item_t::name, rsbac_list_item_t::next, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_list_reg_item_t::self, and TRUE.

int rsbac_list_compare_u32 void *  desc1,
void *  desc2
 

Definition at line 5002 of file gen_lists.c.

Referenced by acl_register_fd_lists(), auth_register_fd_lists(), mac_register_fd_lists(), register_fd_lists(), register_process_lists(), register_user_lists(), rsbac_init_acl(), rsbac_init_pm(), rsbac_init_rc(), and rsbac_list_init().

long rsbac_list_count rsbac_list_handle_t  handle  ) 
 

Definition at line 9902 of file gen_lists.c.

References rsbac_ta_list_count().

Referenced by register_user_lists(), rsbac_check_acl(), rsbac_init_acl(), rsbac_init_rc(), rsbac_stats(), rsbac_stats_acl(), rsbac_stats_rc(), and rsbac_stats_um().

int rsbac_list_destroy rsbac_list_handle_t handle_p,
rsbac_list_key_t  key
 

Definition at line 6537 of file gen_lists.c.

References rsbac_list_reg_item_t::flags, rsbac_list_reg_item_t::info, rsbac_list_info_t::key, list_initialized, rsbac_list_reg_head_t::lock, lookup_reg(), rsbac_list_reg_item_t::name, NULL, proc_rsbac_backup_p, remove_reg(), RSBAC_EINVALIDPOINTER, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, RSBAC_LIST_BACKUP, and RSBAC_LIST_PERSIST.

int rsbac_list_detach rsbac_list_handle_t handle_p,
rsbac_list_key_t  key
 

Definition at line 6700 of file gen_lists.c.

References rsbac_list_write_item_t::buflen, rsbac_list_write_head_t::count, rsbac_list_reg_item_t::dirty, FALSE, fill_buffer(), rsbac_list_reg_item_t::flags, rsbac_list_write_head_t::head, rsbac_list_reg_item_t::info, rsbac_list_info_t::key, list_initialized, rsbac_list_reg_head_t::lock, lookup_reg(), rsbac_list_reg_item_t::name, rsbac_list_reg_item_t::no_write, NULL, proc_rsbac_backup_p, remove_reg(), RSBAC_EINVALIDPOINTER, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, RSBAC_ENOTWRITABLE, RSBAC_LIST_BACKUP, RSBAC_LIST_PERSIST, rsbac_list_write_buffers(), rsbac_list_write_head_t::tail, rsbac_list_write_head_t::total, and TRUE.

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

int rsbac_list_exist rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 9427 of file gen_lists.c.

References rsbac_ta_list_exist().

Referenced by init_module(), rsbac_check_acl(), and rsbac_init_rc().

long rsbac_list_get_all_data rsbac_list_handle_t  handle,
void **  array_p
 

Definition at line 10408 of file gen_lists.c.

References rsbac_ta_list_get_all_data().

long rsbac_list_get_all_desc rsbac_list_handle_t  handle,
void **  array_p
 

Definition at line 10028 of file gen_lists.c.

References rsbac_ta_list_get_all_desc().

Referenced by rsbac_check().

long rsbac_list_get_all_items rsbac_list_handle_t  handle,
void **  array_p
 

Definition at line 10863 of file gen_lists.c.

References NULL, and rsbac_ta_list_get_all_items_ttl().

long rsbac_list_get_all_items_ttl rsbac_list_handle_t  handle,
void **  array_p,
rsbac_time_t **  ttl_array_p
 

Definition at line 10852 of file gen_lists.c.

References rsbac_ta_list_get_all_items_ttl().

int rsbac_list_get_data rsbac_list_handle_t  handle,
void *  desc,
void *  data
 

Definition at line 8689 of file gen_lists.c.

References NULL, and rsbac_ta_list_get_data_ttl().

Referenced by init_module(), rsbac_do_init(), rsbac_init(), and rsbac_init_debug().

int rsbac_list_get_data_ttl rsbac_list_handle_t  handle,
rsbac_time_t ttl_p,
void *  desc,
void *  data
 

Definition at line 8678 of file gen_lists.c.

References rsbac_ta_list_get_data_ttl().

int rsbac_list_get_desc rsbac_list_handle_t  handle,
void *  desc,
void *  data,
rsbac_list_data_compare_function_t  compare
 

Definition at line 9270 of file gen_lists.c.

References rsbac_ta_list_get_desc().

Referenced by rsbac_rc_get_boot_role().

int rsbac_list_get_item_size rsbac_list_handle_t  handle  ) 
 

Definition at line 10656 of file gen_lists.c.

References rsbac_list_info_t::data_size, rsbac_list_info_t::desc_size, rsbac_list_reg_item_t::info, list_initialized, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, and rsbac_list_reg_item_t::self.

int rsbac_list_get_max_desc rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 9012 of file gen_lists.c.

References rsbac_ta_list_get_max_desc().

Referenced by rsbac_init_acl().

int rsbac_list_get_next_desc rsbac_list_handle_t  handle,
void *  old_desc,
void *  next_desc
 

Definition at line 9097 of file gen_lists.c.

References rsbac_ta_list_get_next_desc().

int __init rsbac_list_init void   ) 
 

Definition at line 5012 of file gen_lists.c.

References rsbac_list_reg_head_t::count, rsbac_list_lol_reg_head_t::count, rsbac_list_reg_head_t::curr, rsbac_list_lol_reg_head_t::curr, get_error_name(), rsbac_list_reg_head_t::head, rsbac_list_lol_reg_head_t::head, list_initialized, rsbac_list_reg_head_t::lock, rsbac_list_lol_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_reg_head_t::tail, rsbac_list_lol_reg_head_t::tail, and TRUE.

Referenced by rsbac_do_init().

int rsbac_list_lol_add rsbac_list_handle_t  handle,
void *  desc,
void *  data
 

Definition at line 7860 of file gen_lists.c.

References RSBAC_LIST_TTL_KEEP, and rsbac_ta_list_lol_add_ttl().

Referenced by rsbac_init_acl(), rsbac_init_rc(), rsbac_pm_pp_intersec(), and rsbac_pm_pp_union().

int rsbac_list_lol_add_ttl rsbac_list_handle_t  handle,
rsbac_time_t  ttl,
void *  desc,
void *  data
 

Definition at line 7848 of file gen_lists.c.

References rsbac_ta_list_lol_add_ttl().

long rsbac_list_lol_all_subcount rsbac_list_handle_t  handle  ) 
 

Definition at line 9811 of file gen_lists.c.

References rsbac_ta_list_lol_all_subcount().

Referenced by rsbac_stats_acl(), rsbac_stats_auth(), rsbac_stats_mac(), rsbac_stats_pm(), and rsbac_stats_um().

int rsbac_list_lol_check rsbac_list_handle_t  handle,
int  correct
 

Definition at line 5806 of file gen_lists.c.

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

long rsbac_list_lol_count rsbac_list_handle_t  handle  ) 
 

Definition at line 9860 of file gen_lists.c.

References rsbac_ta_list_lol_count().

Referenced by rsbac_check_acl(), rsbac_init_acl(), rsbac_stats_acl(), rsbac_stats_auth(), rsbac_stats_mac(), rsbac_stats_pm(), and rsbac_stats_um().

int rsbac_list_lol_destroy rsbac_list_handle_t handle_p,
rsbac_list_key_t  key
 

Definition at line 6617 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::flags, rsbac_list_lol_reg_item_t::info, rsbac_list_lol_info_t::key, list_initialized, rsbac_list_lol_reg_head_t::lock, lookup_lol_reg(), rsbac_list_lol_reg_item_t::name, NULL, proc_rsbac_backup_p, remove_lol_reg(), RSBAC_EINVALIDPOINTER, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, RSBAC_LIST_BACKUP, and RSBAC_LIST_PERSIST.

int rsbac_list_lol_detach rsbac_list_handle_t handle_p,
rsbac_list_key_t  key
 

Definition at line 6810 of file gen_lists.c.

References rsbac_list_lol_write_item_t::buflen, rsbac_list_lol_write_head_t::count, rsbac_list_lol_reg_item_t::dirty, FALSE, fill_lol_buffer(), rsbac_list_lol_reg_item_t::flags, rsbac_list_lol_write_head_t::head, rsbac_list_lol_reg_item_t::info, rsbac_list_lol_info_t::key, list_initialized, rsbac_list_lol_reg_head_t::lock, lookup_lol_reg(), rsbac_list_lol_reg_item_t::name, rsbac_list_lol_reg_item_t::no_write, NULL, proc_rsbac_backup_p, remove_lol_reg(), RSBAC_EINVALIDPOINTER, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, RSBAC_ENOTWRITABLE, RSBAC_LIST_BACKUP, RSBAC_LIST_PERSIST, rsbac_list_write_lol_buffers(), rsbac_list_lol_write_head_t::tail, rsbac_list_lol_write_head_t::total, and TRUE.

Referenced by acl_detach_fd_lists(), auth_detach_fd_lists(), and mac_detach_fd_lists().

int rsbac_list_lol_exist rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 9675 of file gen_lists.c.

References rsbac_ta_list_lol_exist().

Referenced by rsbac_pm_pp_intersec(), rsbac_pm_pp_subset(), rsbac_pm_pp_superset(), and rsbac_pm_pp_union().

long rsbac_list_lol_get_all_data rsbac_list_handle_t  handle,
void **  array_p
 

Definition at line 10644 of file gen_lists.c.

References rsbac_ta_list_lol_get_all_data().

long rsbac_list_lol_get_all_desc rsbac_list_handle_t  handle,
void **  array_p
 

Definition at line 10274 of file gen_lists.c.

References rsbac_ta_list_lol_get_all_desc().

Referenced by rsbac_check_acl(), rsbac_check_auth(), rsbac_check_mac(), and rsbac_init_rc().

long rsbac_list_lol_get_all_items rsbac_list_handle_t  handle,
void **  array_p
 

Definition at line 11104 of file gen_lists.c.

References rsbac_ta_list_lol_get_all_items().

long rsbac_list_lol_get_all_subdata rsbac_list_handle_t  handle,
void *  desc,
void **  array_p
 

Definition at line 10512 of file gen_lists.c.

References rsbac_ta_list_lol_get_all_subdata().

long rsbac_list_lol_get_all_subdesc rsbac_list_handle_t  handle,
void *  desc,
void **  array_p
 

Definition at line 10153 of file gen_lists.c.

References NULL, and rsbac_ta_list_lol_get_all_subdesc_ttl().

Referenced by rsbac_check_acl(), rsbac_pm_pp_intersec(), rsbac_pm_pp_subset(), rsbac_pm_pp_superset(), and rsbac_pm_pp_union().

long rsbac_list_lol_get_all_subdesc_ttl rsbac_list_handle_t  handle,
void *  desc,
void **  array_p,
rsbac_time_t **  ttl_array_p
 

Definition at line 10137 of file gen_lists.c.

References rsbac_ta_list_lol_get_all_subdesc_ttl().

Referenced by copy_fp_cap_set_item(), copy_fp_tru_set_item(), copy_pp_cap_set_item_handle(), and copy_pp_tru_set_item_handle().

long rsbac_list_lol_get_all_subitems rsbac_list_handle_t  handle,
void *  desc,
void **  array_p
 

Definition at line 10983 of file gen_lists.c.

References NULL, and rsbac_ta_list_lol_get_all_subitems_ttl().

long rsbac_list_lol_get_all_subitems_ttl rsbac_list_handle_t  handle,
void *  desc,
void **  array_p,
rsbac_time_t **  ttl_array_p
 

Definition at line 10970 of file gen_lists.c.

References rsbac_ta_list_lol_get_all_subitems_ttl().

int rsbac_list_lol_get_data rsbac_list_handle_t  handle,
void *  desc,
void *  data
 

Definition at line 8940 of file gen_lists.c.

References NULL, and rsbac_ta_list_lol_get_data_ttl().

int rsbac_list_lol_get_data_ttl rsbac_list_handle_t  handle,
rsbac_time_t ttl_p,
void *  desc,
void *  data
 

Definition at line 8929 of file gen_lists.c.

References rsbac_ta_list_lol_get_data_ttl().

int rsbac_list_lol_get_desc rsbac_list_handle_t  handle,
void *  desc,
void *  data,
rsbac_list_data_compare_function_t  compare
 

Definition at line 9351 of file gen_lists.c.

References rsbac_ta_list_lol_get_desc().

int rsbac_list_lol_get_item_size rsbac_list_handle_t  handle  ) 
 

Definition at line 10692 of file gen_lists.c.

References rsbac_list_lol_info_t::data_size, rsbac_list_lol_info_t::desc_size, rsbac_list_lol_reg_item_t::info, list_initialized, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, and rsbac_list_lol_reg_item_t::self.

int rsbac_list_lol_get_next_desc rsbac_list_handle_t  handle,
void *  old_desc,
void *  next_desc
 

Definition at line 9182 of file gen_lists.c.

References rsbac_ta_list_lol_get_next_desc().

int rsbac_list_lol_get_subdata rsbac_list_handle_t  handle,
void *  desc,
void *  subdesc,
void *  subdata
 

Definition at line 8824 of file gen_lists.c.

References NULL, and rsbac_ta_list_lol_get_subdata_ttl().

Referenced by rsbac_rc_check_comp().

int rsbac_list_lol_get_subdata_ttl rsbac_list_handle_t  handle,
rsbac_time_t ttl_p,
void *  desc,
void *  subdesc,
void *  subdata
 

Definition at line 8810 of file gen_lists.c.

References rsbac_ta_list_lol_get_subdata_ttl().

int rsbac_list_lol_get_subitem_size rsbac_list_handle_t  handle  ) 
 

Definition at line 10674 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::info, list_initialized, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_list_lol_reg_item_t::self, rsbac_list_lol_info_t::subdata_size, and rsbac_list_lol_info_t::subdesc_size.

Referenced by rsbac_rc_copy_role().

int rsbac_list_lol_no_write rsbac_list_handle_t  handle,
rsbac_list_key_t  key,
rsbac_boolean_t  no_write
 

Definition at line 6974 of file gen_lists.c.

References FALSE, rsbac_list_lol_reg_item_t::info, rsbac_list_lol_info_t::key, list_initialized, rsbac_list_lol_reg_head_t::lock, lookup_lol_reg(), rsbac_list_lol_reg_item_t::name, rsbac_list_lol_reg_item_t::no_write, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, and TRUE.

int rsbac_list_lol_register rsbac_version_t  ds_version,
rsbac_list_handle_t handle_p,
struct rsbac_list_lol_info_t info_p,
u_int  flags,
rsbac_list_compare_function_t compare,
rsbac_list_compare_function_t subcompare,
rsbac_list_get_conv_t get_conv,
rsbac_list_get_conv_t get_subconv,
void *  def_data,
void *  def_subdata,
char *  name,
kdev_t  device
 

Definition at line 6288 of file gen_lists.c.

References add_lol_reg(), clear_lol_reg(), create_lol_reg(), rsbac_list_lol_info_t::data_size, rsbac_list_lol_info_t::desc_size, get_error_name(), rsbac_list_lol_info_t::key, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_reg_head_t::lock, lookup_lol_reg_name(), lookup_reg_name(), rsbac_list_lol_info_t::max_age, rsbac_list_lol_reg_item_t::name, NULL, proc_rsbac_backup_p, read_lol_list(), RSBAC_ECOULDNOTADDITEM, RSBAC_EEXISTS, RSBAC_EINVALIDPOINTER, RSBAC_EINVALIDVALUE, RSBAC_EINVALIDVERSION, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, rsbac_kfree(), rsbac_kmalloc(), RSBAC_LIST_BACKUP, RSBAC_LIST_MAX_AGE_LIMIT, RSBAC_LIST_MAX_ITEM_SIZE, RSBAC_LIST_PERSIST, RSBAC_LIST_VERSION, RSBAC_MAXNAMELEN, rsbac_root_dev, rsbac_list_lol_info_t::subdata_size, rsbac_list_lol_info_t::subdesc_size, and rsbac_list_lol_info_t::version.

Referenced by acl_register_fd_lists(), auth_register_fd_lists(), mac_register_fd_lists(), rsbac_init_acl(), rsbac_init_auth(), rsbac_init_mac(), rsbac_init_pm(), rsbac_init_rc(), and rsbac_init_um().

int rsbac_list_lol_remove rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 8480 of file gen_lists.c.

References rsbac_ta_list_lol_remove().

Referenced by copy_fp_cap_set_item(), copy_fp_tru_set_item(), copy_pp_cap_set_item_handle(), copy_pp_tru_set_item_handle(), rsbac_check_acl(), rsbac_check_auth(), and rsbac_check_mac().

int rsbac_list_lol_remove_all rsbac_list_handle_t  handle  ) 
 

Definition at line 8575 of file gen_lists.c.

References rsbac_ta_list_lol_remove_all().

int rsbac_list_lol_subadd rsbac_list_handle_t  handle,
void *  desc,
void *  subdesc,
void *  subdata
 

Definition at line 7699 of file gen_lists.c.

References RSBAC_LIST_TTL_KEEP, and rsbac_ta_list_lol_subadd_ttl().

Referenced by rsbac_auth_p_capset_member(), rsbac_init_acl(), rsbac_init_rc(), rsbac_pm_pp_intersec(), and rsbac_pm_pp_union().

int rsbac_list_lol_subadd_ttl rsbac_list_handle_t  handle,
rsbac_time_t  ttl,
void *  desc,
void *  subdesc,
void *  subdata
 

Definition at line 7686 of file gen_lists.c.

References rsbac_ta_list_lol_subadd_ttl().

Referenced by copy_fp_cap_set_item(), copy_fp_tru_set_item(), copy_pp_cap_set_item_handle(), and copy_pp_tru_set_item_handle().

long rsbac_list_lol_subcount rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 9746 of file gen_lists.c.

References rsbac_ta_list_lol_subcount().

Referenced by rsbac_pm_pp_only().

int rsbac_list_lol_subexist rsbac_list_handle_t  handle,
void *  desc,
void *  subdesc
 

Definition at line 9511 of file gen_lists.c.

References rsbac_ta_list_lol_subexist().

Referenced by rsbac_init_rc(), rsbac_mac_p_truset_member(), rsbac_pm_pp_intersec(), rsbac_pm_pp_only(), rsbac_pm_pp_subset(), rsbac_pm_pp_superset(), rsbac_rc_check_comp(), and rsbac_ta_list_lol_subexist_compare().

int rsbac_list_lol_subexist_compare rsbac_list_handle_t  handle,
void *  desc,
void *  subdesc,
rsbac_list_compare_function_t  compare
 

Definition at line 9599 of file gen_lists.c.

References rsbac_ta_list_lol_subexist_compare().

Referenced by rsbac_auth_p_capset_member().

int rsbac_list_lol_subremove rsbac_list_handle_t  handle,
void *  desc,
void *  subdesc
 

Definition at line 8184 of file gen_lists.c.

References rsbac_ta_list_lol_subremove().

Referenced by rsbac_check_acl(), and rsbac_pm_pp_intersec().

int rsbac_list_lol_subremove_all rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 8393 of file gen_lists.c.

References rsbac_ta_list_lol_subremove_all().

int rsbac_list_lol_subremove_from_all rsbac_list_handle_t  handle,
void *  subdesc
 

Definition at line 8282 of file gen_lists.c.

References rsbac_ta_list_lol_subremove_from_all().

int rsbac_list_mount kdev_t  kdev  ) 
 

Definition at line 5104 of file gen_lists.c.

Referenced by rsbac_mount().

int rsbac_list_no_write rsbac_list_handle_t  handle,
rsbac_list_key_t  key,
rsbac_boolean_t  no_write
 

Definition at line 6922 of file gen_lists.c.

References FALSE, rsbac_list_reg_item_t::info, rsbac_list_info_t::key, list_initialized, rsbac_list_reg_head_t::lock, lookup_reg(), rsbac_list_reg_item_t::name, rsbac_list_reg_item_t::no_write, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, and TRUE.

int rsbac_list_register rsbac_version_t  ds_version,
rsbac_list_handle_t handle_p,
struct rsbac_list_info_t info_p,
u_int  flags,
rsbac_list_compare_function_t compare,
rsbac_list_get_conv_t get_conv,
void *  def_data,
char *  name,
kdev_t  device
 

Definition at line 5996 of file gen_lists.c.

References add_reg(), clear_reg(), create_reg(), rsbac_list_info_t::data_size, rsbac_list_info_t::desc_size, get_error_name(), rsbac_list_info_t::key, list_initialized, rsbac_list_reg_head_t::lock, rsbac_list_lol_reg_head_t::lock, lookup_lol_reg_name(), lookup_reg_name(), rsbac_list_info_t::max_age, rsbac_list_reg_item_t::name, NULL, proc_rsbac_backup_p, read_list(), RSBAC_ECOULDNOTADDITEM, RSBAC_EEXISTS, RSBAC_EINVALIDPOINTER, RSBAC_EINVALIDVALUE, RSBAC_EINVALIDVERSION, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, rsbac_kfree(), rsbac_kmalloc(), RSBAC_LIST_BACKUP, RSBAC_LIST_MAX_AGE_LIMIT, RSBAC_LIST_MAX_ITEM_SIZE, RSBAC_LIST_PERSIST, RSBAC_LIST_VERSION, RSBAC_MAXNAMELEN, rsbac_root_dev, and rsbac_list_info_t::version.

Referenced by init_module(), register_dev_lists(), register_fd_lists(), register_ipc_lists(), register_process_lists(), register_user_lists(), rsbac_init_acl(), rsbac_init_debug(), rsbac_init_pm(), rsbac_init_rc(), rsbac_init_um(), and rsbac_list_init().

int rsbac_list_remove rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 7951 of file gen_lists.c.

References rsbac_ta_list_remove().

Referenced by rsbac_check().

int rsbac_list_remove_all rsbac_list_handle_t  handle  ) 
 

Definition at line 8046 of file gen_lists.c.

References rsbac_ta_list_remove_all().

int rsbac_list_umount kdev_t  kdev  ) 
 

Definition at line 5109 of file gen_lists.c.

Referenced by rsbac_umount().

rsbac_version_t rsbac_list_version void   ) 
 

Definition at line 5964 of file gen_lists.c.

References RSBAC_LIST_VERSION.

static int rsbac_list_write_buffers struct rsbac_list_write_head_t  write_head,
rsbac_boolean_t  need_lock
[static]
 

Definition at line 4019 of file gen_lists.c.

References rsbac_list_write_item_t::buf, rsbac_list_write_item_t::buflen, rsbac_list_write_item_t::device, rsbac_list_reg_item_t::dirty, rsbac_list_write_head_t::head, rsbac_list_write_item_t::list, rsbac_list_write_item_t::name, rsbac_list_write_item_t::next, RSBAC_ENOMEM, RSBAC_ENOTWRITABLE, rsbac_kfree(), rsbac_kmalloc(), rsbac_min, rsbac_vkfree(), rsbac_write_close(), rsbac_write_open(), rsbac_list_reg_item_t::self, TRUE, and rsbac_list_write_item_t::vmalloc_used.

Referenced by rsbac_list_detach().

static int rsbac_list_write_lol_buffers struct rsbac_list_lol_write_head_t  write_head,
rsbac_boolean_t  need_lock
[static]
 

Definition at line 4285 of file gen_lists.c.

References rsbac_list_lol_write_item_t::buf, rsbac_list_lol_write_item_t::buflen, rsbac_list_lol_write_item_t::device, rsbac_list_lol_reg_item_t::dirty, rsbac_list_lol_write_head_t::head, rsbac_list_lol_write_item_t::list, rsbac_list_lol_write_item_t::name, rsbac_list_lol_write_item_t::next, RSBAC_ENOMEM, RSBAC_ENOTWRITABLE, rsbac_kfree(), rsbac_kmalloc(), rsbac_min, rsbac_vkfree(), rsbac_write_close(), rsbac_write_open(), rsbac_list_lol_reg_item_t::self, TRUE, and rsbac_list_lol_write_item_t::vmalloc_used.

Referenced by rsbac_list_lol_detach().

int rsbac_ta_list_add_ttl rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
rsbac_time_t  ttl,
void *  desc,
void *  data
 

Definition at line 7333 of file gen_lists.c.

References add_item(), rsbac_list_info_t::data_size, rsbac_list_reg_item_t::def_data, rsbac_list_info_t::desc_size, rsbac_list_reg_item_t::dirty, do_remove_item(), rsbac_list_reg_item_t::info, list_initialized, rsbac_list_reg_head_t::lock, rsbac_list_reg_item_t::lock, lookup_item(), rsbac_list_item_t::max_age, RSBAC_EBUSY, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, RSBAC_LIST_MAX_AGE_LIMIT, RSBAC_LIST_TTL_KEEP, rsbac_ta_list_exist(), rsbac_list_reg_item_t::self, and TRUE.

Referenced by rsbac_acl_add_group(), rsbac_acl_add_to_acl_entry(), rsbac_acl_change_group(), rsbac_acl_remove_from_acl_entry(), rsbac_acl_set_acl_entry(), rsbac_list_add(), rsbac_list_add_ttl(), rsbac_pm_add_target(), rsbac_pm_set_data(), rsbac_rc_copy_role(), rsbac_rc_copy_type(), rsbac_rc_set_item(), rsbac_um_add_group(), rsbac_um_mod_group(), rsbac_um_set_group_pass(), set_attr_dev(), set_attr_fd(), set_attr_ipc(), set_attr_process(), and set_attr_user().

long rsbac_ta_list_count rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle
 

Definition at line 9868 of file gen_lists.c.

References rsbac_list_reg_item_t::count, list_initialized, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), and rsbac_list_reg_item_t::self.

Referenced by rsbac_list_count(), rsbac_rc_get_list(), and rsbac_um_get_group_list().

int rsbac_ta_list_exist rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 9364 of file gen_lists.c.

References FALSE, list_initialized, rsbac_list_reg_head_t::lock, rsbac_list_reg_item_t::lock, lookup_item(), rsbac_list_item_t::max_age, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, rsbac_ta_list_exist(), rsbac_list_reg_item_t::self, and TRUE.

Referenced by rsbac_acl_add_group(), rsbac_acl_add_group_member(), rsbac_acl_change_group(), rsbac_acl_get_group_members(), rsbac_acl_group_exist(), rsbac_acl_remove_group_member(), rsbac_list_exist(), rsbac_pm_exists(), rsbac_rc_role_exists(), rsbac_rc_set_item(), rsbac_rc_type_exists(), rsbac_ta_list_add_ttl(), rsbac_ta_list_count(), rsbac_ta_list_exist(), rsbac_ta_list_get_all_data(), rsbac_ta_list_get_all_desc(), rsbac_ta_list_get_all_items_ttl(), rsbac_ta_list_get_data_ttl(), rsbac_ta_list_get_desc(), rsbac_ta_list_get_max_desc(), rsbac_ta_list_get_next_desc(), rsbac_ta_list_lol_add_ttl(), rsbac_ta_list_lol_all_subcount(), rsbac_ta_list_lol_count(), rsbac_ta_list_lol_exist(), rsbac_ta_list_lol_get_all_data(), rsbac_ta_list_lol_get_all_desc(), rsbac_ta_list_lol_get_all_items(), rsbac_ta_list_lol_get_all_subdata(), rsbac_ta_list_lol_get_all_subdesc_ttl(), rsbac_ta_list_lol_get_all_subitems_ttl(), rsbac_ta_list_lol_get_data_ttl(), rsbac_ta_list_lol_get_desc(), rsbac_ta_list_lol_get_next_desc(), rsbac_ta_list_lol_get_subdata_ttl(), rsbac_ta_list_lol_remove(), rsbac_ta_list_lol_remove_all(), rsbac_ta_list_lol_subadd_ttl(), rsbac_ta_list_lol_subcount(), rsbac_ta_list_lol_subexist(), rsbac_ta_list_lol_subexist_compare(), rsbac_ta_list_lol_subremove(), rsbac_ta_list_lol_subremove_all(), rsbac_ta_list_lol_subremove_from_all(), rsbac_ta_list_remove(), rsbac_ta_list_remove_all(), rsbac_um_add_gm(), rsbac_um_add_group(), rsbac_um_add_user(), rsbac_um_get_gm_user_list(), rsbac_um_get_group_item(), rsbac_um_group_exists(), rsbac_um_mod_group(), rsbac_um_mod_user(), and rsbac_um_remove_group().

long rsbac_ta_list_get_all_data rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void **  array_p
 

Definition at line 10287 of file gen_lists.c.

References rsbac_list_reg_item_t::count, rsbac_list_info_t::data_size, rsbac_list_info_t::desc_size, rsbac_list_reg_item_t::head, rsbac_list_reg_item_t::info, list_initialized, rsbac_list_reg_head_t::lock, rsbac_list_reg_item_t::lock, rsbac_list_item_t::max_age, rsbac_list_item_t::next, NULL, RSBAC_EINVALIDREQUEST, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), rsbac_vmalloc, and rsbac_list_reg_item_t::self.

Referenced by rsbac_acl_list_groups(), rsbac_acl_remove_user(), and rsbac_list_get_all_data().

long rsbac_ta_list_get_all_desc rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void **  array_p
 

Definition at line 9916 of file gen_lists.c.

References rsbac_list_reg_item_t::count, rsbac_list_info_t::desc_size, rsbac_list_reg_item_t::head, rsbac_list_reg_item_t::info, list_initialized, rsbac_list_reg_head_t::lock, rsbac_list_reg_item_t::lock, rsbac_list_item_t::max_age, rsbac_list_item_t::next, NULL, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), rsbac_vmalloc, and rsbac_list_reg_item_t::self.

Referenced by rsbac_list_get_all_desc(), rsbac_rc_copy_type(), rsbac_rc_get_list(), and rsbac_um_get_group_list().

long rsbac_ta_list_get_all_items_ttl rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void **  array_p,
rsbac_time_t **  ttl_array_p
 

Definition at line 10716 of file gen_lists.c.

References rsbac_list_reg_item_t::count, rsbac_list_info_t::data_size, rsbac_list_info_t::desc_size, rsbac_list_reg_item_t::head, rsbac_list_reg_item_t::info, list_initialized, rsbac_list_reg_head_t::lock, rsbac_list_reg_item_t::lock, rsbac_list_item_t::max_age, rsbac_list_item_t::next, NULL, RSBAC_EINVALIDPOINTER, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), rsbac_vmalloc, and rsbac_list_reg_item_t::self.

Referenced by rsbac_acl_get_tlist(), rsbac_list_get_all_items(), and rsbac_list_get_all_items_ttl().

int rsbac_ta_list_get_data_ttl rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
rsbac_time_t ttl_p,
void *  desc,
void *  data
 

Definition at line 8586 of file gen_lists.c.

References rsbac_list_info_t::data_size, rsbac_list_reg_item_t::def_data, rsbac_list_info_t::desc_size, rsbac_list_reg_item_t::info, list_initialized, rsbac_list_reg_head_t::lock, rsbac_list_reg_item_t::lock, lookup_item(), rsbac_list_item_t::max_age, RSBAC_EINVALIDREQUEST, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), and rsbac_list_reg_item_t::self.

Referenced by get_attr_dev(), get_attr_fd(), get_attr_ipc(), get_attr_process(), get_attr_user(), rsbac_acl_add_to_acl_entry(), rsbac_acl_get_group_entry(), rsbac_acl_get_rights(), rsbac_acl_get_single_right(), rsbac_acl_remove_from_acl_entry(), rsbac_list_get_data(), rsbac_list_get_data_ttl(), rsbac_pm_exists(), rsbac_pm_get_all_data(), rsbac_pm_get_data(), rsbac_pm_set_data(), rsbac_rc_copy_role(), rsbac_rc_copy_type(), rsbac_rc_get_item(), rsbac_rc_set_item(), rsbac_um_get_group_item(), rsbac_um_mod_group(), rsbac_um_set_group_pass(), set_attr_dev(), set_attr_fd(), set_attr_ipc(), set_attr_process(), and set_attr_user().

int rsbac_ta_list_get_desc rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  desc,
void *  data,
rsbac_list_data_compare_function_t  compare
 

Definition at line 9201 of file gen_lists.c.

References rsbac_list_info_t::data_size, rsbac_list_info_t::desc_size, rsbac_list_reg_item_t::info, list_initialized, rsbac_list_reg_head_t::lock, rsbac_list_reg_item_t::lock, lookup_item_data(), RSBAC_EINVALIDREQUEST, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), and rsbac_list_reg_item_t::self.

Referenced by rsbac_list_get_desc(), and rsbac_um_get_gid().

int rsbac_ta_list_get_max_desc rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 8950 of file gen_lists.c.

References rsbac_list_info_t::desc_size, rsbac_list_reg_item_t::info, list_initialized, rsbac_list_reg_head_t::lock, rsbac_list_reg_item_t::lock, rsbac_list_item_t::max_age, rsbac_list_item_t::prev, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), rsbac_list_reg_item_t::self, and rsbac_list_reg_item_t::tail.

Referenced by rsbac_list_get_max_desc().

int rsbac_ta_list_get_next_desc rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  old_desc,
void *  next_desc
 

Definition at line 9020 of file gen_lists.c.

References rsbac_list_reg_item_t::curr, rsbac_list_info_t::desc_size, rsbac_list_reg_item_t::head, rsbac_list_reg_item_t::info, list_initialized, rsbac_list_reg_head_t::lock, rsbac_list_reg_item_t::lock, lookup_item(), rsbac_list_item_t::max_age, rsbac_list_item_t::next, RSBAC_EINVALIDPOINTER, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), and rsbac_list_reg_item_t::self.

Referenced by rsbac_list_get_next_desc().

int rsbac_ta_list_lol_add_ttl rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
rsbac_time_t  ttl,
void *  desc,
void *  data
 

Definition at line 7713 of file gen_lists.c.

References add_lol_item(), rsbac_list_lol_item_t::count, rsbac_list_lol_info_t::data_size, rsbac_list_lol_reg_item_t::def_data, rsbac_list_lol_info_t::desc_size, rsbac_list_lol_reg_item_t::dirty, do_remove_lol_item(), rsbac_list_lol_reg_item_t::info, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, lookup_lol_item(), rsbac_list_lol_item_t::max_age, RSBAC_EBUSY, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, RSBAC_LIST_MAX_AGE_LIMIT, RSBAC_LIST_TTL_KEEP, rsbac_ta_list_exist(), rsbac_list_lol_reg_item_t::self, and TRUE.

Referenced by rsbac_acl_add_group_member(), rsbac_acl_add_to_acl_entry(), rsbac_acl_set_acl_entry(), rsbac_acl_set_mask(), rsbac_list_lol_add(), rsbac_list_lol_add_ttl(), rsbac_pm_create_set(), rsbac_um_add_user(), rsbac_um_mod_user(), and rsbac_um_set_pass().

long rsbac_ta_list_lol_all_subcount rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle
 

Definition at line 9756 of file gen_lists.c.

References rsbac_list_lol_item_t::count, rsbac_list_lol_reg_item_t::head, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, rsbac_list_lol_item_t::next, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), and rsbac_list_lol_reg_item_t::self.

Referenced by rsbac_list_lol_all_subcount().

long rsbac_ta_list_lol_count rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle
 

Definition at line 9819 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::count, list_initialized, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), and rsbac_list_lol_reg_item_t::self.

Referenced by rsbac_list_lol_count(), rsbac_um_get_gm_user_list(), and rsbac_um_get_user_list().

int rsbac_ta_list_lol_exist rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 9612 of file gen_lists.c.

References FALSE, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, lookup_lol_item(), rsbac_list_lol_item_t::max_age, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, rsbac_ta_list_exist(), rsbac_list_lol_reg_item_t::self, and TRUE.

Referenced by rsbac_acl_add_group_member(), rsbac_acl_add_to_acl_entry(), rsbac_acl_set_acl_entry(), rsbac_list_lol_exist(), rsbac_pm_create_set(), rsbac_pm_exists(), rsbac_pm_remove_target(), rsbac_pm_set_exist(), rsbac_um_add_user(), rsbac_um_get_user_item(), rsbac_um_mod_user(), rsbac_um_remove_user(), and rsbac_um_user_exists().

long rsbac_ta_list_lol_get_all_data rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void **  array_p
 

Definition at line 10523 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::count, rsbac_list_lol_info_t::data_size, rsbac_list_lol_info_t::desc_size, rsbac_list_lol_reg_item_t::head, rsbac_list_lol_reg_item_t::info, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, rsbac_list_lol_item_t::max_age, rsbac_list_lol_item_t::next, NULL, RSBAC_EINVALIDREQUEST, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), rsbac_vmalloc, and rsbac_list_lol_reg_item_t::self.

Referenced by rsbac_list_lol_get_all_data().

long rsbac_ta_list_lol_get_all_desc rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void **  array_p
 

Definition at line 10162 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::count, rsbac_list_lol_info_t::desc_size, rsbac_list_lol_reg_item_t::head, rsbac_list_lol_reg_item_t::info, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, rsbac_list_lol_item_t::max_age, rsbac_list_lol_item_t::next, NULL, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), rsbac_vmalloc, and rsbac_list_lol_reg_item_t::self.

Referenced by rsbac_acl_get_group_members(), rsbac_list_lol_get_all_desc(), rsbac_um_get_gm_user_list(), and rsbac_um_get_user_list().

long rsbac_ta_list_lol_get_all_items rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void **  array_p
 

Definition at line 10992 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::count, rsbac_list_lol_info_t::data_size, rsbac_list_lol_info_t::desc_size, rsbac_list_lol_reg_item_t::head, rsbac_list_lol_reg_item_t::info, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, rsbac_list_reg_head_t::lock, rsbac_list_lol_item_t::max_age, rsbac_list_lol_item_t::next, NULL, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), rsbac_vmalloc, and rsbac_list_lol_reg_item_t::self.

Referenced by rsbac_list_lol_get_all_items().

long rsbac_ta_list_lol_get_all_subdata rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  desc,
void **  array_p
 

Definition at line 10418 of file gen_lists.c.

References rsbac_list_lol_item_t::count, rsbac_list_lol_item_t::head, rsbac_list_lol_reg_item_t::info, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, lookup_lol_item(), rsbac_list_item_t::max_age, rsbac_list_item_t::next, NULL, RSBAC_EINVALIDREQUEST, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), rsbac_vmalloc, rsbac_list_lol_reg_item_t::self, rsbac_list_lol_info_t::subdata_size, and rsbac_list_lol_info_t::subdesc_size.

Referenced by rsbac_list_lol_get_all_subdata().

long rsbac_ta_list_lol_get_all_subdesc_ttl rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  desc,
void **  array_p,
rsbac_time_t **  ttl_array_p
 

Definition at line 10038 of file gen_lists.c.

References rsbac_list_lol_item_t::count, rsbac_list_lol_item_t::head, rsbac_list_lol_reg_item_t::info, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, lookup_lol_item(), rsbac_list_item_t::max_age, rsbac_list_item_t::next, NULL, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), rsbac_vmalloc, rsbac_list_lol_reg_item_t::self, and rsbac_list_lol_info_t::subdesc_size.

Referenced by rsbac_acl_get_user_groups(), rsbac_auth_get_f_caplist(), rsbac_auth_get_p_caplist(), rsbac_list_lol_get_all_subdesc(), rsbac_list_lol_get_all_subdesc_ttl(), rsbac_mac_get_f_trulist(), rsbac_mac_get_p_trulist(), rsbac_rc_copy_role(), rsbac_rc_get_list(), and rsbac_um_get_gm_list().

long rsbac_ta_list_lol_get_all_subitems_ttl rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  desc,
void **  array_p,
rsbac_time_t **  ttl_array_p
 

Definition at line 10871 of file gen_lists.c.

References rsbac_list_lol_item_t::count, rsbac_list_lol_item_t::head, rsbac_list_lol_reg_item_t::info, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, lookup_lol_item(), rsbac_list_item_t::max_age, rsbac_list_item_t::next, NULL, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), rsbac_vmalloc, rsbac_list_lol_reg_item_t::self, rsbac_list_lol_info_t::subdata_size, and rsbac_list_lol_info_t::subdesc_size.

Referenced by rsbac_acl_get_tlist(), rsbac_list_lol_get_all_subitems(), rsbac_list_lol_get_all_subitems_ttl(), and rsbac_rc_copy_role().

int rsbac_ta_list_lol_get_data_ttl rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
rsbac_time_t ttl_p,
void *  desc,
void *  data
 

Definition at line 8836 of file gen_lists.c.

References rsbac_list_lol_info_t::data_size, rsbac_list_lol_reg_item_t::def_data, rsbac_list_lol_info_t::desc_size, rsbac_list_lol_reg_item_t::info, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, lookup_lol_item(), rsbac_list_lol_item_t::max_age, RSBAC_EINVALIDREQUEST, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), and rsbac_list_lol_reg_item_t::self.

Referenced by rsbac_acl_get_mask(), rsbac_acl_get_rights(), rsbac_acl_get_single_right(), rsbac_acl_remove_acl_entry(), rsbac_list_lol_get_data(), rsbac_list_lol_get_data_ttl(), rsbac_um_check_account(), rsbac_um_check_pass(), rsbac_um_get_user_entry(), rsbac_um_get_user_item(), rsbac_um_mod_user(), and rsbac_um_set_pass().

int rsbac_ta_list_lol_get_desc rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  desc,
void *  data,
rsbac_list_data_compare_function_t  compare
 

Definition at line 9282 of file gen_lists.c.

References rsbac_list_lol_info_t::data_size, rsbac_list_lol_info_t::desc_size, rsbac_list_lol_reg_item_t::info, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, lookup_lol_item_data(), RSBAC_EINVALIDREQUEST, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), and rsbac_list_lol_reg_item_t::self.

Referenced by rsbac_list_lol_get_desc(), and rsbac_um_get_uid().

int rsbac_ta_list_lol_get_next_desc rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  old_desc,
void *  next_desc
 

Definition at line 9105 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::curr, rsbac_list_lol_info_t::desc_size, rsbac_list_lol_reg_item_t::head, rsbac_list_lol_reg_item_t::info, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, lookup_lol_item(), rsbac_list_lol_item_t::max_age, rsbac_list_lol_item_t::next, RSBAC_EINVALIDPOINTER, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), and rsbac_list_lol_reg_item_t::self.

Referenced by rsbac_list_lol_get_next_desc(), and rsbac_um_get_next_user().

int rsbac_ta_list_lol_get_subdata_ttl rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
rsbac_time_t ttl_p,
void *  desc,
void *  subdesc,
void *  subdata
 

Definition at line 8697 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::def_subdata, rsbac_list_lol_reg_item_t::info, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, lookup_lol_item(), lookup_lol_subitem(), rsbac_list_item_t::max_age, RSBAC_EINVALIDREQUEST, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), rsbac_list_lol_reg_item_t::self, rsbac_list_lol_info_t::subdata_size, and rsbac_list_lol_info_t::subdesc_size.

Referenced by rsbac_acl_add_to_acl_entry(), rsbac_acl_get_group_members(), rsbac_acl_get_rights(), rsbac_acl_get_single_right(), rsbac_acl_remove_from_acl_entry(), rsbac_list_lol_get_subdata(), rsbac_list_lol_get_subdata_ttl(), rsbac_rc_copy_type(), and rsbac_rc_get_item().

int rsbac_ta_list_lol_remove rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 8401 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::dirty, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, lookup_lol_item(), remove_lol_item(), RSBAC_EBUSY, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), rsbac_list_lol_reg_item_t::self, and TRUE.

Referenced by rsbac_acl_remove_acl(), rsbac_acl_remove_acl_entry(), rsbac_acl_remove_group_member(), rsbac_acl_remove_user(), rsbac_auth_clear_f_capset(), rsbac_auth_clear_p_capset(), rsbac_list_lol_remove(), rsbac_mac_clear_f_truset(), rsbac_mac_clear_p_truset(), rsbac_pm_exists(), rsbac_pm_remove_set(), rsbac_pm_remove_target(), rsbac_rc_copy_role(), rsbac_rc_set_item(), and rsbac_um_remove_user().

int rsbac_ta_list_lol_remove_all rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle
 

Definition at line 8491 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::dirty, rsbac_list_lol_reg_item_t::head, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, NULL, remove_all_lol_items(), RSBAC_EBUSY, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), rsbac_list_lol_reg_item_t::self, and TRUE.

Referenced by rsbac_list_lol_remove_all().

int rsbac_ta_list_lol_subadd_ttl rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
rsbac_time_t  ttl,
void *  desc,
void *  subdesc,
void *  subdata
 

Definition at line 7492 of file gen_lists.c.

References add_lol_item(), add_lol_subitem(), rsbac_list_lol_reg_item_t::def_data, rsbac_list_lol_reg_item_t::def_subdata, rsbac_list_lol_reg_item_t::dirty, do_remove_lol_subitem(), rsbac_list_lol_reg_item_t::flags, rsbac_list_lol_reg_item_t::info, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, lookup_lol_item(), lookup_lol_subitem(), rsbac_list_lol_item_t::max_age, rsbac_list_item_t::max_age, remove_lol_item(), RSBAC_EBUSY, RSBAC_EINVALIDTARGET, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, RSBAC_LIST_DEF_DATA, RSBAC_LIST_MAX_AGE_LIMIT, RSBAC_LIST_TTL_KEEP, rsbac_ta_list_exist(), rsbac_list_lol_reg_item_t::self, rsbac_list_lol_info_t::subdata_size, rsbac_list_lol_info_t::subdesc_size, and TRUE.

Referenced by rsbac_acl_add_group_member(), rsbac_acl_add_to_acl_entry(), rsbac_acl_remove_from_acl_entry(), rsbac_acl_set_acl_entry(), rsbac_auth_add_to_f_capset(), rsbac_auth_add_to_p_capset(), rsbac_list_lol_subadd(), rsbac_list_lol_subadd_ttl(), rsbac_mac_add_to_f_truset(), rsbac_mac_add_to_p_truset(), rsbac_pm_add_to_set(), rsbac_rc_copy_role(), rsbac_rc_copy_type(), rsbac_rc_set_item(), and rsbac_um_add_gm().

long rsbac_ta_list_lol_subcount rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 9687 of file gen_lists.c.

References rsbac_list_lol_item_t::count, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, lookup_lol_item(), RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), and rsbac_list_lol_reg_item_t::self.

Referenced by rsbac_acl_remove_acl_entry(), rsbac_acl_remove_group_member(), rsbac_list_lol_subcount(), rsbac_rc_get_list(), and rsbac_um_get_gm_list().

int rsbac_ta_list_lol_subexist rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  desc,
void *  subdesc
 

Definition at line 9438 of file gen_lists.c.

References FALSE, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, lookup_lol_item(), lookup_lol_subitem(), rsbac_list_item_t::max_age, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, rsbac_ta_list_exist(), rsbac_list_lol_reg_item_t::self, and TRUE.

Referenced by rsbac_acl_group_member(), rsbac_list_lol_subexist(), rsbac_pm_set_member(), and rsbac_um_get_gm_user_list().

int rsbac_ta_list_lol_subexist_compare rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  desc,
void *  subdesc,
rsbac_list_compare_function_t  compare
 

Definition at line 9522 of file gen_lists.c.

References FALSE, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, lookup_lol_item(), lookup_lol_subitem_user_compare(), rsbac_list_item_t::max_age, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, rsbac_list_lol_subexist(), rsbac_ta_list_exist(), rsbac_list_lol_reg_item_t::self, and TRUE.

Referenced by rsbac_list_lol_subexist_compare().

int rsbac_ta_list_lol_subremove rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  desc,
void *  subdesc
 

Definition at line 8054 of file gen_lists.c.

References rsbac_list_lol_item_t::count, rsbac_list_lol_info_t::data_size, rsbac_list_lol_reg_item_t::def_data, rsbac_list_lol_info_t::desc_size, rsbac_list_lol_reg_item_t::dirty, do_remove_lol_item(), rsbac_list_lol_reg_item_t::flags, rsbac_list_lol_reg_item_t::info, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, lookup_lol_item(), lookup_lol_subitem(), rsbac_list_lol_item_t::max_age, remove_lol_subitem(), RSBAC_EBUSY, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, RSBAC_LIST_DEF_DATA, rsbac_ta_list_exist(), rsbac_list_lol_reg_item_t::self, and TRUE.

Referenced by rsbac_acl_remove_acl_entry(), rsbac_acl_remove_group_member(), rsbac_auth_remove_from_f_capset(), rsbac_auth_remove_from_p_capset(), rsbac_list_lol_subremove(), rsbac_mac_remove_from_f_truset(), rsbac_mac_remove_from_p_truset(), rsbac_pm_remove_from_set(), rsbac_rc_set_item(), and rsbac_um_remove_gm().

int rsbac_ta_list_lol_subremove_all rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 8293 of file gen_lists.c.

References rsbac_list_lol_info_t::data_size, rsbac_list_lol_reg_item_t::def_data, rsbac_list_lol_info_t::desc_size, rsbac_list_lol_reg_item_t::dirty, rsbac_list_lol_reg_item_t::flags, rsbac_list_lol_item_t::head, rsbac_list_lol_reg_item_t::info, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, lookup_lol_item(), rsbac_list_lol_item_t::max_age, remove_all_lol_subitems(), RSBAC_EBUSY, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, RSBAC_LIST_DEF_DATA, rsbac_ta_list_exist(), rsbac_list_lol_reg_item_t::self, and TRUE.

Referenced by rsbac_list_lol_subremove_all(), and rsbac_pm_clear_set().

int rsbac_ta_list_lol_subremove_from_all rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  subdesc
 

Definition at line 8196 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::dirty, rsbac_list_lol_reg_item_t::head, list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, lookup_lol_subitem(), rsbac_list_lol_item_t::next, remove_lol_subitem(), RSBAC_EBUSY, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), rsbac_list_lol_reg_item_t::self, and TRUE.

Referenced by rsbac_acl_remove_group(), rsbac_acl_remove_subject(), rsbac_acl_remove_user(), rsbac_list_lol_subremove_from_all(), rsbac_rc_copy_type(), rsbac_rc_set_item(), and rsbac_um_remove_group().

int rsbac_ta_list_remove rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 7872 of file gen_lists.c.

References rsbac_list_reg_item_t::dirty, list_initialized, rsbac_list_reg_head_t::lock, rsbac_list_reg_item_t::lock, lookup_item(), remove_item(), RSBAC_EBUSY, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), rsbac_list_reg_item_t::self, and TRUE.

Referenced by rsbac_acl_remove_acl_entry(), rsbac_acl_remove_group(), rsbac_acl_remove_subject(), rsbac_acl_remove_user(), rsbac_list_remove(), rsbac_pm_exists(), rsbac_pm_remove_target(), rsbac_rc_set_item(), rsbac_ta_remove_target(), rsbac_um_remove_group(), set_attr_fd(), and set_attr_user().

int rsbac_ta_list_remove_all rsbac_list_ta_number_t  ta_number,
rsbac_list_handle_t  handle
 

Definition at line 7962 of file gen_lists.c.

References rsbac_list_reg_item_t::dirty, rsbac_list_reg_item_t::head, list_initialized, rsbac_list_reg_head_t::lock, rsbac_list_reg_item_t::lock, NULL, remove_all_items(), RSBAC_EBUSY, RSBAC_EINVALIDTRANSACTION, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_ta_list_exist(), rsbac_list_reg_item_t::self, and TRUE.

Referenced by rsbac_list_remove_all().


Variable Documentation

rsbac_boolean_t list_initialized = FALSE [static]
 

Definition at line 34 of file gen_lists.c.

Referenced by rsbac_check_lists(), rsbac_list_check(), rsbac_list_destroy(), rsbac_list_detach(), rsbac_list_get_item_size(), rsbac_list_init(), rsbac_list_lol_check(), rsbac_list_lol_destroy(), rsbac_list_lol_detach(), rsbac_list_lol_get_item_size(), rsbac_list_lol_get_subitem_size(), rsbac_list_lol_no_write(), rsbac_list_lol_register(), rsbac_list_no_write(), rsbac_list_register(), rsbac_ta_list_add_ttl(), rsbac_ta_list_count(), rsbac_ta_list_exist(), rsbac_ta_list_get_all_data(), rsbac_ta_list_get_all_desc(), rsbac_ta_list_get_all_items_ttl(), rsbac_ta_list_get_data_ttl(), rsbac_ta_list_get_desc(), rsbac_ta_list_get_max_desc(), rsbac_ta_list_get_next_desc(), rsbac_ta_list_lol_add_ttl(), rsbac_ta_list_lol_all_subcount(), rsbac_ta_list_lol_count(), rsbac_ta_list_lol_exist(), rsbac_ta_list_lol_get_all_data(), rsbac_ta_list_lol_get_all_desc(), rsbac_ta_list_lol_get_all_items(), rsbac_ta_list_lol_get_all_subdata(), rsbac_ta_list_lol_get_all_subdesc_ttl(), rsbac_ta_list_lol_get_all_subitems_ttl(), rsbac_ta_list_lol_get_data_ttl(), rsbac_ta_list_lol_get_desc(), rsbac_ta_list_lol_get_next_desc(), rsbac_ta_list_lol_get_subdata_ttl(), rsbac_ta_list_lol_remove(), rsbac_ta_list_lol_remove_all(), rsbac_ta_list_lol_subadd_ttl(), rsbac_ta_list_lol_subcount(), rsbac_ta_list_lol_subexist(), rsbac_ta_list_lol_subexist_compare(), rsbac_ta_list_lol_subremove(), rsbac_ta_list_lol_subremove_all(), rsbac_ta_list_lol_subremove_from_all(), rsbac_ta_list_remove(), and rsbac_ta_list_remove_all().

struct rsbac_list_lol_reg_head_t lol_reg_head [static]
 

Definition at line 33 of file gen_lists.c.

struct rsbac_list_reg_head_t reg_head [static]
 

Definition at line 32 of file gen_lists.c.


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