/daten/src/linux-2.4.27-rsbac-v1.2.3/rsbac/data_structures/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

rsbac_list_item_tlookup_item_compare (struct rsbac_list_reg_item_t *list, void *desc)
rsbac_list_item_tlookup_item_memcmp (struct rsbac_list_reg_item_t *list, void *desc)
rsbac_list_item_tlookup_item (struct rsbac_list_reg_item_t *list, void *desc)
rsbac_list_item_tlookup_item_data_compare (struct rsbac_list_reg_item_t *list, void *data, rsbac_list_data_compare_function_t compare)
rsbac_list_item_tlookup_item_data_memcmp (struct rsbac_list_reg_item_t *list, void *data)
rsbac_list_item_tlookup_item_data (struct rsbac_list_reg_item_t *list, void *data, rsbac_list_data_compare_function_t compare)
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)
rsbac_list_item_tlookup_lol_subitem_memcmp (struct rsbac_list_lol_reg_item_t *list, struct rsbac_list_lol_item_t *sublist, void *subdesc)
rsbac_list_item_tlookup_lol_subitem (struct rsbac_list_lol_reg_item_t *list, struct rsbac_list_lol_item_t *sublist, void *subdesc)
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)
rsbac_list_lol_item_tlookup_lol_item_compare (struct rsbac_list_lol_reg_item_t *list, void *desc)
rsbac_list_lol_item_tlookup_lol_item_memcmp (struct rsbac_list_lol_reg_item_t *list, void *desc)
rsbac_list_lol_item_tlookup_lol_item (struct rsbac_list_lol_reg_item_t *list, void *desc)
rsbac_list_reg_item_tlookup_reg (struct rsbac_list_reg_item_t *handle)
rsbac_list_reg_item_tlookup_reg_name (char *name, kdev_t device)
rsbac_list_lol_reg_item_tlookup_lol_reg (struct rsbac_list_lol_reg_item_t *handle)
rsbac_list_lol_reg_item_tlookup_lol_reg_name (char *name, kdev_t device)
rsbac_list_item_tinsert_item_compare (struct rsbac_list_reg_item_t *list, void *desc, struct rsbac_list_item_t *new_item_p)
rsbac_list_item_tinsert_item_memcmp (struct rsbac_list_reg_item_t *list, void *desc, struct rsbac_list_item_t *new_item_p)
rsbac_list_item_tadd_item (struct rsbac_list_reg_item_t *list, rsbac_time_t max_age, void *desc, void *data)
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)
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)
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)
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)
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)
rsbac_list_lol_item_tadd_lol_item (struct rsbac_list_lol_reg_item_t *list, rsbac_time_t max_age, void *desc, void *data)
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)
rsbac_list_reg_item_tadd_reg (struct rsbac_list_reg_item_t *new_item_p)
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)
rsbac_list_lol_reg_item_tadd_lol_reg (struct rsbac_list_lol_reg_item_t *new_item_p)
void do_remove_item (struct rsbac_list_reg_item_t *list, struct rsbac_list_item_t *item_p)
void remove_item (struct rsbac_list_reg_item_t *list, void *desc)
void remove_all_items (struct rsbac_list_reg_item_t *list)
void do_remove_lol_subitem (struct rsbac_list_lol_item_t *sublist, struct rsbac_list_item_t *item_p)
void remove_lol_subitem (struct rsbac_list_lol_reg_item_t *list, struct rsbac_list_lol_item_t *sublist, void *subdesc)
void do_remove_lol_item (struct rsbac_list_lol_reg_item_t *list, struct rsbac_list_lol_item_t *item_p)
void remove_lol_item (struct rsbac_list_lol_reg_item_t *list, void *desc)
void remove_all_lol_subitems (struct rsbac_list_lol_item_t *sublist)
void remove_all_lol_items (struct rsbac_list_lol_reg_item_t *list)
void clear_reg (struct rsbac_list_reg_item_t *item_p)
void remove_reg (struct rsbac_list_reg_item_t *handle)
void clear_lol_reg (struct rsbac_list_lol_reg_item_t *item_p)
void remove_lol_reg (struct rsbac_list_lol_reg_item_t *handle)
int read_list (struct rsbac_list_reg_item_t *list)
int read_lol_list (struct rsbac_list_lol_reg_item_t *list)
int fill_buffer (struct rsbac_list_reg_item_t *list, struct rsbac_list_write_item_t **write_item_pp)
int rsbac_list_write_buffers (struct rsbac_list_write_head_t write_head, boolean need_lock)
int fill_lol_buffer (struct rsbac_list_lol_reg_item_t *list, struct rsbac_list_lol_write_item_t **write_item_pp)
int rsbac_list_write_lol_buffers (struct rsbac_list_lol_write_head_t write_head, boolean need_lock)
int rsbac_list_compare_u32 (void *desc1, void *desc2)
void __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, boolean no_write)
int rsbac_list_lol_no_write (rsbac_list_handle_t handle, rsbac_list_key_t key, boolean no_write)
int rsbac_list_add_ttl (rsbac_list_handle_t handle, rsbac_time_t ttl, void *desc, void *data)
int rsbac_list_add_ttl_u32 (rsbac_list_handle_t handle, rsbac_time_t ttl, __u32 desc, void *data)
int rsbac_list_add (rsbac_list_handle_t handle, void *desc, void *data)
int rsbac_list_add_u32 (rsbac_list_handle_t handle, __u32 desc, void *data)
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_ttl_u32 (rsbac_list_handle_t handle, rsbac_time_t ttl, __u32 desc, __u32 subdesc, void *subdata)
int rsbac_list_lol_subadd (rsbac_list_handle_t handle, void *desc, void *subdesc, void *subdata)
int rsbac_list_lol_subadd_u32 (rsbac_list_handle_t handle, __u32 desc, __u32 subdesc, void *subdata)
int rsbac_list_lol_add_ttl (rsbac_list_handle_t handle, rsbac_time_t ttl, void *desc, void *data)
int rsbac_list_lol_add_ttl_u32 (rsbac_list_handle_t handle, rsbac_time_t ttl, __u32 desc, void *data)
int rsbac_list_lol_add (rsbac_list_handle_t handle, void *desc, void *data)
int rsbac_list_lol_add_u32 (rsbac_list_handle_t handle, __u32 desc, void *data)
int rsbac_list_remove (rsbac_list_handle_t handle, void *desc)
int rsbac_list_remove_u32 (rsbac_list_handle_t handle, __u32 desc)
int rsbac_list_remove_all (rsbac_list_handle_t handle)
int rsbac_list_lol_subremove (rsbac_list_handle_t handle, void *desc, void *subdesc)
int rsbac_list_lol_subremove_u32 (rsbac_list_handle_t handle, __u32 desc, __u32 subdesc)
int rsbac_list_lol_subremove_from_all (rsbac_list_handle_t handle, void *subdesc)
int rsbac_list_lol_subremove_from_all_u32 (rsbac_list_handle_t handle, __u32 subdesc)
int rsbac_list_lol_subremove_all (rsbac_list_handle_t handle, void *desc)
int rsbac_list_lol_subremove_all_u32 (rsbac_list_handle_t handle, __u32 desc)
int rsbac_list_lol_remove (rsbac_list_handle_t handle, void *desc)
int rsbac_list_lol_remove_u32 (rsbac_list_handle_t handle, __u32 desc)
int rsbac_list_lol_remove_all (rsbac_list_handle_t handle)
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_ttl_u32 (rsbac_list_handle_t handle, rsbac_time_t *ttl_p, __u32 desc, void *data)
int rsbac_list_get_data (rsbac_list_handle_t handle, void *desc, void *data)
int rsbac_list_get_data_u32 (rsbac_list_handle_t handle, __u32 desc, void *data)
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_ttl_u32 (rsbac_list_handle_t handle, rsbac_time_t *ttl_p, __u32 desc, __u32 subdesc, void *data)
int rsbac_list_lol_get_subdata (rsbac_list_handle_t handle, void *desc, void *subdesc, void *subdata)
int rsbac_list_lol_get_subdata_u32 (rsbac_list_handle_t handle, __u32 desc, __u32 subdesc, 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_ttl_u32 (rsbac_list_handle_t handle, rsbac_time_t *ttl_p, __u32 desc, void *data)
int rsbac_list_lol_get_data (rsbac_list_handle_t handle, void *desc, void *data)
int rsbac_list_lol_get_data_u32 (rsbac_list_handle_t handle, __u32 desc, void *data)
int rsbac_list_get_max_desc (rsbac_list_handle_t handle, void *desc)
int rsbac_list_get_desc (rsbac_list_handle_t handle, void *desc, void *data, rsbac_list_data_compare_function_t compare)
int rsbac_list_exist (rsbac_list_handle_t handle, void *desc)
int rsbac_list_exist_u32 (rsbac_list_handle_t handle, __u32 desc)
int rsbac_list_lol_subexist (rsbac_list_handle_t handle, void *desc, void *subdesc)
int rsbac_list_lol_subexist_u32 (rsbac_list_handle_t handle, __u32 desc, __u32 subdesc)
int rsbac_list_lol_subexist_compare (rsbac_list_handle_t handle, void *desc, void *subdesc, rsbac_list_compare_function_t compare)
int rsbac_list_lol_subexist_compare_u32 (rsbac_list_handle_t handle, __u32 desc, __u32 subdesc, rsbac_list_compare_function_t compare)
int rsbac_list_lol_exist (rsbac_list_handle_t handle, void *desc)
int rsbac_list_lol_exist_u32 (rsbac_list_handle_t handle, __u32 desc)
long rsbac_list_lol_subcount (rsbac_list_handle_t handle, void *desc)
long rsbac_list_lol_all_subcount (rsbac_list_handle_t handle)
long rsbac_list_lol_count (rsbac_list_handle_t handle)
long rsbac_list_count (rsbac_list_handle_t handle)
long rsbac_list_get_all_desc (rsbac_list_handle_t handle, void **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_list_lol_get_all_desc (rsbac_list_handle_t handle, void **array_p)
long rsbac_list_get_all_data (rsbac_list_handle_t handle, void **array_p)
long rsbac_list_lol_get_all_subdata (rsbac_list_handle_t handle, void *desc, 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_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_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_list_lol_get_all_items (rsbac_list_handle_t handle, void **array_p)

Variables

rsbac_list_reg_head_t reg_head
rsbac_list_lol_reg_head_t lol_reg_head
boolean list_initialized = FALSE


Function Documentation

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 856 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_info_t::data_size, rsbac_list_info_t::desc_size, rsbac_list_reg_item_t::head, rsbac_list_reg_item_t::info, insert_item_compare(), insert_item_memcmp(), NULL, rsbac_kmalloc(), rsbac_time_t, and rsbac_list_reg_item_t::tail.

Referenced by read_list(), rsbac_list_add_ttl(), and rsbac_reg_register().

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 1232 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_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, insert_lol_item_compare(), insert_lol_item_memcmp(), NULL, rsbac_kmalloc(), rsbac_time_t, and rsbac_list_lol_reg_item_t::tail.

Referenced by read_lol_list(), rsbac_list_lol_add_ttl(), and rsbac_list_lol_subadd_ttl().

struct rsbac_list_lol_reg_item_t* add_lol_reg struct rsbac_list_lol_reg_item_t new_item_p  )  [static]
 

Definition at line 1447 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, lol_reg_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().

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 1046 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_reg_item_t::info, insert_lol_subitem_compare(), insert_lol_subitem_memcmp(), NULL, rsbac_kmalloc(), rsbac_time_t, rsbac_list_lol_reg_item_t::subcompare, rsbac_list_lol_info_t::subdata_size, rsbac_list_lol_info_t::subdesc_size, and rsbac_list_lol_item_t::tail.

Referenced by read_lol_list(), and rsbac_list_lol_subadd_ttl().

struct rsbac_list_reg_item_t* add_reg struct rsbac_list_reg_item_t new_item_p  )  [static]
 

Definition at line 1341 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, reg_head, and rsbac_list_reg_head_t::tail.

Referenced by rsbac_list_register().

void clear_lol_reg struct rsbac_list_lol_reg_item_t item_p  )  [static]
 

Definition at line 1786 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().

void clear_reg struct rsbac_list_reg_item_t item_p  )  [static]
 

Definition at line 1727 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().

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
[static]
 

Definition at line 1366 of file gen_lists.c.

References rsbac_list_lol_info_t::data_size, FALSE, NULL, rsbac_kfree(), rsbac_kmalloc(), rsbac_list_compare_function_t, RSBAC_LIST_DEF_DATA, RSBAC_LIST_DEF_SUBDATA, rsbac_list_get_conv_t, 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().

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
[static]
 

Definition at line 1284 of file gen_lists.c.

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

Referenced by rsbac_list_register().

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

Definition at line 1472 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_add_ttl(), and rsbac_list_check().

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 1607 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_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_add_ttl(), rsbac_list_lol_check(), and rsbac_list_lol_subremove().

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

Definition at line 1548 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_list_lol_subadd_ttl().

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

Definition at line 2679 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_reg_item_t::name, NULL, RSBAC_ENOMEM, rsbac_kfree(), rsbac_kmalloc(), RSBAC_LIST_DISK_VERSION, RSBAC_LIST_MAX_FILENAME, rsbac_time_t, rsbac_version_t, and rsbac_vkmalloc().

Referenced by rsbac_list_detach().

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 2919 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_lol_reg_item_t::name, NULL, RSBAC_ENOMEM, rsbac_kfree(), rsbac_kmalloc(), RSBAC_LIST_DISK_VERSION, RSBAC_LIST_MAX_FILENAME, rsbac_time_t, rsbac_version_t, rsbac_vkmalloc(), rsbac_list_lol_info_t::subdata_size, and rsbac_list_lol_info_t::subdesc_size.

Referenced by rsbac_list_lol_detach().

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

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 781 of file gen_lists.c.

References rsbac_list_reg_item_t::count, rsbac_list_reg_item_t::curr, rsbac_list_info_t::desc_size, rsbac_list_reg_item_t::head, rsbac_list_reg_item_t::info, rsbac_list_item_t::next, NULL, rsbac_list_item_t::prev, and rsbac_list_reg_item_t::tail.

Referenced by add_item().

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

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 1157 of file gen_lists.c.

References rsbac_list_lol_reg_item_t::count, 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, 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().

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

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 970 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_reg_item_t::info, rsbac_list_item_t::next, NULL, rsbac_list_item_t::prev, rsbac_list_lol_info_t::subdesc_size, and rsbac_list_lol_item_t::tail.

Referenced by add_lol_subitem().

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

Definition at line 161 of file gen_lists.c.

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

Referenced by remove_item(), rsbac_list_add_ttl(), rsbac_list_exist(), rsbac_list_get_data_ttl(), rsbac_list_remove(), rsbac_reg_register(), rsbac_reg_switch(), and rsbac_reg_unregister().

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

Definition at line 37 of file gen_lists.c.

References rsbac_list_reg_item_t::compare, rsbac_list_reg_item_t::curr, rsbac_list_reg_item_t::head, and NULL.

Referenced by lookup_item().

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 225 of file gen_lists.c.

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

Referenced by rsbac_list_get_desc().

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 174 of file gen_lists.c.

References compare(), rsbac_list_info_t::desc_size, rsbac_list_reg_item_t::head, rsbac_list_reg_item_t::info, rsbac_list_item_t::next, NULL, and rsbac_list_data_compare_function_t.

Referenced by lookup_item_data().

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

Definition at line 199 of file gen_lists.c.

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

Referenced by lookup_item_data().

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

Definition at line 94 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, and NULL.

Referenced by lookup_item().

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

Definition at line 530 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_list_lol_add_ttl(), rsbac_list_lol_exist(), rsbac_list_lol_get_all_subdata(), rsbac_list_lol_get_all_subdesc_ttl(), rsbac_list_lol_get_all_subitems_ttl(), rsbac_list_lol_get_data_ttl(), rsbac_list_lol_get_subdata_ttl(), rsbac_list_lol_remove(), rsbac_list_lol_subadd_ttl(), rsbac_list_lol_subcount(), rsbac_list_lol_subexist(), rsbac_list_lol_subexist_compare(), rsbac_list_lol_subremove(), and rsbac_list_lol_subremove_all().

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

Definition at line 406 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, and NULL.

Referenced by lookup_lol_item().

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

Definition at line 463 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, and NULL.

Referenced by lookup_lol_item().

struct rsbac_list_lol_reg_item_t* lookup_lol_reg struct rsbac_list_lol_reg_item_t handle  )  [static]
 

Definition at line 629 of file gen_lists.c.

References rsbac_list_lol_reg_head_t::curr, rsbac_list_lol_reg_head_t::head, lol_reg_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().

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

Definition at line 665 of file gen_lists.c.

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

Referenced by rsbac_list_lol_register(), and rsbac_list_register().

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 368 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_list_lol_get_subdata_ttl(), rsbac_list_lol_subadd_ttl(), rsbac_list_lol_subexist(), rsbac_list_lol_subremove(), and rsbac_list_lol_subremove_from_all().

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 241 of file gen_lists.c.

References compare(), rsbac_list_lol_item_t::curr, rsbac_list_lol_item_t::head, NULL, and rsbac_list_compare_function_t.

Referenced by lookup_lol_subitem().

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 300 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, NULL, and rsbac_list_lol_info_t::subdesc_size.

Referenced by lookup_lol_subitem().

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 382 of file gen_lists.c.

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

Referenced by rsbac_list_lol_subexist_compare().

struct rsbac_list_reg_item_t* lookup_reg struct rsbac_list_reg_item_t handle  )  [static]
 

Definition at line 545 of file gen_lists.c.

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

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

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

Definition at line 581 of file gen_lists.c.

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

Referenced by rsbac_list_lol_register(), and rsbac_list_register().

int read_list struct rsbac_list_reg_item_t list  )  [static]
 

Definition at line 1851 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_conv_function_t, rsbac_list_count_t, 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_time_t, rsbac_version_t, TRUE, and rsbac_list_info_t::version.

Referenced by rsbac_list_register().

int read_lol_list struct rsbac_list_lol_reg_item_t list  )  [static]
 

Definition at line 2202 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_conv_function_t, rsbac_list_count_t, 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_time_t, rsbac_version_t, 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().

void remove_all_items struct rsbac_list_reg_item_t list  )  [static]
 

Definition at line 1528 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_list_remove_all().

void remove_all_lol_items struct rsbac_list_lol_reg_item_t list  )  [static]
 

Definition at line 1695 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_item_t::next, NULL, rsbac_kfree(), and rsbac_list_lol_reg_item_t::tail.

Referenced by clear_lol_reg(), and rsbac_list_lol_remove_all().

void remove_all_lol_subitems struct rsbac_list_lol_item_t sublist  )  [static]
 

Definition at line 1675 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_list_lol_subremove_all().

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

Definition at line 1513 of file gen_lists.c.

References do_remove_item(), and lookup_item().

Referenced by rsbac_list_remove(), and rsbac_reg_unregister().

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

Definition at line 1659 of file gen_lists.c.

References do_remove_lol_item(), and lookup_lol_item().

Referenced by rsbac_list_lol_remove(), and rsbac_list_lol_subadd_ttl().

void remove_lol_reg struct rsbac_list_lol_reg_item_t handle  )  [static]
 

Definition at line 1801 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, lol_reg_head, lookup_lol_reg(), 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_destroy(), and rsbac_list_lol_detach().

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 1589 of file gen_lists.c.

References do_remove_lol_subitem(), and lookup_lol_subitem().

Referenced by rsbac_list_lol_subremove(), and rsbac_list_lol_subremove_from_all().

void remove_reg struct rsbac_list_reg_item_t handle  )  [static]
 

Definition at line 1740 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, reg_head, 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 3902 of file gen_lists.c.

References do_remove_item(), do_remove_lol_item(), do_remove_lol_subitem(), 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, lol_reg_head, reg_head, RSBAC_ENOTINITIALIZED, RSBAC_LIST_DEF_DATA, and RSBAC_LIST_PERSIST.

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 5617 of file gen_lists.c.

References rsbac_list_add_ttl(), rsbac_list_handle_t, and RSBAC_LIST_TTL_KEEP.

Referenced by rsbac_acl_add_group(), rsbac_acl_change_group(), rsbac_acl_remove_from_acl_entry(), rsbac_adf_log_switch(), rsbac_do_init(), rsbac_init(), rsbac_init_acl(), rsbac_init_rc(), rsbac_kthread_notify(), rsbac_pm_add_target(), rsbac_pm_set_data(), rsbac_rc_copy_role(), rsbac_rc_set_item(), and rsbac_set_attr().

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

Definition at line 5532 of file gen_lists.c.

References add_item(), do_remove_item(), list_initialized, rsbac_list_reg_head_t::lock, lookup_item(), reg_head, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, RSBAC_LIST_MAX_AGE_LIMIT, RSBAC_LIST_TTL_KEEP, rsbac_time_t, and TRUE.

Referenced by rsbac_acl_add_to_acl_entry(), rsbac_acl_set_acl_entry(), rsbac_list_add(), rsbac_list_add_ttl_u32(), rsbac_list_add_u32(), and rsbac_set_attr().

int rsbac_list_add_ttl_u32 rsbac_list_handle_t  handle,
rsbac_time_t  ttl,
__u32  desc,
void *  data
 

Definition at line 5609 of file gen_lists.c.

References rsbac_list_add_ttl(), rsbac_list_handle_t, and rsbac_time_t.

int rsbac_list_add_u32 rsbac_list_handle_t  handle,
__u32  desc,
void *  data
 

Definition at line 5629 of file gen_lists.c.

References rsbac_list_add_ttl(), rsbac_list_handle_t, and RSBAC_LIST_TTL_KEEP.

Referenced by need_overwrite_func(), request_func(), set_attr_func(), syscall_func(), and write_func().

int rsbac_list_check rsbac_list_handle_t  handle,
int  correct
 

Definition at line 4212 of file gen_lists.c.

References do_remove_item(), list_initialized, rsbac_list_reg_head_t::lock, reg_head, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, and TRUE.

int rsbac_list_compare_u32 void *  desc1,
void *  desc2
 

Definition at line 3599 of file gen_lists.c.

Referenced by acl_register_fd_lists(), auth_register_fd_lists(), mac_register_fd_lists(), register_fd_lists(), rsbac_do_init(), rsbac_init_acl(), rsbac_init_pm(), and rsbac_init_rc().

long rsbac_list_count rsbac_list_handle_t  handle  ) 
 

Definition at line 7074 of file gen_lists.c.

References list_initialized, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, and rsbac_list_handle_t.

Referenced by rsbac_check_acl(), rsbac_do_init(), rsbac_init_acl(), rsbac_init_rc(), rsbac_rc_get_list(), rsbac_stats(), rsbac_stats_acl(), and rsbac_stats_rc().

int rsbac_list_destroy rsbac_list_handle_t handle_p,
rsbac_list_key_t  key
 

Definition at line 5036 of file gen_lists.c.

References list_initialized, rsbac_list_reg_head_t::lock, lookup_reg(), NULL, proc_rsbac_backup_p, reg_head, remove_reg(), RSBAC_EINVALIDPOINTER, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, RSBAC_LIST_BACKUP, rsbac_list_handle_t, rsbac_list_key_t, and RSBAC_LIST_PERSIST.

int rsbac_list_detach rsbac_list_handle_t handle_p,
rsbac_list_key_t  key
 

Definition at line 5199 of file gen_lists.c.

References rsbac_list_write_head_t::count, FALSE, fill_buffer(), rsbac_list_write_head_t::head, list_initialized, rsbac_list_reg_head_t::lock, lookup_reg(), NULL, proc_rsbac_backup_p, reg_head, remove_reg(), RSBAC_EINVALIDPOINTER, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, RSBAC_ENOTWRITABLE, RSBAC_LIST_BACKUP, rsbac_list_handle_t, rsbac_list_key_t, 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 6702 of file gen_lists.c.

References FALSE, list_initialized, rsbac_list_reg_head_t::lock, lookup_item(), reg_head, RSBAC_EINVALIDVALUE, rsbac_list_handle_t, 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_check_acl(), rsbac_get_attr(), rsbac_init_rc(), rsbac_list_exist_u32(), rsbac_pm_exists(), rsbac_rc_set_item(), and rsbac_set_attr().

int rsbac_list_exist_u32 rsbac_list_handle_t  handle,
__u32  desc
 

Definition at line 6752 of file gen_lists.c.

References rsbac_list_exist(), and rsbac_list_handle_t.

Referenced by init_module().

long rsbac_list_get_all_data rsbac_list_handle_t  handle,
void **  array_p
 

Definition at line 7338 of file gen_lists.c.

References list_initialized, rsbac_list_reg_head_t::lock, NULL, reg_head, RSBAC_EINVALIDREQUEST, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, and rsbac_vmalloc.

Referenced by rsbac_acl_list_groups(), and rsbac_acl_remove_user().

long rsbac_list_get_all_desc rsbac_list_handle_t  handle,
void **  array_p
 

Definition at line 7107 of file gen_lists.c.

References list_initialized, rsbac_list_reg_head_t::lock, NULL, reg_head, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, and rsbac_vmalloc.

Referenced by rsbac_check(), and rsbac_rc_get_list().

long rsbac_list_get_all_items rsbac_list_handle_t  handle,
void **  array_p
 

Definition at line 7709 of file gen_lists.c.

References NULL, rsbac_list_get_all_items_ttl(), and rsbac_list_handle_t.

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

Definition at line 7628 of file gen_lists.c.

References list_initialized, rsbac_list_reg_head_t::lock, NULL, reg_head, RSBAC_EINVALIDPOINTER, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, rsbac_time_t, and rsbac_vmalloc.

Referenced by rsbac_acl_get_tlist(), and rsbac_list_get_all_items().

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

Definition at line 6337 of file gen_lists.c.

References NULL, rsbac_list_get_data_ttl(), and rsbac_list_handle_t.

Referenced by 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_do_init(), rsbac_get_attr(), rsbac_init(), rsbac_init_debug(), rsbac_pm_exists(), rsbac_pm_get_all_data(), rsbac_pm_get_data(), rsbac_pm_set_data(), rsbac_rc_copy_role(), rsbac_rc_get_item(), rsbac_rc_set_item(), and rsbac_set_attr().

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

Definition at line 6247 of file gen_lists.c.

References list_initialized, rsbac_list_reg_head_t::lock, lookup_item(), reg_head, RSBAC_EINVALIDREQUEST, RSBAC_EINVALIDVALUE, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, and rsbac_time_t.

Referenced by rsbac_list_get_data(), rsbac_list_get_data_ttl_u32(), and rsbac_list_get_data_u32().

int rsbac_list_get_data_ttl_u32 rsbac_list_handle_t  handle,
rsbac_time_t ttl_p,
__u32  desc,
void *  data
 

Definition at line 6326 of file gen_lists.c.

References rsbac_list_get_data_ttl(), rsbac_list_handle_t, and rsbac_time_t.

int rsbac_list_get_data_u32 rsbac_list_handle_t  handle,
__u32  desc,
void *  data
 

Definition at line 6345 of file gen_lists.c.

References NULL, rsbac_list_get_data_ttl(), and rsbac_list_handle_t.

Referenced by init_module().

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

Definition at line 6646 of file gen_lists.c.

References list_initialized, rsbac_list_reg_head_t::lock, lookup_item_data(), reg_head, RSBAC_EINVALIDREQUEST, RSBAC_EINVALIDVALUE, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, rsbac_list_data_compare_function_t, and rsbac_list_handle_t.

Referenced by rsbac_rc_get_boot_role().

int rsbac_list_get_item_size rsbac_list_handle_t  handle  ) 
 

Definition at line 7568 of file gen_lists.c.

References list_initialized, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, and rsbac_list_handle_t.

int rsbac_list_get_max_desc rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 6596 of file gen_lists.c.

References list_initialized, rsbac_list_reg_head_t::lock, reg_head, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, and rsbac_list_handle_t.

Referenced by rsbac_init_acl().

void __init rsbac_list_init void   ) 
 

Definition at line 3609 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, 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, lol_reg_head, NULL, proc_rsbac_root_p, reg_head, RSBAC_LIST_PROC_NAME, 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 5871 of file gen_lists.c.

References rsbac_list_handle_t, rsbac_list_lol_add_ttl(), and RSBAC_LIST_TTL_KEEP.

Referenced by rsbac_acl_add_group_member(), rsbac_acl_add_to_acl_entry(), rsbac_acl_set_acl_entry(), rsbac_acl_set_mask(), rsbac_init_acl(), rsbac_init_rc(), rsbac_pm_create_set(), 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 5782 of file gen_lists.c.

References add_lol_item(), do_remove_lol_item(), list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_item(), RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, RSBAC_LIST_MAX_AGE_LIMIT, RSBAC_LIST_TTL_KEEP, rsbac_time_t, and TRUE.

Referenced by rsbac_list_lol_add(), rsbac_list_lol_add_ttl_u32(), and rsbac_list_lol_add_u32().

int rsbac_list_lol_add_ttl_u32 rsbac_list_handle_t  handle,
rsbac_time_t  ttl,
__u32  desc,
void *  data
 

Definition at line 5860 of file gen_lists.c.

References rsbac_list_handle_t, rsbac_list_lol_add_ttl(), and rsbac_time_t.

int rsbac_list_lol_add_u32 rsbac_list_handle_t  handle,
__u32  desc,
void *  data
 

Definition at line 5882 of file gen_lists.c.

References rsbac_list_handle_t, rsbac_list_lol_add_ttl(), and RSBAC_LIST_TTL_KEEP.

long rsbac_list_lol_all_subcount rsbac_list_handle_t  handle  ) 
 

Definition at line 7008 of file gen_lists.c.

References list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, and rsbac_list_handle_t.

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

int rsbac_list_lol_check rsbac_list_handle_t  handle,
int  correct
 

Definition at line 4305 of file gen_lists.c.

References do_remove_lol_item(), do_remove_lol_subitem(), list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, RSBAC_LIST_DEF_DATA, and rsbac_list_handle_t.

long rsbac_list_lol_count rsbac_list_handle_t  handle  ) 
 

Definition at line 7048 of file gen_lists.c.

References list_initialized, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, and rsbac_list_handle_t.

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

int rsbac_list_lol_destroy rsbac_list_handle_t handle_p,
rsbac_list_key_t  key
 

Definition at line 5116 of file gen_lists.c.

References list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_reg(), NULL, proc_rsbac_backup_p, remove_lol_reg(), RSBAC_EINVALIDPOINTER, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, RSBAC_LIST_BACKUP, rsbac_list_handle_t, rsbac_list_key_t, and RSBAC_LIST_PERSIST.

int rsbac_list_lol_detach rsbac_list_handle_t handle_p,
rsbac_list_key_t  key
 

Definition at line 5309 of file gen_lists.c.

References rsbac_list_lol_write_head_t::count, FALSE, fill_lol_buffer(), rsbac_list_lol_write_head_t::head, list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_reg(), NULL, proc_rsbac_backup_p, remove_lol_reg(), RSBAC_EINVALIDPOINTER, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, RSBAC_ENOTWRITABLE, RSBAC_LIST_BACKUP, rsbac_list_handle_t, rsbac_list_key_t, 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 6904 of file gen_lists.c.

References FALSE, list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_item(), RSBAC_EINVALIDVALUE, rsbac_list_handle_t, and TRUE.

Referenced by rsbac_acl_add_group_member(), rsbac_acl_add_to_acl_entry(), rsbac_acl_set_acl_entry(), rsbac_list_lol_exist_u32(), rsbac_pm_create_set(), rsbac_pm_exists(), rsbac_pm_pp_intersec(), rsbac_pm_pp_subset(), rsbac_pm_pp_superset(), rsbac_pm_pp_union(), rsbac_pm_remove_target(), and rsbac_pm_set_exist().

int rsbac_list_lol_exist_u32 rsbac_list_handle_t  handle,
__u32  desc
 

Definition at line 6954 of file gen_lists.c.

References rsbac_list_handle_t, and rsbac_list_lol_exist().

long rsbac_list_lol_get_all_data rsbac_list_handle_t  handle,
void **  array_p
 

Definition at line 7490 of file gen_lists.c.

References list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, NULL, RSBAC_EINVALIDREQUEST, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, and rsbac_vmalloc.

long rsbac_list_lol_get_all_desc rsbac_list_handle_t  handle,
void **  array_p
 

Definition at line 7266 of file gen_lists.c.

References list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, NULL, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, and rsbac_vmalloc.

Referenced by rsbac_acl_get_group_members(), 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 7809 of file gen_lists.c.

References list_initialized, rsbac_list_lol_reg_head_t::lock, rsbac_list_reg_head_t::lock, lol_reg_head, NULL, reg_head, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, and rsbac_vmalloc.

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

Definition at line 7413 of file gen_lists.c.

References list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_item(), NULL, RSBAC_EINVALIDREQUEST, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, and rsbac_vmalloc.

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

Definition at line 7258 of file gen_lists.c.

References NULL, rsbac_list_handle_t, and rsbac_list_lol_get_all_subdesc_ttl().

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

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 7174 of file gen_lists.c.

References list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_item(), NULL, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, rsbac_time_t, and rsbac_vmalloc.

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_acl_get_user_groups(), rsbac_auth_get_f_caplist(), rsbac_auth_get_p_caplist(), rsbac_list_lol_get_all_subdesc(), rsbac_mac_get_f_trulist(), rsbac_mac_get_p_trulist(), and rsbac_rc_get_list().

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

Definition at line 7801 of file gen_lists.c.

References NULL, rsbac_list_handle_t, and rsbac_list_lol_get_all_subitems_ttl().

Referenced by rsbac_rc_copy_role().

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 7717 of file gen_lists.c.

References list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_item(), NULL, RSBAC_EINVALIDVALUE, RSBAC_ENOMEM, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, rsbac_time_t, and rsbac_vmalloc.

Referenced by rsbac_acl_get_tlist(), and rsbac_list_lol_get_all_subitems().

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

Definition at line 6576 of file gen_lists.c.

References NULL, rsbac_list_handle_t, and rsbac_list_lol_get_data_ttl().

Referenced by rsbac_acl_get_mask(), rsbac_acl_get_rights(), rsbac_acl_get_single_right(), and rsbac_acl_remove_acl_entry().

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

Definition at line 6486 of file gen_lists.c.

References list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_item(), RSBAC_EINVALIDREQUEST, RSBAC_EINVALIDVALUE, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, and rsbac_time_t.

Referenced by rsbac_list_lol_get_data(), rsbac_list_lol_get_data_ttl_u32(), and rsbac_list_lol_get_data_u32().

int rsbac_list_lol_get_data_ttl_u32 rsbac_list_handle_t  handle,
rsbac_time_t ttl_p,
__u32  desc,
void *  data
 

Definition at line 6565 of file gen_lists.c.

References rsbac_list_handle_t, rsbac_list_lol_get_data_ttl(), and rsbac_time_t.

int rsbac_list_lol_get_data_u32 rsbac_list_handle_t  handle,
__u32  desc,
void *  data
 

Definition at line 6587 of file gen_lists.c.

References NULL, rsbac_list_handle_t, and rsbac_list_lol_get_data_ttl().

int rsbac_list_lol_get_item_size rsbac_list_handle_t  handle  ) 
 

Definition at line 7604 of file gen_lists.c.

References list_initialized, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, and rsbac_list_handle_t.

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

Definition at line 6465 of file gen_lists.c.

References NULL, rsbac_list_handle_t, and rsbac_list_lol_get_subdata_ttl().

Referenced by rsbac_acl_add_to_acl_entry(), rsbac_acl_get_rights(), rsbac_acl_get_single_right(), rsbac_acl_remove_from_acl_entry(), and 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 6353 of file gen_lists.c.

References list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_item(), lookup_lol_subitem(), RSBAC_EINVALIDREQUEST, RSBAC_EINVALIDVALUE, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, and rsbac_time_t.

Referenced by rsbac_acl_get_group_members(), rsbac_list_lol_get_subdata(), rsbac_list_lol_get_subdata_ttl_u32(), rsbac_list_lol_get_subdata_u32(), and rsbac_rc_get_item().

int rsbac_list_lol_get_subdata_ttl_u32 rsbac_list_handle_t  handle,
rsbac_time_t ttl_p,
__u32  desc,
__u32  subdesc,
void *  data
 

Definition at line 6453 of file gen_lists.c.

References rsbac_list_handle_t, rsbac_list_lol_get_subdata_ttl(), and rsbac_time_t.

int rsbac_list_lol_get_subdata_u32 rsbac_list_handle_t  handle,
__u32  desc,
__u32  subdesc,
void *  data
 

Definition at line 6477 of file gen_lists.c.

References NULL, rsbac_list_handle_t, and rsbac_list_lol_get_subdata_ttl().

int rsbac_list_lol_get_subitem_size rsbac_list_handle_t  handle  ) 
 

Definition at line 7586 of file gen_lists.c.

References list_initialized, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, and rsbac_list_handle_t.

Referenced by rsbac_rc_copy_role().

int rsbac_list_lol_no_write rsbac_list_handle_t  handle,
rsbac_list_key_t  key,
boolean  no_write
 

Definition at line 5473 of file gen_lists.c.

References FALSE, list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_reg(), RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, rsbac_list_key_t, 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 4787 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, lol_reg_head, lookup_lol_reg_name(), lookup_reg_name(), rsbac_list_lol_info_t::max_age, NULL, proc_rsbac_backup_p, read_lol_list(), reg_head, RSBAC_ECOULDNOTADDITEM, RSBAC_EEXISTS, RSBAC_EINVALIDPOINTER, RSBAC_EINVALIDVALUE, RSBAC_EINVALIDVERSION, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, rsbac_kfree(), rsbac_kmalloc(), RSBAC_LIST_BACKUP, rsbac_list_compare_function_t, rsbac_list_get_conv_t, rsbac_list_handle_t, RSBAC_LIST_MAX_AGE_LIMIT, RSBAC_LIST_MAX_ITEM_SIZE, RSBAC_LIST_PERSIST, RSBAC_LIST_VERSION, RSBAC_MAXNAMELEN, rsbac_root_dev, rsbac_version_t, 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(), and rsbac_init_rc().

int rsbac_list_lol_remove rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 6158 of file gen_lists.c.

References list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_item(), remove_lol_item(), RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, and TRUE.

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_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_check_acl(), rsbac_check_auth(), rsbac_check_mac(), rsbac_list_lol_remove_u32(), 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(), and rsbac_rc_set_item().

int rsbac_list_lol_remove_all rsbac_list_handle_t  handle  ) 
 

Definition at line 6207 of file gen_lists.c.

References list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, remove_all_lol_items(), RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, and TRUE.

int rsbac_list_lol_remove_u32 rsbac_list_handle_t  handle,
__u32  desc
 

Definition at line 6197 of file gen_lists.c.

References rsbac_list_handle_t, and rsbac_list_lol_remove().

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

Definition at line 5755 of file gen_lists.c.

References rsbac_list_handle_t, rsbac_list_lol_subadd_ttl(), and RSBAC_LIST_TTL_KEEP.

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

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

Definition at line 5639 of file gen_lists.c.

References add_lol_item(), add_lol_subitem(), do_remove_lol_subitem(), list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_item(), lookup_lol_subitem(), remove_lol_item(), RSBAC_EINVALIDTARGET, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, RSBAC_LIST_DEF_DATA, rsbac_list_handle_t, RSBAC_LIST_MAX_AGE_LIMIT, RSBAC_LIST_TTL_KEEP, rsbac_time_t, and TRUE.

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_acl_add_group_member(), rsbac_acl_add_to_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_u32(), rsbac_list_lol_subadd_u32(), rsbac_mac_add_to_f_truset(), rsbac_mac_add_to_p_truset(), and rsbac_rc_set_item().

int rsbac_list_lol_subadd_ttl_u32 rsbac_list_handle_t  handle,
rsbac_time_t  ttl,
__u32  desc,
__u32  subdesc,
void *  subdata
 

Definition at line 5743 of file gen_lists.c.

References rsbac_list_handle_t, rsbac_list_lol_subadd_ttl(), and rsbac_time_t.

int rsbac_list_lol_subadd_u32 rsbac_list_handle_t  handle,
__u32  desc,
__u32  subdesc,
void *  subdata
 

Definition at line 5768 of file gen_lists.c.

References rsbac_list_handle_t, rsbac_list_lol_subadd_ttl(), and RSBAC_LIST_TTL_KEEP.

long rsbac_list_lol_subcount rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 6965 of file gen_lists.c.

References list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_item(), RSBAC_EINVALIDVALUE, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, and rsbac_list_handle_t.

Referenced by rsbac_acl_remove_acl_entry(), rsbac_acl_remove_group_member(), rsbac_pm_pp_only(), and rsbac_rc_get_list().

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

Definition at line 6761 of file gen_lists.c.

References FALSE, list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_item(), lookup_lol_subitem(), RSBAC_EINVALIDVALUE, rsbac_list_handle_t, and TRUE.

Referenced by rsbac_acl_group_member(), rsbac_init_rc(), rsbac_list_lol_subexist_compare(), rsbac_list_lol_subexist_compare_u32(), rsbac_list_lol_subexist_u32(), rsbac_mac_p_truset_member(), rsbac_pm_pp_intersec(), rsbac_pm_pp_only(), rsbac_pm_pp_subset(), rsbac_pm_pp_superset(), rsbac_pm_set_member(), and rsbac_rc_check_comp().

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

Definition at line 6829 of file gen_lists.c.

References FALSE, list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_item(), lookup_lol_subitem_user_compare(), RSBAC_EINVALIDVALUE, rsbac_list_compare_function_t, rsbac_list_handle_t, rsbac_list_lol_subexist(), and TRUE.

Referenced by rsbac_auth_p_capset_member().

int rsbac_list_lol_subexist_compare_u32 rsbac_list_handle_t  handle,
__u32  desc,
__u32  subdesc,
rsbac_list_compare_function_t  compare
 

Definition at line 6893 of file gen_lists.c.

References rsbac_list_compare_function_t, rsbac_list_handle_t, and rsbac_list_lol_subexist().

int rsbac_list_lol_subexist_u32 rsbac_list_handle_t  handle,
__u32  desc,
__u32  subdesc
 

Definition at line 6821 of file gen_lists.c.

References rsbac_list_handle_t, and rsbac_list_lol_subexist().

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

Definition at line 5977 of file gen_lists.c.

References do_remove_lol_item(), list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_item(), lookup_lol_subitem(), remove_lol_subitem(), RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, RSBAC_LIST_DEF_DATA, rsbac_list_handle_t, 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_check_acl(), rsbac_list_lol_subremove_u32(), rsbac_mac_remove_from_f_truset(), rsbac_mac_remove_from_p_truset(), rsbac_pm_pp_intersec(), rsbac_pm_remove_from_set(), and rsbac_rc_set_item().

int rsbac_list_lol_subremove_all rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 6110 of file gen_lists.c.

References list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_item(), remove_all_lol_subitems(), RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, and TRUE.

Referenced by rsbac_list_lol_subremove_all_u32(), and rsbac_pm_clear_set().

int rsbac_list_lol_subremove_all_u32 rsbac_list_handle_t  handle,
__u32  desc
 

Definition at line 6149 of file gen_lists.c.

References rsbac_list_handle_t, and rsbac_list_lol_subremove_all().

int rsbac_list_lol_subremove_from_all rsbac_list_handle_t  handle,
void *  subdesc
 

Definition at line 6054 of file gen_lists.c.

References list_initialized, rsbac_list_lol_reg_head_t::lock, lol_reg_head, lookup_lol_subitem(), remove_lol_subitem(), RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, and TRUE.

Referenced by rsbac_acl_remove_group(), rsbac_acl_remove_subject(), rsbac_acl_remove_user(), rsbac_list_lol_subremove_from_all_u32(), and rsbac_rc_set_item().

int rsbac_list_lol_subremove_from_all_u32 rsbac_list_handle_t  handle,
__u32  subdesc
 

Definition at line 6100 of file gen_lists.c.

References rsbac_list_handle_t, and rsbac_list_lol_subremove_from_all().

int rsbac_list_lol_subremove_u32 rsbac_list_handle_t  handle,
__u32  desc,
__u32  subdesc
 

Definition at line 6044 of file gen_lists.c.

References rsbac_list_handle_t, and rsbac_list_lol_subremove().

int rsbac_list_mount kdev_t  kdev  ) 
 

Definition at line 3642 of file gen_lists.c.

Referenced by rsbac_mount().

int rsbac_list_no_write rsbac_list_handle_t  handle,
rsbac_list_key_t  key,
boolean  no_write
 

Definition at line 5421 of file gen_lists.c.

References FALSE, list_initialized, rsbac_list_reg_head_t::lock, lookup_reg(), reg_head, RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, rsbac_list_key_t, 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 4495 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, lol_reg_head, lookup_lol_reg_name(), lookup_reg_name(), rsbac_list_info_t::max_age, NULL, proc_rsbac_backup_p, read_list(), reg_head, RSBAC_ECOULDNOTADDITEM, RSBAC_EEXISTS, RSBAC_EINVALIDPOINTER, RSBAC_EINVALIDVALUE, RSBAC_EINVALIDVERSION, RSBAC_ENOTFOUND, RSBAC_ENOTINITIALIZED, rsbac_kfree(), rsbac_kmalloc(), RSBAC_LIST_BACKUP, rsbac_list_compare_function_t, rsbac_list_get_conv_t, rsbac_list_handle_t, RSBAC_LIST_MAX_AGE_LIMIT, RSBAC_LIST_MAX_ITEM_SIZE, RSBAC_LIST_PERSIST, RSBAC_LIST_VERSION, RSBAC_MAXNAMELEN, rsbac_root_dev, rsbac_version_t, and rsbac_list_info_t::version.

Referenced by init_module(), register_fd_lists(), rsbac_do_init(), rsbac_init_acl(), rsbac_init_debug(), rsbac_init_pm(), and rsbac_init_rc().

int rsbac_list_remove rsbac_list_handle_t  handle,
void *  desc
 

Definition at line 5892 of file gen_lists.c.

References list_initialized, rsbac_list_reg_head_t::lock, lookup_item(), reg_head, remove_item(), RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, and TRUE.

Referenced by rsbac_acl_remove_acl_entry(), rsbac_acl_remove_group(), rsbac_acl_remove_subject(), rsbac_acl_remove_user(), rsbac_check(), rsbac_list_remove_u32(), rsbac_pm_exists(), rsbac_pm_remove_target(), rsbac_rc_set_item(), rsbac_remove_target(), and rsbac_set_attr().

int rsbac_list_remove_all rsbac_list_handle_t  handle  ) 
 

Definition at line 5941 of file gen_lists.c.

References list_initialized, rsbac_list_reg_head_t::lock, reg_head, remove_all_items(), RSBAC_EINVALIDVALUE, RSBAC_ENOTINITIALIZED, rsbac_list_handle_t, and TRUE.

int rsbac_list_remove_u32 rsbac_list_handle_t  handle,
__u32  desc
 

Definition at line 5931 of file gen_lists.c.

References rsbac_list_handle_t, and rsbac_list_remove().

int rsbac_list_umount kdev_t  kdev  ) 
 

Definition at line 3647 of file gen_lists.c.

Referenced by rsbac_umount().

rsbac_version_t rsbac_list_version void   ) 
 

Definition at line 4463 of file gen_lists.c.

References RSBAC_LIST_VERSION, and rsbac_version_t.

int rsbac_list_write_buffers struct rsbac_list_write_head_t  write_head,
boolean  need_lock
[static]
 

Definition at line 2771 of file gen_lists.c.

References rsbac_list_write_head_t::head, RSBAC_ENOMEM, RSBAC_ENOTWRITABLE, rsbac_kfree(), rsbac_kmalloc(), rsbac_min, rsbac_vkfree(), rsbac_write_close(), rsbac_write_open(), and TRUE.

Referenced by rsbac_list_detach().

int rsbac_list_write_lol_buffers struct rsbac_list_lol_write_head_t  write_head,
boolean  need_lock
[static]
 

Definition at line 3037 of file gen_lists.c.

References rsbac_list_lol_write_head_t::head, RSBAC_ENOMEM, RSBAC_ENOTWRITABLE, rsbac_kfree(), rsbac_kmalloc(), rsbac_min, rsbac_vkfree(), rsbac_write_close(), rsbac_write_open(), and TRUE.

Referenced by rsbac_list_lol_detach().


Variable Documentation

boolean list_initialized = FALSE [static]
 

Definition at line 31 of file gen_lists.c.

Referenced by rsbac_check_lists(), rsbac_list_add_ttl(), rsbac_list_check(), rsbac_list_count(), rsbac_list_destroy(), rsbac_list_detach(), rsbac_list_exist(), rsbac_list_get_all_data(), rsbac_list_get_all_desc(), rsbac_list_get_all_items_ttl(), rsbac_list_get_data_ttl(), rsbac_list_get_desc(), rsbac_list_get_item_size(), rsbac_list_get_max_desc(), rsbac_list_init(), rsbac_list_lol_add_ttl(), rsbac_list_lol_all_subcount(), rsbac_list_lol_check(), rsbac_list_lol_count(), rsbac_list_lol_destroy(), rsbac_list_lol_detach(), rsbac_list_lol_exist(), rsbac_list_lol_get_all_data(), rsbac_list_lol_get_all_desc(), rsbac_list_lol_get_all_items(), rsbac_list_lol_get_all_subdata(), rsbac_list_lol_get_all_subdesc_ttl(), rsbac_list_lol_get_all_subitems_ttl(), rsbac_list_lol_get_data_ttl(), rsbac_list_lol_get_item_size(), rsbac_list_lol_get_subdata_ttl(), rsbac_list_lol_get_subitem_size(), rsbac_list_lol_no_write(), rsbac_list_lol_register(), rsbac_list_lol_remove(), rsbac_list_lol_remove_all(), rsbac_list_lol_subadd_ttl(), rsbac_list_lol_subcount(), rsbac_list_lol_subexist(), rsbac_list_lol_subexist_compare(), rsbac_list_lol_subremove(), rsbac_list_lol_subremove_all(), rsbac_list_lol_subremove_from_all(), rsbac_list_no_write(), rsbac_list_register(), rsbac_list_remove(), and rsbac_list_remove_all().

struct rsbac_list_lol_reg_head_t lol_reg_head [static]
 

Definition at line 30 of file gen_lists.c.

Referenced by add_lol_reg(), lookup_lol_reg(), lookup_lol_reg_name(), remove_lol_reg(), rsbac_check_lists(), rsbac_list_init(), rsbac_list_lol_add_ttl(), rsbac_list_lol_all_subcount(), rsbac_list_lol_check(), rsbac_list_lol_destroy(), rsbac_list_lol_detach(), rsbac_list_lol_exist(), rsbac_list_lol_get_all_data(), rsbac_list_lol_get_all_desc(), rsbac_list_lol_get_all_items(), rsbac_list_lol_get_all_subdata(), rsbac_list_lol_get_all_subdesc_ttl(), rsbac_list_lol_get_all_subitems_ttl(), rsbac_list_lol_get_data_ttl(), rsbac_list_lol_get_subdata_ttl(), rsbac_list_lol_no_write(), rsbac_list_lol_register(), rsbac_list_lol_remove(), rsbac_list_lol_remove_all(), rsbac_list_lol_subadd_ttl(), rsbac_list_lol_subcount(), rsbac_list_lol_subexist(), rsbac_list_lol_subexist_compare(), rsbac_list_lol_subremove(), rsbac_list_lol_subremove_all(), rsbac_list_lol_subremove_from_all(), and rsbac_list_register().

struct rsbac_list_reg_head_t reg_head [static]
 

Definition at line 29 of file gen_lists.c.

Referenced by add_reg(), lookup_reg(), lookup_reg_name(), remove_reg(), rsbac_check_lists(), rsbac_list_add_ttl(), rsbac_list_check(), rsbac_list_destroy(), rsbac_list_detach(), rsbac_list_exist(), rsbac_list_get_all_data(), rsbac_list_get_all_desc(), rsbac_list_get_all_items_ttl(), rsbac_list_get_data_ttl(), rsbac_list_get_desc(), rsbac_list_get_max_desc(), rsbac_list_init(), rsbac_list_lol_get_all_items(), rsbac_list_lol_register(), rsbac_list_no_write(), rsbac_list_register(), rsbac_list_remove(), and rsbac_list_remove_all().


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