/daten/src/linux-2.4.27-rsbac-v1.2.3/rsbac/adf/daz/dazukoio.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include "dazukoio_xp.h"
#include "dazukoio.h"
#include "dazukoio_compat12.h"

Go to the source code of this file.

Defines

#define ITOA_SIZE   32

Functions

char char_to_hex (char c)
void unescape_string (char *string)
int get_value (const char *key, const char *string, char *buffer, size_t buffer_size)
int dazukoRegister (const char *groupName, const char *mode)
int dazukoRegister_TS (dazuko_id_t **dazuko_id, const char *groupName, const char *mode)
int dazukoSetAccessMask (unsigned long accessMask)
int dazukoSetAccessMask_TS (dazuko_id_t *dazuko_id, unsigned long accessMask)
int dazuko_set_path (dazuko_id_t *dazuko_id, const char *path, int type)
int dazukoAddIncludePath (const char *path)
int dazukoAddIncludePath_TS (dazuko_id_t *dazuko_id, const char *path)
int dazukoAddExcludePath (const char *path)
int dazukoAddExcludePath_TS (dazuko_id_t *dazuko_id, const char *path)
int dazukoRemoveAllPaths (void)
int dazukoRemoveAllPaths_TS (dazuko_id_t *dazuko_id)
int dazukoGetAccess (struct dazuko_access **acc)
int dazukoGetAccess_TS (dazuko_id_t *dazuko_id, struct dazuko_access **acc)
int dazukoReturnAccess (struct dazuko_access **acc)
int dazukoReturnAccess_TS (dazuko_id_t *dazuko_id, struct dazuko_access **acc)
int dazukoUnregister (void)
int dazukoUnregister_TS (dazuko_id_t **dazuko_id)

Variables

dazuko_id_t_GLOBAL_DAZUKO = NULL
char _GLOBAL_DAZUKO_COMPAT12 = 0


Define Documentation

#define ITOA_SIZE   32
 

Definition at line 48 of file dazukoio.c.

Referenced by dazuko_set_path(), dazukoGetAccess_TS(), dazukoRegister_TS(), dazukoRemoveAllPaths_TS(), dazukoReturnAccess_TS(), dazukoSetAccessMask_TS(), and dazukoUnregister_TS().


Function Documentation

char char_to_hex char  c  )  [inline, static]
 

Definition at line 56 of file dazukoio.c.

Referenced by unescape_string().

int dazuko_set_path dazuko_id_t dazuko_id,
const char *  path,
int  type
[static]
 

Definition at line 404 of file dazukoio.c.

References dazuko_id_t, dazuko_id::dev_major, dazuko_id::device, dazuko_id::id, ITOA_SIZE, and NULL.

Referenced by dazukoAddExcludePath_TS(), and dazukoAddIncludePath_TS().

int dazukoAddExcludePath const char *  path  ) 
 

Definition at line 474 of file dazukoio.c.

References _GLOBAL_DAZUKO, and dazukoAddExcludePath_TS().

int dazukoAddExcludePath_TS dazuko_id_t dazuko_id,
const char *  path
 

Definition at line 479 of file dazukoio.c.

References _GLOBAL_DAZUKO_COMPAT12, ADD_EXCLUDE_PATH, dazuko_id_t, dazuko_set_path(), and dazukoAddExcludePath_TS_compat12().

Referenced by dazukoAddExcludePath().

int dazukoAddIncludePath const char *  path  ) 
 

Definition at line 459 of file dazukoio.c.

References _GLOBAL_DAZUKO, and dazukoAddIncludePath_TS().

int dazukoAddIncludePath_TS dazuko_id_t dazuko_id,
const char *  path
 

Definition at line 464 of file dazukoio.c.

References _GLOBAL_DAZUKO_COMPAT12, ADD_INCLUDE_PATH, dazuko_id_t, dazuko_set_path(), and dazukoAddIncludePath_TS_compat12().

Referenced by dazukoAddIncludePath().

int dazukoGetAccess struct dazuko_access **  acc  ) 
 

Definition at line 550 of file dazukoio.c.

References _GLOBAL_DAZUKO, and dazukoGetAccess_TS().

int dazukoGetAccess_TS dazuko_id_t dazuko_id,
struct dazuko_access **  acc
 

Definition at line 555 of file dazukoio.c.

References _GLOBAL_DAZUKO_COMPAT12, DAZUKO_FILENAME_MAX_LENGTH, dazuko_id_t, dazukoGetAccess_TS_compat12_wrapper(), dazukoReturnAccess_TS_compat12_wrapper(), dazuko_id::dev_major, dazuko_id::device, GET_AN_ACCESS, get_value(), dazuko_id::id, ITOA_SIZE, NULL, unescape_string(), and dazuko_id::write_mode.

Referenced by dazukoGetAccess().

int dazukoRegister const char *  groupName,
const char *  mode
 

Definition at line 140 of file dazukoio.c.

References _GLOBAL_DAZUKO, and dazukoRegister_TS().

int dazukoRegister_TS dazuko_id_t **  dazuko_id,
const char *  groupName,
const char *  mode
 

Definition at line 145 of file dazukoio.c.

References _GLOBAL_DAZUKO_COMPAT12, dazuko_id_t, dazukoRegister_TS_compat12_wrapper(), get_value(), ITOA_SIZE, NULL, and REGISTER.

Referenced by dazukoRegister().

int dazukoRemoveAllPaths void   ) 
 

Definition at line 489 of file dazukoio.c.

References _GLOBAL_DAZUKO, and dazukoRemoveAllPaths_TS().

int dazukoRemoveAllPaths_TS dazuko_id_t dazuko_id  ) 
 

Definition at line 494 of file dazukoio.c.

References _GLOBAL_DAZUKO_COMPAT12, dazuko_id_t, dazukoRemoveAllPaths_TS_compat12(), dazuko_id::dev_major, dazuko_id::device, dazuko_id::id, ITOA_SIZE, NULL, and REMOVE_ALL_PATHS.

Referenced by dazukoRemoveAllPaths().

int dazukoReturnAccess struct dazuko_access **  acc  ) 
 

Definition at line 736 of file dazukoio.c.

References _GLOBAL_DAZUKO, and dazukoReturnAccess_TS().

int dazukoReturnAccess_TS dazuko_id_t dazuko_id,
struct dazuko_access **  acc
 

Definition at line 741 of file dazukoio.c.

References _GLOBAL_DAZUKO_COMPAT12, dazuko_id_t, dazukoReturnAccess_TS_compat12_wrapper(), dazuko_id::dev_major, dazuko_id::device, dazuko_id::id, ITOA_SIZE, NULL, RETURN_AN_ACCESS, and dazuko_id::write_mode.

Referenced by dazukoReturnAccess().

int dazukoSetAccessMask unsigned long  accessMask  ) 
 

Definition at line 342 of file dazukoio.c.

References _GLOBAL_DAZUKO, and dazukoSetAccessMask_TS().

int dazukoSetAccessMask_TS dazuko_id_t dazuko_id,
unsigned long  accessMask
 

Definition at line 347 of file dazukoio.c.

References _GLOBAL_DAZUKO_COMPAT12, dazuko_id_t, dazukoSetAccessMask_TS_compat12(), dazuko_id::dev_major, dazuko_id::device, dazuko_id::id, ITOA_SIZE, NULL, and SET_ACCESS_MASK.

Referenced by dazukoSetAccessMask().

int dazukoUnregister void   ) 
 

Definition at line 818 of file dazukoio.c.

References _GLOBAL_DAZUKO, and dazukoUnregister_TS().

int dazukoUnregister_TS dazuko_id_t **  dazuko_id  ) 
 

Definition at line 823 of file dazukoio.c.

References _GLOBAL_DAZUKO_COMPAT12, dazuko_id_t, dazukoUnregister_TS_compat12_wrapper(), ITOA_SIZE, NULL, and UNREGISTER.

Referenced by dazukoUnregister().

int get_value const char *  key,
const char *  string,
char *  buffer,
size_t  buffer_size
[static]
 

Definition at line 106 of file dazukoio.c.

References NULL.

Referenced by dazukoGetAccess_TS(), and dazukoRegister_TS().

void unescape_string char *  string  )  [static]
 

Definition at line 82 of file dazukoio.c.

References char_to_hex().

Referenced by dazukoGetAccess_TS().


Variable Documentation

dazuko_id_t* _GLOBAL_DAZUKO = NULL
 

Definition at line 50 of file dazukoio.c.

Referenced by dazukoAddExcludePath(), dazukoAddIncludePath(), dazukoGetAccess(), dazukoRegister(), dazukoRemoveAllPaths(), dazukoReturnAccess(), dazukoSetAccessMask(), and dazukoUnregister().

char _GLOBAL_DAZUKO_COMPAT12 = 0
 

Definition at line 53 of file dazukoio.c.

Referenced by dazukoAddExcludePath_TS(), dazukoAddIncludePath_TS(), dazukoGetAccess_TS(), dazukoRegister_TS(), dazukoRemoveAllPaths_TS(), dazukoReturnAccess_TS(), dazukoSetAccessMask_TS(), and dazukoUnregister_TS().


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