Lines Matching +full:- +full:- +full:context
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Multi-level security (MLS) policy operations.
12 * Copyright (C) 2004-2006 Trusted Computer Solutions, Inc.
15 * Updated: Hewlett-Packard <paul@paul-moore.com>
19 * (c) Copyright Hewlett-Packard Development Company, L.P., 2006
27 #include "context.h"
31 int mls_compute_context_len(struct policydb *p, struct context *context);
32 void mls_sid_to_context(struct policydb *p, struct context *context,
34 int mls_context_isvalid(struct policydb *p, struct context *c);
41 struct context *context,
45 int mls_from_string(struct policydb *p, char *str, struct context *context,
48 int mls_range_set(struct context *context, struct mls_range *range);
52 struct context *oldc,
53 struct context *newc);
56 struct context *scontext,
57 struct context *tcontext,
60 struct context *newcontext,
64 struct context *fromcon, struct user_datum *user,
65 struct context *usercon);
69 struct context *context,
72 struct context *context,
75 struct context *context,
78 struct context *context,
82 struct context *context, in mls_export_netlbl_lvl() argument
88 struct context *context, in mls_import_netlbl_lvl() argument
94 struct context *context, in mls_export_netlbl_cat() argument
97 return -ENOMEM; in mls_export_netlbl_cat()
100 struct context *context, in mls_import_netlbl_cat() argument
103 return -ENOMEM; in mls_import_netlbl_cat()
109 hash = jhash_2words(r->level[0].sens, r->level[1].sens, hash); in mls_range_hash()
110 hash = ebitmap_hash(&r->level[0].cat, hash); in mls_range_hash()
111 hash = ebitmap_hash(&r->level[1].cat, hash); in mls_range_hash()