#include "dazuko_platform.h"
#include "dazuko_xp.h"
#include <rsbac/helpers.h>
#include <rsbac/debug.h>
Go to the source code of this file.
Defines | |
#define | call_xp_sys_hook xp_sys_hook |
#define | call_xp_sys_unhook xp_sys_unhook |
#define | call_xp_print xp_print |
Functions | |
static int | call_xp_init_mutex (struct xp_mutex *mutex) |
static int | call_xp_down (struct xp_mutex *mutex) |
static int | call_xp_up (struct xp_mutex *mutex) |
static int | call_xp_destroy_mutex (struct xp_mutex *mutex) |
static int | call_xp_init_rwlock (struct xp_rwlock *rwlock) |
static int | call_xp_write_lock (struct xp_rwlock *rwlock) |
static int | call_xp_write_unlock (struct xp_rwlock *rwlock) |
static int | call_xp_read_lock (struct xp_rwlock *rlock) |
static int | call_xp_read_unlock (struct xp_rwlock *rlock) |
static int | call_xp_destroy_rwlock (struct xp_rwlock *rwlock) |
static int | call_xp_init_queue (struct xp_queue *queue) |
static int | call_xp_wait_until_condition (struct xp_queue *queue, int(*cfunction)(void *), void *cparam, int allow_interrupt) |
static int | call_xp_notify (struct xp_queue *queue) |
static int | call_xp_destroy_queue (struct xp_queue *queue) |
static void * | call_xp_malloc (size_t size) |
static int | call_xp_free (void *ptr) |
static int | call_xp_copyin (const void *user_src, void *kernel_dest, size_t size) |
static int | call_xp_copyout (const void *kernel_src, void *user_dest, size_t size) |
static int | call_xp_verify_user_writable (const void *user_ptr, size_t size) |
static int | call_xp_verify_user_readable (const void *user_ptr, size_t size) |
static int | call_xp_is_absolute_path (const char *path) |
static int | call_xp_atomic_set (struct xp_atomic *atomic, int value) |
static int | call_xp_atomic_inc (struct xp_atomic *atomic) |
static int | call_xp_atomic_dec (struct xp_atomic *atomic) |
static int | call_xp_atomic_read (struct xp_atomic *atomic) |
static int | call_xp_copy_file (struct xp_file *dest, struct xp_file *src) |
static int | call_xp_compare_file (struct xp_file *file1, struct xp_file *file2) |
static int | call_xp_fill_file_struct (struct dazuko_file_struct *dfs) |
static int | call_xp_id_compare (struct xp_daemon_id *id1, struct xp_daemon_id *id2) |
static int | call_xp_id_free (struct xp_daemon_id *id) |
static struct xp_daemon_id * | call_xp_id_copy (struct xp_daemon_id *id) |
#define call_xp_print xp_print |
Definition at line 55 of file dazuko_call.h.
Referenced by _dazuko_find_slot(), _dazuko_unregister_daemon(), dazuko_exit(), dazuko_get_an_access(), dazuko_init(), dazuko_is_selected(), dazuko_process_access(), dazuko_register_daemon(), dazuko_run_daemon(), and dazuko_set_option().
#define call_xp_sys_hook xp_sys_hook |
#define call_xp_sys_unhook xp_sys_unhook |
static int call_xp_atomic_dec | ( | struct xp_atomic * | atomic | ) | [inline, static] |
Definition at line 377 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_atomic_dec().
Referenced by _dazuko_unregister_daemon().
00378 { 00379 if (atomic == NULL) 00380 { 00381 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_atomic_dec(NULL)\n"); 00382 return -1; 00383 } 00384 00385 return xp_atomic_dec(atomic); 00386 }
static int call_xp_atomic_inc | ( | struct xp_atomic * | atomic | ) | [inline, static] |
Definition at line 366 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_atomic_inc().
Referenced by dazuko_register_daemon().
00367 { 00368 if (atomic == NULL) 00369 { 00370 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_atomic_inc(NULL)\n"); 00371 return -1; 00372 } 00373 00374 return xp_atomic_inc(atomic); 00375 }
static int call_xp_atomic_read | ( | struct xp_atomic * | atomic | ) | [inline, static] |
Definition at line 388 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_atomic_read().
Referenced by _dazuko_unregister_daemon(), dazuko_check_access(), dazuko_exit(), dazuko_register_daemon(), dazuko_sys_check(), dazuko_sys_post(), and get_ready_slot_condition().
00389 { 00390 if (atomic == NULL) 00391 { 00392 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_atomic_read(NULL)\n"); 00393 return -1; 00394 } 00395 00396 return xp_atomic_read(atomic); 00397 }
static int call_xp_atomic_set | ( | struct xp_atomic * | atomic, | |
int | value | |||
) | [inline, static] |
Definition at line 355 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_atomic_set().
Referenced by dazuko_init(), and dazuko_register_daemon().
00356 { 00357 if (atomic == NULL) 00358 { 00359 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_atomic_set(atomic=NULL)\n"); 00360 return -1; 00361 } 00362 00363 return xp_atomic_set(atomic, value); 00364 }
Definition at line 419 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_compare_file().
Referenced by dazuko_get_hash(), dazuko_mark_hash_dirty(), and dazuko_sys_pre().
00420 { 00421 if (file1 == NULL) 00422 { 00423 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_compare_file(file1=NULL)\n"); 00424 return -1; 00425 } 00426 00427 if (file2 == NULL) 00428 { 00429 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_compare_file(file2=NULL)\n"); 00430 return -1; 00431 } 00432 00433 return xp_compare_file(file1, file2); 00434 }
Definition at line 402 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_copy_file().
Referenced by dazuko_add_hash().
00403 { 00404 if (dest == NULL) 00405 { 00406 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_copy_file(dest=NULL)\n"); 00407 return -1; 00408 } 00409 00410 if (src == NULL) 00411 { 00412 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_copy_file(src=NULL)\n"); 00413 return -1; 00414 } 00415 00416 return xp_copy_file(dest, src); 00417 }
static int call_xp_copyin | ( | const void * | user_src, | |
void * | kernel_dest, | |||
size_t | size | |||
) | [inline, static] |
Definition at line 258 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_copyin().
Referenced by dazuko_handle_user_request(), dazuko_handle_user_request_compat1(), and dazuko_handle_user_request_compat12().
00259 { 00260 if (user_src == NULL) 00261 { 00262 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_copyin(user_src=NULL)\n"); 00263 return -1; 00264 } 00265 00266 if (kernel_dest == NULL) 00267 { 00268 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_copyin(kernel_dest=NULL)\n"); 00269 return -1; 00270 } 00271 00272 if (size < 1) 00273 { 00274 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_copyin(size=%d)\n", size); 00275 return 0; 00276 } 00277 00278 return xp_copyin(user_src, kernel_dest, size); 00279 }
static int call_xp_copyout | ( | const void * | kernel_src, | |
void * | user_dest, | |||
size_t | size | |||
) | [inline, static] |
Definition at line 281 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_copyout().
Referenced by dazuko_handle_user_request(), dazuko_handle_user_request_compat1(), and dazuko_handle_user_request_compat12().
00282 { 00283 if (kernel_src == NULL) 00284 { 00285 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_copyout(kernel_src=NULL)\n"); 00286 return -1; 00287 } 00288 00289 if (user_dest == NULL) 00290 { 00291 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_copyout(user_dest=NULL)\n"); 00292 return -1; 00293 } 00294 00295 if (size < 1) 00296 { 00297 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_copyout(size=%d)\n", size); 00298 return 0; 00299 } 00300 00301 return xp_copyout(kernel_src, user_dest, size); 00302 }
static int call_xp_destroy_mutex | ( | struct xp_mutex * | mutex | ) | [inline, static] |
Definition at line 93 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_destroy_mutex().
Referenced by dazuko_exit().
00094 { 00095 if (mutex == NULL) 00096 { 00097 rsbac_printk(KERN_WARNING "dazuko: warning: xp_destroy_mutex(NULL)\n"); 00098 return -1; 00099 } 00100 00101 return xp_destroy_mutex(mutex); 00102 }
static int call_xp_destroy_queue | ( | struct xp_queue * | queue | ) | [inline, static] |
Definition at line 215 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_destroy_queue().
Referenced by dazuko_exit().
00216 { 00217 if (queue == NULL) 00218 { 00219 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_destroy_queue(NULL)\n"); 00220 return -1; 00221 } 00222 00223 return xp_destroy_queue(queue); 00224 }
static int call_xp_destroy_rwlock | ( | struct xp_rwlock * | rwlock | ) | [inline, static] |
Definition at line 162 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_destroy_rwlock().
Referenced by dazuko_exit().
00163 { 00164 if (rwlock == NULL) 00165 { 00166 rsbac_printk(KERN_WARNING "dazuko: warning: xp_destroy_rwlock(NULL)\n"); 00167 return -1; 00168 } 00169 00170 return xp_destroy_rwlock(rwlock); 00171 }
static int call_xp_down | ( | struct xp_mutex * | mutex | ) | [inline, static] |
Definition at line 71 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_down().
Referenced by _dazuko_find_slot(), dazuko_change_slot_state(), dazuko_check_access(), dazuko_find_slot_and_slotlist(), dazuko_get_new_unique(), dazuko_is_our_daemon(), dazuko_register_daemon(), dazuko_run_daemon(), dazuko_run_daemon_on_slotlist(), dazuko_setup_amc_cache(), dazuko_slot_state(), dazuko_unregister_trusted_daemon(), and find_slot_list_from_groupname().
00072 { 00073 if (mutex == NULL) 00074 { 00075 rsbac_printk(KERN_WARNING "dazuko: warning: xp_down(NULL)\n"); 00076 return -1; 00077 } 00078 00079 return xp_down(mutex); 00080 }
static int call_xp_fill_file_struct | ( | struct dazuko_file_struct * | dfs | ) | [inline, static] |
Definition at line 439 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_fill_file_struct().
Referenced by dazuko_should_scan().
00440 { 00441 if (dfs == NULL) 00442 { 00443 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_fill_file_struct(NULL)\n"); 00444 return -1; 00445 } 00446 00447 return xp_fill_file_struct(dfs); 00448 }
static int call_xp_free | ( | void * | ptr | ) | [inline, static] |
Definition at line 247 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_free().
Referenced by _remove_trusted_node(), dazuko_add_trusted_daemon(), dazuko_exit(), dazuko_handle_request(), dazuko_handle_request_add_path(), dazuko_handle_request_basic(), dazuko_handle_request_get_an_access(), dazuko_handle_request_initialize_cache(), dazuko_handle_request_register(), dazuko_handle_request_register_trusted(), dazuko_handle_request_remove_trusted(), dazuko_handle_request_return_an_access(), dazuko_handle_request_set_access_mask(), dazuko_handle_user_request(), dazuko_handle_user_request_compat1(), dazuko_handle_user_request_compat12(), dazuko_insert_path_fs(), dazuko_is_selected(), dazuko_register_daemon(), dazuko_remove_all_hash(), dazuko_remove_all_paths(), dazuko_remove_all_trusted(), dazuko_remove_trusted(), and dazuko_sys_post().
00248 { 00249 if (ptr == NULL) 00250 { 00251 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_free(NULL)\n"); 00252 return 0; 00253 } 00254 00255 return xp_free(ptr); 00256 }
static int call_xp_id_compare | ( | struct xp_daemon_id * | id1, | |
struct xp_daemon_id * | id2 | |||
) | [inline, static] |
Definition at line 453 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_id_compare().
Referenced by dazuko_add_trusted_daemon(), dazuko_is_our_daemon(), and dazuko_unregister_trusted_daemon().
00454 { 00455 if (id1 == NULL) 00456 { 00457 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_id_compare(id1=NULL)\n"); 00458 return -1; 00459 } 00460 00461 if (id2 == NULL) 00462 { 00463 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_id_compare(id2=NULL)\n"); 00464 return -1; 00465 } 00466 00467 return xp_id_compare(id1, id2); 00468 }
static struct xp_daemon_id* call_xp_id_copy | ( | struct xp_daemon_id * | id | ) | [inline, static] |
Definition at line 481 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_id_copy().
Referenced by dazuko_add_trusted_daemon(), dazuko_handle_request(), dazuko_handle_request_add_path(), dazuko_handle_request_basic(), dazuko_handle_request_get_an_access(), dazuko_handle_request_initialize_cache(), dazuko_handle_request_register(), dazuko_handle_request_remove_trusted(), dazuko_handle_request_return_an_access(), dazuko_handle_request_set_access_mask(), dazuko_handle_user_request_compat1(), dazuko_handle_user_request_compat12(), dazuko_is_our_daemon(), dazuko_register_daemon(), and dazuko_unregister_daemon().
00482 { 00483 struct xp_daemon_id *ptr; 00484 00485 if (id == NULL) 00486 { 00487 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_id_copy(NULL)\n"); 00488 return NULL; 00489 } 00490 00491 ptr = xp_id_copy(id); 00492 00493 if (ptr == NULL) 00494 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_id_copy() -> NULL\n"); 00495 00496 return ptr; 00497 }
static int call_xp_id_free | ( | struct xp_daemon_id * | id | ) | [inline, static] |
Definition at line 470 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_id_free().
Referenced by _dazuko_unregister_daemon(), _remove_trusted_node(), dazuko_handle_request(), dazuko_handle_request_add_path(), dazuko_handle_request_basic(), dazuko_handle_request_get_an_access(), dazuko_handle_request_initialize_cache(), dazuko_handle_request_register(), dazuko_handle_request_remove_trusted(), dazuko_handle_request_return_an_access(), dazuko_handle_user_request_compat1(), dazuko_handle_user_request_compat12(), dazuko_is_our_daemon(), dazuko_remove_all_trusted(), dazuko_remove_trusted(), and dazuko_unregister_daemon().
00471 { 00472 if (id == NULL) 00473 { 00474 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_id_free(NULL)\n"); 00475 return 0; 00476 } 00477 00478 return xp_id_free(id); 00479 }
static int call_xp_init_mutex | ( | struct xp_mutex * | mutex | ) | [inline, static] |
Definition at line 60 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_init_mutex().
Referenced by dazuko_init(), and dazuko_register_daemon().
00061 { 00062 if (mutex == NULL) 00063 { 00064 rsbac_printk(KERN_WARNING "dazuko: xp_init_mutex(NULL)\n"); 00065 return -1; 00066 } 00067 00068 return xp_init_mutex(mutex); 00069 }
static int call_xp_init_queue | ( | struct xp_queue * | queue | ) | [inline, static] |
Definition at line 176 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_init_queue().
Referenced by dazuko_init(), and dazuko_register_daemon().
00177 { 00178 if (queue == NULL) 00179 { 00180 rsbac_printk(KERN_WARNING "dazuko: warning: xp_init_queue(NULL)\n"); 00181 return -1; 00182 } 00183 00184 return xp_init_queue(queue); 00185 }
static int call_xp_init_rwlock | ( | struct xp_rwlock * | rwlock | ) | [inline, static] |
Definition at line 107 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_init_rwlock().
Referenced by dazuko_init(), and dazuko_register_daemon().
00108 { 00109 if (rwlock == NULL) 00110 { 00111 rsbac_printk(KERN_WARNING "dazuko: warning: xp_init_rwlock(NULL)\n"); 00112 return -1; 00113 } 00114 00115 return xp_init_rwlock(rwlock); 00116 }
static int call_xp_is_absolute_path | ( | const char * | path | ) | [inline, static] |
Definition at line 341 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_is_absolute_path().
Referenced by dazuko_insert_path_fs().
00342 { 00343 if (path == NULL) 00344 { 00345 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_is_absolute_path(NULL)\n"); 00346 return 0; 00347 } 00348 00349 return xp_is_absolute_path(path); 00350 }
static void* call_xp_malloc | ( | size_t | size | ) | [inline, static] |
Definition at line 229 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_malloc().
Referenced by dazuko_add_hash(), dazuko_add_trusted_daemon(), dazuko_get_value(), dazuko_handle_user_request(), dazuko_handle_user_request_compat1(), dazuko_handle_user_request_compat12(), dazuko_insert_path_fs(), dazuko_register_daemon(), dazuko_strdup(), and dazuko_sys_pre().
00230 { 00231 void *ptr; 00232 00233 if (size < 1) 00234 { 00235 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_malloc(%d)\n", size); 00236 return NULL; 00237 } 00238 00239 ptr = xp_malloc(size); 00240 00241 if (ptr == NULL) 00242 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_malloc(%d) -> NULL\n", size); 00243 00244 return ptr; 00245 }
static int call_xp_notify | ( | struct xp_queue * | queue | ) | [inline, static] |
Definition at line 204 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_notify().
Referenced by __dazuko_change_slot_state(), _dazuko_unregister_daemon(), dazuko_get_an_access(), dazuko_handle_user_request_compat1(), dazuko_return_access(), dazuko_run_daemon_on_slotlist(), and dazuko_state_error().
00205 { 00206 if (queue == NULL) 00207 { 00208 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_notify(NULL)\n"); 00209 return -1; 00210 } 00211 00212 return xp_notify(queue); 00213 }
static int call_xp_read_lock | ( | struct xp_rwlock * | rlock | ) | [inline, static] |
Definition at line 140 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_read_lock().
Referenced by dazuko_add_trusted_daemon(), dazuko_is_our_daemon(), dazuko_is_selected(), dazuko_remove_all_trusted(), dazuko_remove_trusted(), dazuko_sys_pre(), and dazuko_unregister_trusted_daemon().
00141 { 00142 if (rlock == NULL) 00143 { 00144 rsbac_printk(KERN_WARNING "dazuko: warning: xp_read_lock(NULL)\n"); 00145 return -1; 00146 } 00147 00148 return xp_read_lock(rlock); 00149 }
static int call_xp_read_unlock | ( | struct xp_rwlock * | rlock | ) | [inline, static] |
Definition at line 151 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_read_unlock().
Referenced by dazuko_add_trusted_daemon(), dazuko_is_our_daemon(), dazuko_is_selected(), dazuko_remove_all_trusted(), dazuko_remove_trusted(), and dazuko_unregister_trusted_daemon().
00152 { 00153 if (rlock == NULL) 00154 { 00155 rsbac_printk(KERN_WARNING "dazuko: warning: xp_read_unlock(NULL)\n"); 00156 return -1; 00157 } 00158 00159 return xp_read_unlock(rlock); 00160 }
static int call_xp_up | ( | struct xp_mutex * | mutex | ) | [inline, static] |
Definition at line 82 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_up().
Referenced by _dazuko_find_slot(), _dazuko_unregister_daemon(), dazuko_change_slot_state(), dazuko_check_access(), dazuko_find_slot_and_slotlist(), dazuko_get_new_unique(), dazuko_handle_request(), dazuko_handle_request_get_an_access(), dazuko_handle_user_request_compat1(), dazuko_handle_user_request_compat12(), dazuko_is_our_daemon(), dazuko_register_daemon(), dazuko_return_access(), dazuko_run_daemon(), dazuko_run_daemon_on_slotlist(), dazuko_setup_amc_cache(), dazuko_slot_state(), dazuko_unregister_trusted_daemon(), and find_slot_list_from_groupname().
00083 { 00084 if (mutex == NULL) 00085 { 00086 rsbac_printk(KERN_WARNING "dazuko: warning: xp_up(NULL)\n"); 00087 return -1; 00088 } 00089 00090 return xp_up(mutex); 00091 }
static int call_xp_verify_user_readable | ( | const void * | user_ptr, | |
size_t | size | |||
) | [inline, static] |
Definition at line 321 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_verify_user_readable().
Referenced by dazuko_handle_user_request_compat1(), and dazuko_handle_user_request_compat12().
00322 { 00323 if (user_ptr == NULL) 00324 { 00325 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_verify_user_readable(user_ptr=NULL)\n"); 00326 return -1; 00327 } 00328 00329 if (size < 1) 00330 { 00331 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_verify_user_readable(size=%d)\n", size); 00332 return -1; 00333 } 00334 00335 return xp_verify_user_readable(user_ptr, size); 00336 }
static int call_xp_verify_user_writable | ( | const void * | user_ptr, | |
size_t | size | |||
) | [inline, static] |
Definition at line 304 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_verify_user_writable().
Referenced by dazuko_handle_user_request_compat1(), and dazuko_handle_user_request_compat12().
00305 { 00306 if (user_ptr == NULL) 00307 { 00308 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_verify_user_writable(user_ptr=NULL)\n"); 00309 return -1; 00310 } 00311 00312 if (size < 1) 00313 { 00314 rsbac_printk(KERN_WARNING, "dazuko: warning: xp_verify_user_writable(size=%d)\n", size); 00315 return -1; 00316 } 00317 00318 return xp_verify_user_writable(user_ptr, size); 00319 }
static int call_xp_wait_until_condition | ( | struct xp_queue * | queue, | |
int(*)(void *) | cfunction, | |||
void * | cparam, | |||
int | allow_interrupt | |||
) | [inline, static] |
Definition at line 187 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_wait_until_condition().
Referenced by dazuko_get_an_access(), dazuko_return_access(), and dazuko_run_daemon_on_slotlist().
00188 { 00189 if (queue == NULL) 00190 { 00191 rsbac_printk(KERN_WARNING "dazuko: warning: xp_wait_until_condition(queue=NULL)\n"); 00192 return -1; 00193 } 00194 00195 if (cfunction == NULL) 00196 { 00197 rsbac_printk(KERN_WARNING "dazuko: warning: xp_wait_until_condition(cfunction=NULL)\n"); 00198 return -1; 00199 } 00200 00201 return xp_wait_until_condition(queue, cfunction, cparam, allow_interrupt); 00202 }
static int call_xp_write_lock | ( | struct xp_rwlock * | rwlock | ) | [inline, static] |
Definition at line 118 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_write_lock().
Referenced by dazuko_add_hash(), dazuko_get_hash(), dazuko_mark_hash_dirty(), dazuko_remove_all_hash(), and dazuko_remove_all_paths().
00119 { 00120 if (rwlock == NULL) 00121 { 00122 rsbac_printk(KERN_WARNING "dazuko: warning: xp_write_lock(NULL)\n"); 00123 return -1; 00124 } 00125 00126 return xp_write_lock(rwlock); 00127 }
static int call_xp_write_unlock | ( | struct xp_rwlock * | rwlock | ) | [inline, static] |
Definition at line 129 of file dazuko_call.h.
References NULL, rsbac_printk(), and xp_write_unlock().
Referenced by dazuko_add_hash(), dazuko_get_hash(), dazuko_remove_all_hash(), and dazuko_remove_all_paths().
00130 { 00131 if (rwlock == NULL) 00132 { 00133 rsbac_printk(KERN_WARNING "dazuko: warning: xp_write_unlock(NULL)\n"); 00134 return -1; 00135 } 00136 00137 return xp_write_unlock(rwlock); 00138 }