Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mls.h File Reference
#include "context.h"
#include "policydb.h"

Go to the source code of this file.


int mls_compute_context_len (struct context *context)
void mls_sid_to_context (struct context *context, char **scontext)
int mls_context_isvalid (struct policydb *p, struct context *c)
int mls_range_isvalid (struct policydb *p, struct mls_range *r)
int mls_level_isvalid (struct policydb *p, struct mls_level *l)
int mls_context_to_sid (struct policydb *p, char oldc, char **scontext, struct context *context, struct sidtab *s, u32 def_sid)
int mls_from_string (char *str, struct context *context, gfp_t gfp_mask)
int mls_range_set (struct context *context, struct mls_range *range)
int mls_convert_context (struct policydb *oldp, struct policydb *newp, struct context *context)
int mls_compute_sid (struct context *scontext, struct context *tcontext, u16 tclass, u32 specified, struct context *newcontext, bool sock)
int mls_setup_user_range (struct context *fromcon, struct user_datum *user, struct context *usercon)

Function Documentation

int mls_compute_context_len ( struct context context)

Definition at line 35 of file mls.c.

int mls_compute_sid ( struct context scontext,
struct context tcontext,
u16  tclass,
u32  specified,
struct context newcontext,
bool  sock 

Definition at line 511 of file mls.c.

int mls_context_isvalid ( struct policydb p,
struct context c 

Definition at line 199 of file mls.c.

int mls_context_to_sid ( struct policydb p,
char  oldc,
char **  scontext,
struct context context,
struct sidtab s,
u32  def_sid 

Definition at line 242 of file mls.c.

int mls_convert_context ( struct policydb oldp,
struct policydb newp,
struct context context 

Definition at line 470 of file mls.c.

int mls_from_string ( char str,
struct context context,
gfp_t  gfp_mask 

Definition at line 385 of file mls.c.

int mls_level_isvalid ( struct policydb p,
struct mls_level l 

Definition at line 160 of file mls.c.

int mls_range_isvalid ( struct policydb p,
struct mls_range r 

Definition at line 188 of file mls.c.

int mls_range_set ( struct context context,
struct mls_range range 

Definition at line 410 of file mls.c.

int mls_setup_user_range ( struct context fromcon,
struct user_datum user,
struct context usercon 

Definition at line 427 of file mls.c.

void mls_sid_to_context ( struct context context,
char **  scontext 

Definition at line 88 of file mls.c.