/daten/src/linux-2.4.27-rsbac-v1.2.3/rsbac/help/helpers.c File Reference

#include <rsbac/types.h>
#include <rsbac/error.h>
#include <rsbac/helpers.h>
#include <rsbac/rc_types.h>
#include <rsbac/getname.h>
#include <rsbac/cap_getname.h>
#include <stdio.h>
#include <string.h>
#include <pwd.h>

Go to the source code of this file.

Functions

char * inttostr (char *str, int i)
char * ulongtostr (char *str, u_long i)
char * longtostr (char *str, long i)
char * u64tostrmac (char *str, __u64 i)
void error_exit (int error)
void show_error (int error)
int rsbac_get_uid_name (rsbac_uid_t *uid, char *name, char *sourcename)
int rsbac_get_fullname (char *fullname, rsbac_uid_t uid)
char * get_user_name (rsbac_uid_t user, char *name)
char * u64tostrlog (char *str, __u64 i)
__u64 strtou64log (char *str, __u64 *i_p)
char * u64tostrrc (char *str, __u64 i)
__u64 strtou64rc (char *str, __u64 *i_p)
char * u64tostrrcr (char *str, __u64 i)
__u64 strtou64rcr (char *str, __u64 *i_p)
__u64 strtou64mac (char *str, __u64 *i_p)
__u64 strtou64acl (char *str, __u64 *i_p)
char * u64tostracl (char *str, __u64 i)
char * u32tostrcap (char *str, __u32 i)
__u32 strtou32cap (char *str, __u32 *i_p)


Function Documentation

void error_exit int  error  ) 
 

Definition at line 166 of file helpers.c.

References get_error_name().

char* get_user_name rsbac_uid_t  user,
char *  name
 

Definition at line 240 of file helpers.c.

References rsbac_uid_t.

char* inttostr char *  str,
int  i
 

Definition at line 35 of file helpers.c.

References NULL.

char* longtostr char *  str,
long  i
 

Definition at line 105 of file helpers.c.

References NULL.

int rsbac_get_fullname char *  fullname,
rsbac_uid_t  uid
 

Definition at line 222 of file helpers.c.

References RSBAC_EINVALIDPOINTER, and rsbac_uid_t.

int rsbac_get_uid_name rsbac_uid_t uid,
char *  name,
char *  sourcename
 

Definition at line 189 of file helpers.c.

References RSBAC_EINVALIDVALUE, and rsbac_uid_t.

Referenced by rsbac_get_uid().

void show_error int  error  ) 
 

Definition at line 178 of file helpers.c.

References get_error_name().

__u32 strtou32cap char *  str,
__u32 *  i_p
 

Definition at line 497 of file helpers.c.

References CAP_NONE.

__u64 strtou64acl char *  str,
__u64 *  i_p
 

Definition at line 425 of file helpers.c.

References ACLR_NONE.

__u64 strtou64log char *  str,
__u64 *  i_p
 

Definition at line 278 of file helpers.c.

References R_NONE.

__u64 strtou64mac char *  str,
__u64 *  i_p
 

Definition at line 398 of file helpers.c.

References RSBAC_MAC_MAX_CAT, and RSBAC_MAC_NR_CATS.

__u64 strtou64rc char *  str,
__u64 *  i_p
 

Definition at line 327 of file helpers.c.

__u64 strtou64rcr char *  str,
__u64 *  i_p
 

Definition at line 371 of file helpers.c.

References RCR_NONE.

char* u32tostrcap char *  str,
__u32  i
 

Definition at line 475 of file helpers.c.

References CAP_NONE, and NULL.

char* u64tostracl char *  str,
__u64  i
 

Definition at line 453 of file helpers.c.

References ACLR_NONE, and NULL.

char* u64tostrlog char *  str,
__u64  i
 

Definition at line 256 of file helpers.c.

References NULL, and R_NONE.

char* u64tostrmac char *  str,
__u64  i
 

Definition at line 142 of file helpers.c.

References NULL, RSBAC_MAC_MAX_CAT, and RSBAC_MAC_NR_CATS.

Referenced by auto_read_attr(), auto_read_write_attr(), auto_write_attr(), and rsbac_mac_set_curr_level().

char* u64tostrrc char *  str,
__u64  i
 

Definition at line 305 of file helpers.c.

References NULL.

char* u64tostrrcr char *  str,
__u64  i
 

Definition at line 349 of file helpers.c.

References NULL, and RCR_NONE.

char* ulongtostr char *  str,
u_long  i
 

Definition at line 74 of file helpers.c.

References NULL.


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