include/parsec/mac_db.h#
Structures and Types Documentation#
typedef cat_han_t
#
typedef struct __cat_han_t* cat_han_t;
typedef lev_han_t
#
typedef struct __lev_han_t* lev_han_t;
struct mac_cat
#
Variables:
char * name
mac_cat_t value
typedef mac_cat_t
#
typedef uint64_t mac_cat_t;
typedef mac_han_t
#
typedef struct __mac_han_t* mac_han_t;
struct mac_label
#
Variables:
mac_cat_t cat
mac_lev_t lev
struct mac_lev
#
Variables:
char * name
mac_lev_t value
typedef mac_lev_t
#
typedef uint8_t mac_lev_t;
typedef mac_type_t
#
typedef uint32_t mac_type_t;
struct mac_user
#
Variables:
Functions Documentation#
function closecatdb_r
#
int closecatdb_r (
cat_han_t han
)
function closelevdb_r
#
int closelevdb_r (
lev_han_t han
)
function closemacdb_r
#
int closemacdb_r (
mac_han_t han
)
function compose_cat
#
char * compose_cat (
const struct mac_cat *cat
)
function compose_lev
#
char * compose_lev (
const struct mac_lev *lev
)
function compose_mac
#
char * compose_mac (
const struct mac_user *mu
)
function endcatent
#
void endcatent (
void
)
function endcatent_r
#
int endcatent_r (
cat_han_t han
)
function endlevent
#
void endlevent (
void
)
function endlevent_r
#
int endlevent_r (
lev_han_t han
)
function endmacent
#
void endmacent (
void
)
function endmacent_r
#
int endmacent_r (
mac_han_t han
)
function fgetcatent
#
struct mac_cat * fgetcatent (
FILE *f
)
function fgetcatent_r
#
struct mac_cat * fgetcatent_r (
FILE *fd
)
function fgetlevent
#
struct mac_lev * fgetlevent (
FILE *f
)
function fgetlevent_r
#
struct mac_lev * fgetlevent_r (
FILE *fd
)
function fgetmacent
#
struct mac_user * fgetmacent (
FILE *f
)
function fgetmacent_r
#
struct mac_user * fgetmacent_r (
FILE *fd
)
function fputcatent
#
void fputcatent (
FILE *f,
const struct mac_cat *mc
)
function fputcatent_r
#
int fputcatent_r (
FILE *fd,
const struct mac_cat *mc
)
function fputlevent
#
void fputlevent (
FILE *f,
const struct mac_lev *ml
)
function fputlevent_r
#
int fputlevent_r (
FILE *fd,
const struct mac_lev *ml
)
function fputmacent
#
void fputmacent (
FILE *f,
const struct mac_user *mu
)
function fputmacent_r
#
int fputmacent_r (
FILE *fd,
const struct mac_user *mu
)
function freecatent_r
#
void freecatent_r (
struct mac_cat *cat
)
function freelevent_r
#
void freelevent_r (
struct mac_lev *lev
)
function freemacent_r
#
void freemacent_r (
struct mac_user *res
)
function getcatent
#
struct mac_cat * getcatent (
void
)
function getcatent_r
#
struct mac_cat * getcatent_r (
cat_han_t han
)
function getcatnam
#
struct mac_cat * getcatnam (
const char *name
)
function getcatnam_r
#
struct mac_cat * getcatnam_r (
cat_han_t han,
const char *name
)
function getcatval
#
struct mac_cat * getcatval (
mac_cat_t value
)
function getcatval_r
#
struct mac_cat * getcatval_r (
cat_han_t han,
mac_cat_t value
)
function getlchnam
#
int getlchnam (
const char *name,
struct mac_label *mac
)
function getlchuid
#
int getlchuid (
uid_t uid,
struct mac_label *mac
)
function getlevent
#
struct mac_lev * getlevent (
void
)
function getlevent_r
#
struct mac_lev * getlevent_r (
lev_han_t han
)
function getlevnam
#
struct mac_lev * getlevnam (
const char *name
)
function getlevnam_r
#
struct mac_lev * getlevnam_r (
lev_han_t han,
const char *name
)
function getlevval
#
struct mac_lev * getlevval (
mac_lev_t value
)
function getlevval_r
#
struct mac_lev * getlevval_r (
lev_han_t han,
mac_lev_t value
)
function getmacent
#
struct mac_user * getmacent (
void
)
function getmacent_r
#
struct mac_user * getmacent_r (
mac_han_t han
)
function getmacnam
#
struct mac_user * getmacnam (
const char *name
)
function getmacnam_r
#
struct mac_user * getmacnam_r (
mac_han_t han,
const char *name
)
function getmacuid
#
struct mac_user * getmacuid (
uid_t uid
)
function getmacuid_r
#
struct mac_user * getmacuid_r (
mac_han_t han,
uid_t uid
)
function is_cats_valid
#
int is_cats_valid (
cat_han_t han,
mac_cat_t cats
)
function levexstval
#
int levexstval (
lev_han_t han,
mac_lev_t value
)
function opencatdb_r
#
cat_han_t opencatdb_r (
void
)
function openlevdb_r
#
lev_han_t openlevdb_r (
void
)
function openmacdb_r
#
mac_han_t openmacdb_r (
void
)
function parse_cat
#
struct mac_cat * parse_cat (
const char *buff,
struct mac_cat *cat
)
function parse_lev
#
struct mac_lev * parse_lev (
const char *buff,
struct mac_lev *lev
)
function parse_mac
#
struct mac_user * parse_mac (
const char *buff,
struct mac_user *mu
)
function putcatent
#
int putcatent (
const struct mac_cat *mc
)
function putcatent_r
#
int putcatent_r (
cat_han_t han,
const struct mac_cat *mc
)
function putlevent
#
int putlevent (
const struct mac_lev *ml
)
function putlevent_r
#
int putlevent_r (
lev_han_t han,
const struct mac_lev *ml
)
function putmacent
#
int putmacent (
const struct mac_user *mu
)
function putmacent_r
#
int putmacent_r (
mac_han_t han,
const struct mac_user *mu
)
function rmcatnam
#
int rmcatnam (
const char *name
)
function rmcatnam_r
#
int rmcatnam_r (
cat_han_t han,
const char *name
)
function rmcatval
#
int rmcatval (
mac_cat_t value
)
function rmcatval_r
#
int rmcatval_r (
cat_han_t han,
mac_cat_t value
)
function rmlevnam
#
int rmlevnam (
const char *name
)
function rmlevnam_r
#
int rmlevnam_r (
lev_han_t han,
const char *name
)
function rmlevval
#
int rmlevval (
mac_lev_t value
)
function rmlevval_r
#
int rmlevval_r (
lev_han_t han,
mac_lev_t value
)
function rmmacnam
#
int rmmacnam (
const char *name
)
function rmmacnam_r
#
int rmmacnam_r (
mac_han_t han,
const char *name
)
function setcatent
#
int setcatent (
void
)
function setcatent_r
#
int setcatent_r (
cat_han_t han
)
function setlchnam
#
int setlchnam (
const char *name,
const struct mac_label *mac
)
function setlchuid
#
int setlchuid (
uid_t uid,
const struct mac_label *mac
)
function setlevent
#
int setlevent (
void
)
function setlevent_r
#
int setlevent_r (
lev_han_t han
)
function setmacent
#
int setmacent (
void
)
function setmacent_r
#
int setmacent_r (
mac_han_t han
)
Macros Documentation#
define MAC_MAX_CAT
#
#define MAC_MAX_CAT MAC_MAX_CATEGORY
define MAC_MAX_LEV
#
#define MAC_MAX_LEV MAC_MAX_LEVEL
define SECURITY
#
#define SECURITY "security"
define __MAC_TYPES
#
#define __MAC_TYPES