90c5e88987fa8ac8039c5c47c972449ffc5cc60d
2 * Multi-level security (MLS) policy operations.
4 * Author : Stephen Smalley, <sds@epoch.ncsc.mil>
7 * Updated: Trusted Computer Solutions, Inc. <dgoeddel@trustedcs.com>
9 * Support for enhanced MLS infrastructure.
11 * Copyright (C) 2004-2006 Trusted Computer Solutions, Inc.
21 * Copies the MLS range from `src' into `dst'.
23 static inline int mls_copy_context(struct context
*dst
,
28 /* Copy the MLS range from the source context */
29 for (l
= 0; l
< 2; l
++) {
30 dst
->range
.level
[l
].sens
= src
->range
.level
[l
].sens
;
31 rc
= ebitmap_cpy(&dst
->range
.level
[l
].cat
,
32 &src
->range
.level
[l
].cat
);
40 int mls_compute_context_len(struct context
*context
);
41 void mls_sid_to_context(struct context
*context
, char **scontext
);
42 int mls_context_isvalid(struct policydb
*p
, struct context
*c
);
44 int mls_context_to_sid(char oldc
,
46 struct context
*context
,
50 int mls_from_string(char *str
, struct context
*context
, gfp_t gfp_mask
);
52 int mls_convert_context(struct policydb
*oldp
,
53 struct policydb
*newp
,
54 struct context
*context
);
56 int mls_compute_sid(struct context
*scontext
,
57 struct context
*tcontext
,
60 struct context
*newcontext
);
62 int mls_setup_user_range(struct context
*fromcon
, struct user_datum
*user
,
63 struct context
*usercon
);
65 #endif /* _SS_MLS_H */
This page took 0.031314 seconds and 4 git commands to generate.