Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
policydb.c File Reference
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/audit.h>
#include <linux/flex_array.h>
#include "security.h"
#include "policydb.h"
#include "conditional.h"
#include "mls.h"
#include "services.h"

Go to the source code of this file.

Data Structures

struct  policydb_compat_info




void policydb_destroy (struct policydb *p)
int policydb_load_isids (struct policydb *p, struct sidtab *s)
int policydb_class_isvalid (struct policydb *p, unsigned int class)
int policydb_role_isvalid (struct policydb *p, unsigned int role)
int policydb_type_isvalid (struct policydb *p, unsigned int type)
int policydb_context_isvalid (struct policydb *p, struct context *c)
u16 string_to_security_class (struct policydb *p, const char *name)
u32 string_to_av_perm (struct policydb *p, u16 tclass, const char *name)
int policydb_read (struct policydb *p, void *fp)
int policydb_write (struct policydb *p, void *fp)

Macro Definition Documentation


Definition at line 42 of file policydb.c.

Function Documentation

int policydb_class_isvalid ( struct policydb p,
unsigned int  class 

Definition at line 899 of file policydb.c.

int policydb_context_isvalid ( struct policydb p,
struct context c 

Definition at line 924 of file policydb.c.

void policydb_destroy ( struct policydb p)

Definition at line 768 of file policydb.c.

int policydb_load_isids ( struct policydb p,
struct sidtab s 

Definition at line 867 of file policydb.c.

int policydb_read ( struct policydb p,
void fp 

Definition at line 2215 of file policydb.c.

int policydb_role_isvalid ( struct policydb p,
unsigned int  role 

Definition at line 906 of file policydb.c.

int policydb_type_isvalid ( struct policydb p,
unsigned int  type 

Definition at line 913 of file policydb.c.

int policydb_write ( struct policydb p,
void fp 

Definition at line 3292 of file policydb.c.

u32 string_to_av_perm ( struct policydb p,
u16  tclass,
const char name 

Definition at line 1784 of file policydb.c.

u16 string_to_security_class ( struct policydb p,
const char name 

Definition at line 1773 of file policydb.c.