diff options
author | Venkat Yekkirala <vyekkirala@TrustedCS.com> | 2006-12-12 14:02:41 -0500 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2007-01-08 17:32:51 -0500 |
commit | 0efc61eaee5471acd7399c8536feff280b4966dd (patch) | |
tree | c57dbd32f8a318082ba4f35092b5679d23cfb184 /security/selinux/ss/mls.h | |
parent | bf81b46482c0fa8ea638e409d39768ea92a6b0f0 (diff) |
selinux: Delete mls_copy_context
This deletes mls_copy_context() in favor of mls_context_cpy() and
replaces mls_scopy_context() with mls_context_cpy_low().
Signed-off-by: Venkat Yekkirala <vyekkirala@TrustedCS.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/selinux/ss/mls.h')
-rw-r--r-- | security/selinux/ss/mls.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/security/selinux/ss/mls.h b/security/selinux/ss/mls.h index 661d6fc76966..096d1b4ef7fb 100644 --- a/security/selinux/ss/mls.h +++ b/security/selinux/ss/mls.h | |||
@@ -24,26 +24,6 @@ | |||
24 | #include "context.h" | 24 | #include "context.h" |
25 | #include "policydb.h" | 25 | #include "policydb.h" |
26 | 26 | ||
27 | /* | ||
28 | * Copies the MLS range from `src' into `dst'. | ||
29 | */ | ||
30 | static inline int mls_copy_context(struct context *dst, | ||
31 | struct context *src) | ||
32 | { | ||
33 | int l, rc = 0; | ||
34 | |||
35 | /* Copy the MLS range from the source context */ | ||
36 | for (l = 0; l < 2; l++) { | ||
37 | dst->range.level[l].sens = src->range.level[l].sens; | ||
38 | rc = ebitmap_cpy(&dst->range.level[l].cat, | ||
39 | &src->range.level[l].cat); | ||
40 | if (rc) | ||
41 | break; | ||
42 | } | ||
43 | |||
44 | return rc; | ||
45 | } | ||
46 | |||
47 | int mls_compute_context_len(struct context *context); | 27 | int mls_compute_context_len(struct context *context); |
48 | void mls_sid_to_context(struct context *context, char **scontext); | 28 | void mls_sid_to_context(struct context *context, char **scontext); |
49 | int mls_context_isvalid(struct policydb *p, struct context *c); | 29 | int mls_context_isvalid(struct policydb *p, struct context *c); |