Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
conditional.h File Reference
#include "avtab.h"
#include "symtab.h"
#include "policydb.h"
#include "../include/conditional.h"

Go to the source code of this file.

Data Structures

struct  cond_expr
 
struct  cond_av_list
 
struct  cond_node
 

Macros

#define COND_EXPR_MAXDEPTH   10
 
#define COND_BOOL   1 /* plain bool */
 
#define COND_NOT   2 /* !bool */
 
#define COND_OR   3 /* bool || bool */
 
#define COND_AND   4 /* bool && bool */
 
#define COND_XOR   5 /* bool ^ bool */
 
#define COND_EQ   6 /* bool == bool */
 
#define COND_NEQ   7 /* bool != bool */
 
#define COND_LAST   COND_NEQ
 

Functions

int cond_policydb_init (struct policydb *p)
 
void cond_policydb_destroy (struct policydb *p)
 
int cond_init_bool_indexes (struct policydb *p)
 
int cond_destroy_bool (void *key, void *datum, void *p)
 
int cond_index_bool (void *key, void *datum, void *datap)
 
int cond_read_bool (struct policydb *p, struct hashtab *h, void *fp)
 
int cond_read_list (struct policydb *p, void *fp)
 
int cond_write_bool (void *key, void *datum, void *ptr)
 
int cond_write_list (struct policydb *p, struct cond_node *list, void *fp)
 
void cond_compute_av (struct avtab *ctab, struct avtab_key *key, struct av_decision *avd)
 
int evaluate_cond_node (struct policydb *p, struct cond_node *node)
 

Macro Definition Documentation

#define COND_AND   4 /* bool && bool */

Definition at line 28 of file conditional.h.

#define COND_BOOL   1 /* plain bool */

Definition at line 25 of file conditional.h.

#define COND_EQ   6 /* bool == bool */

Definition at line 30 of file conditional.h.

#define COND_EXPR_MAXDEPTH   10

Definition at line 18 of file conditional.h.

#define COND_LAST   COND_NEQ

Definition at line 32 of file conditional.h.

#define COND_NEQ   7 /* bool != bool */

Definition at line 31 of file conditional.h.

#define COND_NOT   2 /* !bool */

Definition at line 26 of file conditional.h.

#define COND_OR   3 /* bool || bool */

Definition at line 27 of file conditional.h.

#define COND_XOR   5 /* bool ^ bool */

Definition at line 29 of file conditional.h.

Function Documentation

void cond_compute_av ( struct avtab ctab,
struct avtab_key key,
struct av_decision avd 
)

Definition at line 623 of file conditional.c.

int cond_destroy_bool ( void key,
void datum,
void p 
)

Definition at line 185 of file conditional.c.

int cond_index_bool ( void key,
void datum,
void datap 
)

Definition at line 192 of file conditional.c.

int cond_init_bool_indexes ( struct policydb p)

Definition at line 175 of file conditional.c.

void cond_policydb_destroy ( struct policydb p)

Definition at line 168 of file conditional.c.

int cond_policydb_init ( struct policydb p)

Definition at line 118 of file conditional.c.

int cond_read_bool ( struct policydb p,
struct hashtab h,
void fp 
)

Definition at line 220 of file conditional.c.

int cond_read_list ( struct policydb p,
void fp 
)

Definition at line 457 of file conditional.c.

int cond_write_bool ( void key,
void datum,
void ptr 
)

Definition at line 497 of file conditional.c.

int cond_write_list ( struct policydb p,
struct cond_node list,
void fp 
)

Definition at line 597 of file conditional.c.

int evaluate_cond_node ( struct policydb p,
struct cond_node node 
)

Definition at line 89 of file conditional.c.