#include "dazuko_rsbac.h"
#include "dazuko_xp.h"
#include "dazukoio.h"
#include <linux/init.h>
#include <linux/unistd.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/random.h>
#include <linux/string.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/version.h>
#include <asm/uaccess.h>
#include <rsbac/types.h>
#include <rsbac/aci.h>
#include <rsbac/adf.h>
#include <rsbac/adf_main.h>
#include <rsbac/debug.h>
#include <rsbac/error.h>
#include <rsbac/helpers.h>
#include <rsbac/getname.h>
#include <rsbac/net_getname.h>
#include <rsbac/rkmem.h>
#include <rsbac/proc_fs.h>
Go to the source code of this file.
Functions | |
ssize_t | linux_dazuko_device_read (struct file *file, char *buffer, size_t length, loff_t *pos) |
ssize_t | linux_dazuko_device_write (struct file *file, const char *buffer, size_t length, loff_t *pos) |
int | linux_dazuko_device_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long param) |
int | linux_dazuko_device_open (struct inode *inode, struct file *file) |
int | linux_dazuko_device_release (struct inode *inode, struct file *file) |
static int | reset_scanned (struct rsbac_fs_file_t file) |
int | xp_init_mutex (struct xp_mutex *mutex) |
int | xp_down (struct xp_mutex *mutex) |
int | xp_up (struct xp_mutex *mutex) |
int | xp_destroy_mutex (struct xp_mutex *mutex) |
int | xp_init_rwlock (struct xp_rwlock *rwlock) |
int | xp_write_lock (struct xp_rwlock *rwlock) |
int | xp_write_unlock (struct xp_rwlock *rwlock) |
int | xp_read_lock (struct xp_rwlock *rlock) |
int | xp_read_unlock (struct xp_rwlock *rlock) |
int | xp_destroy_rwlock (struct xp_rwlock *rwlock) |
int | xp_init_queue (struct xp_queue *queue) |
int | xp_wait_until_condition (struct xp_queue *queue, int(*cfunction)(void *), void *cparam, int allow_interrupt) |
int | xp_notify (struct xp_queue *queue) |
int | xp_destroy_queue (struct xp_queue *queue) |
void * | xp_malloc (size_t size) |
int | xp_free (void *ptr) |
int | xp_copyin (const void *user_src, void *kernel_dest, size_t size) |
int | xp_copyout (const void *kernel_src, void *user_dest, size_t size) |
int | xp_verify_user_writable (const void *user_ptr, size_t size) |
int | xp_verify_user_readable (const void *user_ptr, size_t size) |
int | xp_is_absolute_path (const char *path) |
int | xp_atomic_set (struct xp_atomic *atomic, int value) |
int | xp_atomic_inc (struct xp_atomic *atomic) |
int | xp_atomic_dec (struct xp_atomic *atomic) |
int | xp_atomic_read (struct xp_atomic *atomic) |
int | xp_copy_file (struct xp_file *dest, struct xp_file *src) |
int | xp_compare_file (struct xp_file *file1, struct xp_file *file2) |
int | xp_fill_file_struct (struct dazuko_file_struct *dfs) |
static int | dazuko_file_struct_cleanup (struct dazuko_file_struct **dfs) |
int | xp_id_compare (struct xp_daemon_id *id1, struct xp_daemon_id *id2) |
int | xp_id_free (struct xp_daemon_id *id) |
xp_daemon_id * | xp_id_copy (struct xp_daemon_id *id) |
int | xp_sys_hook () |
int | xp_sys_unhook () |
int | xp_print (const char *fmt,...) |
int __init | rsbac_init_daz (void) |
enum rsbac_adf_req_ret_t | rsbac_adf_request_daz (enum rsbac_adf_request_t request, rsbac_pid_t caller_pid, enum rsbac_target_t target, union rsbac_target_id_t tid, enum rsbac_attribute_t attr, union rsbac_attribute_value_t attr_val, rsbac_uid_t owner) |
int | rsbac_adf_set_attr_daz (enum rsbac_adf_request_t request, rsbac_pid_t caller_pid, enum rsbac_target_t target, union rsbac_target_id_t tid, enum rsbac_target_t new_target, union rsbac_target_id_t new_tid, enum rsbac_attribute_t attr, union rsbac_attribute_value_t attr_val, rsbac_uid_t owner) |
Variables | |
xp_atomic | active |
static int | dev_major = -1 |
static struct file_operations | fops |
|
Definition at line 393 of file daz_main.c. References NULL, and xp_free(). Referenced by rsbac_adf_request_daz(), and rsbac_adf_set_attr_daz(). |
|
Definition at line 635 of file daz_main.c. References dazuko_handle_user_request_compat12(), xp_daemon_id::file, xp_daemon_id::pid, and xp_print(). |
|
Definition at line 549 of file daz_main.c. References DPRINT. |
|
Definition at line 556 of file daz_main.c. References dazuko_bzero(), dazuko_snprintf(), dev_major, DPRINT, xp_copyout(), and xp_print(). |
|
Definition at line 665 of file daz_main.c. References dazuko_unregister_daemon(), DPRINT, xp_daemon_id::file, and xp_daemon_id::pid. |
|
Definition at line 598 of file daz_main.c. References dazuko_get_value(), dazuko_handle_user_request(), xp_daemon_id::file, NULL, xp_daemon_id::pid, xp_copyin(), xp_free(), and xp_print(). |
|
Definition at line 127 of file daz_main.c. Referenced by rsbac_adf_set_attr_daz(). |
|
|
|
Definition at line 685 of file daz_main.c. References dazuko_init(), RSBAC_EREINIT, and rsbac_is_initialized(). Referenced by rsbac_do_init(). |
|
Definition at line 302 of file daz_main.c. Referenced by call_xp_atomic_dec(). |
|
Definition at line 289 of file daz_main.c. Referenced by call_xp_atomic_inc(). |
|
Definition at line 315 of file daz_main.c. Referenced by call_xp_atomic_read(). |
|
Definition at line 283 of file daz_main.c. Referenced by call_xp_atomic_set(). |
|
Definition at line 328 of file daz_main.c. Referenced by call_xp_compare_file(). |
|
Definition at line 323 of file daz_main.c. Referenced by call_xp_copy_file(). |
|
Definition at line 252 of file daz_main.c. Referenced by call_xp_copyin(), and linux_dazuko_device_write(). |
|
Definition at line 257 of file daz_main.c. Referenced by call_xp_copyout(), and linux_dazuko_device_read(). |
|
Definition at line 159 of file daz_main.c. Referenced by call_xp_destroy_mutex(). |
|
Definition at line 233 of file daz_main.c. Referenced by call_xp_destroy_queue(). |
|
Definition at line 197 of file daz_main.c. Referenced by call_xp_destroy_rwlock(). |
|
Definition at line 147 of file daz_main.c. Referenced by call_xp_down(). |
|
Definition at line 333 of file daz_main.c. Referenced by call_xp_fill_file_struct(). |
|
Definition at line 246 of file daz_main.c. Referenced by call_xp_free(), dazuko_file_struct_cleanup(), dazuko_is_selected(), linux_dazuko_device_write(), rsbac_adf_request_daz(), rsbac_adf_set_attr_daz(), xp_id_free(), and xp_print(). |
|
Definition at line 419 of file daz_main.c. Referenced by call_xp_id_compare(). |
|
Definition at line 442 of file daz_main.c. Referenced by call_xp_id_copy(). |
|
Definition at line 435 of file daz_main.c. Referenced by call_xp_id_free(). |
|
Definition at line 136 of file daz_main.c. Referenced by call_xp_init_mutex(). |
|
Definition at line 205 of file daz_main.c. Referenced by call_xp_init_queue(). |
|
Definition at line 167 of file daz_main.c. Referenced by call_xp_init_rwlock(). |
|
Definition at line 275 of file daz_main.c. Referenced by call_xp_is_absolute_path(). |
|
Definition at line 241 of file daz_main.c. Referenced by call_xp_malloc(), dazuko_is_selected(), rsbac_adf_request_daz(), rsbac_adf_set_attr_daz(), xp_fill_file_struct(), xp_id_copy(), and xp_print(). |
|
Definition at line 227 of file daz_main.c. Referenced by call_xp_notify(). |
|
|
Definition at line 185 of file daz_main.c. Referenced by call_xp_read_lock(). |
|
Definition at line 191 of file daz_main.c. Referenced by call_xp_read_unlock(). |
|
Definition at line 463 of file daz_main.c. |
|
Definition at line 493 of file daz_main.c. |
|
Definition at line 153 of file daz_main.c. Referenced by call_xp_up(). |
|
Definition at line 267 of file daz_main.c. Referenced by call_xp_verify_user_readable(). |
|
Definition at line 262 of file daz_main.c. Referenced by call_xp_verify_user_writable(). |
|
Definition at line 211 of file daz_main.c. Referenced by call_xp_wait_until_condition(). |
|
Definition at line 173 of file daz_main.c. Referenced by call_xp_write_lock(). |
|
Definition at line 179 of file daz_main.c. Referenced by call_xp_write_unlock(). |
|
|
|
Definition at line 81 of file daz_main.c. Referenced by linux_dazuko_device_read(), xp_sys_hook(), and xp_sys_unhook(). |
|
Initial value: { read: linux_dazuko_device_read, write: linux_dazuko_device_write, ioctl: linux_dazuko_device_ioctl, open: linux_dazuko_device_open, release: linux_dazuko_device_release, } Definition at line 83 of file daz_main.c. Referenced by xp_sys_hook(). |