Home
last modified time | relevance | path

Searched refs:range (Results 1 – 11 of 11) sorted by relevance

/security/selinux/ss/
Dcontext.h32 struct mls_range range; member
38 memset(&c->range, 0, sizeof(c->range)); in mls_context_init()
45 dst->range.level[0].sens = src->range.level[0].sens; in mls_context_cpy()
46 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[0].cat); in mls_context_cpy()
50 dst->range.level[1].sens = src->range.level[1].sens; in mls_context_cpy()
51 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[1].cat); in mls_context_cpy()
53 ebitmap_destroy(&dst->range.level[0].cat); in mls_context_cpy()
65 dst->range.level[0].sens = src->range.level[0].sens; in mls_context_cpy_low()
66 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[0].cat); in mls_context_cpy_low()
70 dst->range.level[1].sens = src->range.level[0].sens; in mls_context_cpy_low()
[all …]
Dmls.c48 int index_sens = context->range.level[l].sens; in mls_compute_context_len()
54 e = &context->range.level[l].cat; in mls_compute_context_len()
73 if (mls_level_eq(&context->range.level[0], in mls_compute_context_len()
74 &context->range.level[1])) in mls_compute_context_len()
108 context->range.level[l].sens - 1)); in mls_sid_to_context()
114 e = &context->range.level[l].cat; in mls_sid_to_context()
150 if (mls_level_eq(&context->range.level[0], in mls_sid_to_context()
151 &context->range.level[1])) in mls_sid_to_context()
200 if (!mls_range_isvalid(p, &c->range)) in mls_context_isvalid()
212 if (!mls_range_contains(usrdatum->range, c->range)) in mls_context_isvalid()
[all …]
Dcontext.c30 hash = mls_range_hash(&c->range, hash); in context_compute_hash()
Dservices.c339 l1 = &(scontext->range.level[0]); in constraint_expr_eval()
340 l2 = &(tcontext->range.level[0]); in constraint_expr_eval()
343 l1 = &(scontext->range.level[0]); in constraint_expr_eval()
344 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
347 l1 = &(scontext->range.level[1]); in constraint_expr_eval()
348 l2 = &(tcontext->range.level[0]); in constraint_expr_eval()
351 l1 = &(scontext->range.level[1]); in constraint_expr_eval()
352 l2 = &(tcontext->range.level[1]); in constraint_expr_eval()
355 l1 = &(scontext->range.level[0]); in constraint_expr_eval()
356 l2 = &(scontext->range.level[1]); in constraint_expr_eval()
[all …]
Dmls.h48 int mls_range_set(struct context *context, struct mls_range *range);
Dpolicydb.h125 struct mls_range range; /* MLS range (min - max) for user */ member
Dpolicydb.c289 ebitmap_destroy(&usrdatum->range.level[0].cat); in user_destroy()
290 ebitmap_destroy(&usrdatum->range.level[1].cat); in user_destroy()
1051 rc = mls_read_range_helper(&c->range, fp); in context_read_and_validate()
1553 rc = mls_read_range_helper(&usrdatum->range, fp); in user_read()
2918 rc = mls_write_range_helper(&c->range, fp); in context_write()
3243 rc = mls_write_range_helper(&usrdatum->range, fp); in user_write()
/security/tomoyo/
DKconfig21 range 0 2147483647
34 range 0 2147483647
/security/selinux/
DKconfig76 range 0 1
99 range 8 13
/security/integrity/ima/
DKconfig48 range 8 14
/security/
DKconfig.hardening183 range 0 4096