Lines Matching defs:context
48 context_struct_t context;
51 context_init(&context);
52 if (mls_level_cpy(&context.range.level[0],
55 context_destroy(&context);
58 if (mls_level_cpy(&context.range.level[1],
61 context_destroy(&context);
64 if (mls_to_string(handle, policydb, &context, &str) < 0) {
65 context_destroy(&context);
68 context_destroy(&context);
76 context_init(&context);
77 if (mls_range_cpy(&context.range, &usrdatum->exp_range) < 0) {
79 context_destroy(&context);
82 if (mls_to_string(handle, policydb, &context, &str) < 0) {
83 context_destroy(&context);
86 context_destroy(&context);
123 context_struct_t context;
187 context_init(&context);
188 if (mls_from_string(handle, policydb, cmls_level, &context) < 0) {
189 context_destroy(&context);
193 &context.range.level[0]) < 0) {
195 context_destroy(&context);
198 context_destroy(&context);
207 context_init(&context);
208 if (mls_from_string(handle, policydb, cmls_range, &context) < 0) {
209 context_destroy(&context);
212 if (mls_range_cpy(&usrdatum->exp_range, &context.range) < 0) {
214 context_destroy(&context);
217 context_destroy(&context);