lists.h File Reference

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

Go to the source code of this file.

Defines

#define RSBAC_LIST_VERSION   3
#define RSBAC_LIST_MAX_FILENAME   15
#define RSBAC_LIST_MAX_AGE_LIMIT   (3600 * 24 * 366 * 10)
#define RSBAC_LIST_MAX_ITEM_SIZE   (RSBAC_MAX_KMALLOC - 64)
#define RSBAC_LIST_PERSIST   1
#define RSBAC_LIST_IGNORE_OLD   2
#define RSBAC_LIST_IGNORE_UNSUPP_VERSION   4
#define RSBAC_LIST_NO_WRITE   8
#define RSBAC_LIST_BACKUP   16
#define RSBAC_LIST_DEF_DATA   32
#define RSBAC_LIST_DEF_SUBDATA   64

Typedefs

typedef void * rsbac_list_handle_t
typedef __u32 rsbac_list_key_t
typedef int rsbac_list_compare_function_t (void *desc1, void *desc2)
typedef int rsbac_list_data_compare_function_t (void *data1, void *data2)
typedef int rsbac_list_conv_function_t (void *old_desc, void *old_data, void *new_desc, void *new_data)
typedef rsbac_list_conv_function_trsbac_list_get_conv_t (rsbac_version_t old_version)

Functions

int rsbac_list_compare_u32 (void *desc1, void *desc2)
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_list_check (rsbac_list_handle_t handle, int correct)
int rsbac_list_lol_check (rsbac_list_handle_t handle, int correct)
int rsbac_list_add (rsbac_list_handle_t handle, void *desc, void *data)
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_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 (rsbac_list_handle_t handle, 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_add (rsbac_list_handle_t handle, void *desc, void *data)
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_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_list_get_data (rsbac_list_handle_t handle, void *desc, void *data)
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_lol_get_subdata (rsbac_list_handle_t handle, void *desc, void *subdesc, void *subdata)
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_data (rsbac_list_handle_t handle, void *desc, void *data)
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_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_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_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_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)
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)
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_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_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_list_lol_get_all_subdesc (rsbac_list_handle_t handle, void *desc, 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_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_list_get_all_items (rsbac_list_handle_t handle, void **array_p)
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_lol_get_all_subitems (rsbac_list_handle_t handle, void *desc, 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_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)


Define Documentation

#define RSBAC_LIST_BACKUP   16
 

Definition at line 51 of file lists.h.

Referenced by init_module(), register_dev_lists(), register_user_lists(), rsbac_init_acl(), rsbac_init_pm(), rsbac_init_rc(), rsbac_init_um(), rsbac_list_destroy(), rsbac_list_detach(), rsbac_list_lol_destroy(), rsbac_list_lol_detach(), rsbac_list_lol_register(), and rsbac_list_register().

#define RSBAC_LIST_DEF_DATA   32
 

Definition at line 57 of file lists.h.

Referenced by acl_register_fd_lists(), auth_register_fd_lists(), create_lol_reg(), create_reg(), mac_register_fd_lists(), register_dev_lists(), register_fd_lists(), register_ipc_lists(), register_process_lists(), register_user_lists(), rsbac_check_lists(), rsbac_init_acl(), rsbac_init_auth(), rsbac_init_debug(), rsbac_init_mac(), rsbac_init_rc(), rsbac_list_lol_check(), rsbac_ta_list_lol_subadd_ttl(), rsbac_ta_list_lol_subremove(), and rsbac_ta_list_lol_subremove_all().

#define RSBAC_LIST_DEF_SUBDATA   64
 

Definition at line 62 of file lists.h.

Referenced by create_lol_reg(), and rsbac_init_rc().

#define RSBAC_LIST_IGNORE_OLD   2
 

Definition at line 39 of file lists.h.

Referenced by read_list(), and read_lol_list().

#define RSBAC_LIST_IGNORE_UNSUPP_VERSION   4
 

Definition at line 45 of file lists.h.

Referenced by read_list(), and read_lol_list().

#define RSBAC_LIST_MAX_AGE_LIMIT   (3600 * 24 * 366 * 10)
 

Definition at line 27 of file lists.h.

Referenced by rsbac_list_lol_register(), rsbac_list_register(), rsbac_ta_list_add_ttl(), rsbac_ta_list_lol_add_ttl(), and rsbac_ta_list_lol_subadd_ttl().

#define RSBAC_LIST_MAX_FILENAME   15
 

Definition at line 24 of file lists.h.

Referenced by create_lol_reg(), create_reg(), fill_buffer(), fill_lol_buffer(), lookup_lol_reg_name(), and lookup_reg_name().

#define RSBAC_LIST_MAX_ITEM_SIZE   (RSBAC_MAX_KMALLOC - 64)
 

Definition at line 30 of file lists.h.

Referenced by rsbac_list_lol_register(), and rsbac_list_register().

#define RSBAC_LIST_NO_WRITE   8
 

Definition at line 48 of file lists.h.

Referenced by create_lol_reg(), and create_reg().

#define RSBAC_LIST_PERSIST   1
 

Definition at line 36 of file lists.h.

Referenced by acl_register_fd_lists(), auth_register_fd_lists(), init_module(), mac_register_fd_lists(), register_dev_lists(), register_fd_lists(), register_user_lists(), rsbac_check_lists(), rsbac_init_acl(), rsbac_init_debug(), rsbac_init_pm(), rsbac_init_rc(), rsbac_init_um(), rsbac_list_destroy(), rsbac_list_detach(), rsbac_list_lol_destroy(), rsbac_list_lol_detach(), rsbac_list_lol_register(), and rsbac_list_register().

#define RSBAC_LIST_VERSION   3
 

Definition at line 18 of file lists.h.

Referenced by acl_register_fd_lists(), auth_register_fd_lists(), init_module(), mac_register_fd_lists(), register_dev_lists(), register_fd_lists(), register_ipc_lists(), register_process_lists(), register_user_lists(), rsbac_init_acl(), rsbac_init_auth(), rsbac_init_debug(), rsbac_init_mac(), rsbac_init_pm(), rsbac_init_rc(), rsbac_init_um(), rsbac_list_init(), rsbac_list_lol_register(), rsbac_list_register(), and rsbac_list_version().


Typedef Documentation

typedef int rsbac_list_compare_function_t(void *desc1, void *desc2)
 

Definition at line 73 of file lists.h.

typedef int rsbac_list_conv_function_t(void *old_desc, void *old_data, void *new_desc, void *new_data)
 

Definition at line 89 of file lists.h.

typedef int rsbac_list_data_compare_function_t(void *data1, void *data2)
 

Definition at line 84 of file lists.h.

typedef rsbac_list_conv_function_t* rsbac_list_get_conv_t(rsbac_version_t old_version)
 

Definition at line 98 of file lists.h.

typedef void* rsbac_list_handle_t
 

Definition at line 20 of file lists.h.

typedef __u32 rsbac_list_key_t
 

Definition at line 21 of file lists.h.


Function Documentation

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_item_t::lock, rsbac_list_reg_head_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 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_reg_item_t::count, rsbac_list_lol_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_item_t::lock, rsbac_list_lol_reg_head_t::lock, rsbac_list_item_t::max_age, rsbac_list_lol_item_t::max_age, rsbac_list_lol_reg_item_t::name, rsbac_list_item_t::next, rsbac_list_lol_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_reg_head_t::lock, rsbac_list_lol_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_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_lol_reg_head_t::lock, rsbac_list_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().

rsbac_version_t rsbac_list_version void   ) 
 

Definition at line 5964 of file gen_lists.c.

References RSBAC_LIST_VERSION.

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_item_t::lock, rsbac_list_reg_head_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_item_t::lock, rsbac_list_reg_head_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_item_t::lock, rsbac_list_reg_head_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_item_t::lock, rsbac_list_reg_head_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_item_t::lock, rsbac_list_reg_head_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_item_t::lock, rsbac_list_reg_head_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_item_t::lock, rsbac_list_reg_head_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_item_t::lock, rsbac_list_reg_head_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_item_t::lock, rsbac_list_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_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_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_reg_head_t::lock, rsbac_list_lol_reg_item_t::lock, rsbac_list_lol_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_t::lock, lookup_lol_item(), lookup_lol_subitem(), rsbac_list_item_t::max_age, rsbac_list_lol_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_lol_reg_head_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_item_t::lock, rsbac_list_reg_head_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_item_t::lock, rsbac_list_reg_head_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().


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