/daten/src/linux-2.4.27-rsbac-v1.2.3/include/rsbac/lists.h File Reference

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

Go to the source code of this file.

Data Structures

struct  rsbac_list_info_t
struct  rsbac_list_lol_info_t

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, 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_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_list_add_u32 (rsbac_list_handle_t handle, __u32 desc, void *data)
int rsbac_list_add_ttl (rsbac_list_handle_t handle, rsbac_time_t ttl, void *desc, void *data)
int rsbac_list_add_ttl_u32 (rsbac_list_handle_t handle, rsbac_time_t ttl, __u32 desc, void *data)
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_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_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_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_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 (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_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_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_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_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_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_get_desc (rsbac_list_handle_t handle, void *desc, void *data, rsbac_list_data_compare_function_t compare)
int rsbac_list_get_desc_u32 (rsbac_list_handle_t handle, void *desc, __u32 data)
int rsbac_list_get_max_desc (rsbac_list_handle_t handle, void *desc)
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_exist (rsbac_list_handle_t handle, void *desc)
int rsbac_list_lol_exist_u32 (rsbac_list_handle_t handle, __u32 desc)
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)
long rsbac_list_count (rsbac_list_handle_t handle)
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_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_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_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 (rsbac_list_handle_t handle, void **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_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_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(), rsbac_do_init(), rsbac_init_acl(), rsbac_init_pm(), rsbac_init_rc(), 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_fd_lists(), rsbac_check_lists(), rsbac_do_init(), rsbac_init_acl(), rsbac_init_auth(), rsbac_init_debug(), rsbac_init_mac(), rsbac_init_rc(), rsbac_list_lol_check(), rsbac_list_lol_subadd_ttl(), and rsbac_list_lol_subremove().

#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_add_ttl(), rsbac_list_lol_add_ttl(), rsbac_list_lol_register(), rsbac_list_lol_subadd_ttl(), and rsbac_list_register().

#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_fd_lists(), rsbac_check_lists(), rsbac_do_init(), rsbac_init_acl(), rsbac_init_debug(), rsbac_init_pm(), rsbac_init_rc(), 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_fd_lists(), rsbac_do_init(), rsbac_init_acl(), rsbac_init_auth(), rsbac_init_debug(), rsbac_init_mac(), rsbac_init_pm(), rsbac_init_rc(), 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.

Referenced by create_lol_reg(), create_reg(), lookup_lol_subitem_compare(), lookup_lol_subitem_user_compare(), rsbac_list_lol_register(), rsbac_list_lol_subexist_compare(), rsbac_list_lol_subexist_compare_u32(), and rsbac_list_register().

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.

Referenced by dev_get_conv(), dev_get_subconv(), gen_dev_get_conv(), gen_fd_get_conv(), read_list(), read_lol_list(), and role_get_conv().

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

Definition at line 84 of file lists.h.

Referenced by lookup_item_data(), lookup_item_data_compare(), and rsbac_list_get_desc().

typedef rsbac_list_conv_function_t* rsbac_list_get_conv_t(rsbac_version_t old_version)
 

Definition at line 98 of file lists.h.

Referenced by create_lol_reg(), create_reg(), rsbac_list_lol_register(), and rsbac_list_register().

typedef void* rsbac_list_handle_t
 

Definition at line 20 of file lists.h.

Referenced by copy_pp_cap_set_item_handle(), copy_pp_tru_set_item_handle(), rsbac_list_add(), rsbac_list_add_ttl(), rsbac_list_add_ttl_u32(), rsbac_list_add_u32(), rsbac_list_check(), rsbac_list_count(), rsbac_list_destroy(), rsbac_list_detach(), rsbac_list_exist(), rsbac_list_exist_u32(), rsbac_list_get_all_data(), rsbac_list_get_all_desc(), rsbac_list_get_all_items(), rsbac_list_get_all_items_ttl(), rsbac_list_get_data(), rsbac_list_get_data_ttl(), rsbac_list_get_data_ttl_u32(), rsbac_list_get_data_u32(), rsbac_list_get_desc(), rsbac_list_get_item_size(), rsbac_list_get_max_desc(), rsbac_list_lol_add(), rsbac_list_lol_add_ttl(), rsbac_list_lol_add_ttl_u32(), rsbac_list_lol_add_u32(), 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_exist_u32(), 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(), rsbac_list_lol_get_all_subdesc_ttl(), rsbac_list_lol_get_all_subitems(), rsbac_list_lol_get_all_subitems_ttl(), rsbac_list_lol_get_data(), rsbac_list_lol_get_data_ttl(), rsbac_list_lol_get_data_ttl_u32(), rsbac_list_lol_get_data_u32(), rsbac_list_lol_get_item_size(), rsbac_list_lol_get_subdata(), rsbac_list_lol_get_subdata_ttl(), rsbac_list_lol_get_subdata_ttl_u32(), rsbac_list_lol_get_subdata_u32(), 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_remove_u32(), rsbac_list_lol_subadd(), rsbac_list_lol_subadd_ttl(), rsbac_list_lol_subadd_ttl_u32(), rsbac_list_lol_subadd_u32(), rsbac_list_lol_subcount(), rsbac_list_lol_subexist(), rsbac_list_lol_subexist_compare(), rsbac_list_lol_subexist_compare_u32(), rsbac_list_lol_subexist_u32(), rsbac_list_lol_subremove(), rsbac_list_lol_subremove_all(), rsbac_list_lol_subremove_all_u32(), rsbac_list_lol_subremove_from_all(), rsbac_list_lol_subremove_from_all_u32(), rsbac_list_lol_subremove_u32(), rsbac_list_no_write(), rsbac_list_register(), rsbac_list_remove(), rsbac_list_remove_all(), and rsbac_list_remove_u32().

typedef __u32 rsbac_list_key_t
 

Definition at line 21 of file lists.h.

Referenced by rsbac_list_destroy(), rsbac_list_detach(), rsbac_list_lol_destroy(), rsbac_list_lol_detach(), rsbac_list_lol_no_write(), and rsbac_list_no_write().


Function Documentation

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_desc_u32 rsbac_list_handle_t  handle,
void *  desc,
__u32  data
 

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

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_reg_head_t::lock, rsbac_list_lol_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_reg_head_t::lock, rsbac_list_lol_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_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_lol_reg_head_t::lock, rsbac_list_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().

rsbac_version_t rsbac_list_version void   ) 
 

Definition at line 4463 of file gen_lists.c.

References RSBAC_LIST_VERSION, and rsbac_version_t.


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