HomeSort by relevance Sort by last modified time
    Searched refs:mls (Results 1 - 25 of 47) sorted by null

1 2

  /external/libsepol/src/
mls.h 4 * Support for enhanced MLS infrastructure.
32 const char *str, context_struct_t * mls);
36 const context_struct_t * mls, char **str);
65 context_struct_t * usercon, int mls);
context_record.c 20 /* MLS */
21 char *mls; member in struct:sepol_context
103 /* MLS */
107 return con->mls;
113 sepol_context_t * con, const char *mls)
116 char *tmp_mls = strdup(mls);
119 "MLS fields to %s", mls);
122 free(con->mls);
123 con->mls = tmp_mls
    [all...]
context.c 12 #include "mls.h"
158 const char *mls = sepol_context_get_mls(record); local
194 /* MLS */
195 if (mls && !policydb->mls) {
196 ERR(handle, "MLS is disabled, but MLS context \"%s\" found",
197 mls);
199 } else if (!mls && policydb->mls) {
249 char *mls = NULL; local
    [all...]
mls.c 5 * Support for enhanced MLS infrastructure.
27 * Implementation of the multi-level security (MLS) policy.
40 #include "mls.h"
44 const context_struct_t * mls, char **str)
50 int len = mls_compute_context_len(policydb, mls) + 1;
61 mls_sid_to_context(policydb, mls, &ptr);
70 ERR(handle, "out of memory, could not convert mls context to string");
80 const char *str, context_struct_t * mls)
88 if (mls_context_to_sid(policydb, '$', &tmp_cp, mls) < 0) {
89 ERR(handle, "invalid MLS context %s", str)
    [all...]
policydb_public.c 181 return p->p.mls;
users.c 13 #include "mls.h"
43 /* Extract MLS info */
44 if (policydb->mls) {
51 ERR(handle, "could not copy MLS level");
57 ERR(handle, "could not copy MLS level");
75 ERR(handle, "could not copy MLS range");
179 /* For MLS systems */
180 if (policydb->mls) {
182 /* MLS level */
184 ERR(handle, "MLS is enabled, but no MLS
    [all...]
genusers.c 19 #include "mls.h"
184 if (policydb->mls) {
  /external/llvm/test/MC/AArch64/
neon-mla-mls-instructions.s 26 mls v0.8b, v1.8b, v2.8b
27 mls v0.16b, v1.16b, v2.16b
28 mls v0.4h, v1.4h, v2.4h
29 mls v0.8h, v1.8h, v2.8h
30 mls v0.2s, v1.2s, v2.2s
31 mls v0.4s, v1.4s, v2.4s
33 // CHECK: mls v0.8b, v1.8b, v2.8b // encoding: [0x20,0x94,0x22,0x2e]
34 // CHECK: mls v0.16b, v1.16b, v2.16b // encoding: [0x20,0x94,0x22,0x6e]
35 // CHECK: mls v0.4h, v1.4h, v2.4h // encoding: [0x20,0x94,0x62,0x2e]
36 // CHECK: mls v0.8h, v1.8h, v2.8h // encoding: [0x20,0x94,0x62,0x6e
    [all...]
  /external/libsepol/tests/
helpers.c 35 int test_load_policy(policydb_t * p, int policy_type, int mls, const char *test_name, const char *policy_name)
39 if (mls) {
40 if (snprintf(filename, PATH_MAX, "policies/%s/%s.mls", test_name, policy_name) < 0) {
55 p->mls = mls;
helpers.h 33 * policy "policies/foo/mls/base.conf" into p.
39 * mls Boolean value indicating whether an mls policy is expected.
48 extern int test_load_policy(policydb_t * p, int policy_type, int mls, const char *test_name, const char *policy_name);
test-downgrade.h 68 * Description: Tests the backward compatability of MLS and Non-MLS binary
76 * Input: int that represents a 0 for Non-MLS policy and a
77 * 1 for MLS policy downgrade testing
87 int do_downgrade_test(int mls);
test-downgrade.c 100 * Tests the backward compatability of MLS and Non-MLS binary policy versions.
106 "\nError during downgrade testing of Non-MLS policy\n");
111 "\nError during downgrade testing of MLS policy\n");
117 * Input: 0 for Non-MLS policy and 1 for MLS policy downgrade testing
127 int do_downgrade_test(int mls)
138 fprintf(stderr, "error reading %spolicy binary\n", mls ? "mls " : "");
143 /* Change MLS value based on parameter *
    [all...]
test-linker.c 57 extern int mls;
63 if (test_load_policy(&linkedbase, POLICY_BASE, mls, "test-linker", policies[BASEMOD]))
66 if (test_load_policy(&basenomods, POLICY_BASE, mls, "test-linker", policies[BASEMOD]))
77 if (test_load_policy(modules[i], POLICY_MOD, mls, "test-linker", policies[i]))
libsepol-tests.c 35 int mls; variable
107 /* first do the non-mls tests */
108 mls = 0;
112 /* then with mls */
113 mls = 1;
test-expander.c 65 extern int mls;
77 if (snprintf(filename[i], PATH_MAX, "policies/test-expander/%s%s", myfiles[i], mls ? ".mls" : ".std") < 0)
99 mybase->mls = mls;
108 mymodules[i - 1]->mls = mls;
158 mls and non-mls tests since users can't be used in mls module *
    [all...]
test-deps.c 86 extern int mls;
98 if (test_load_policy(&bases_met[i], POLICY_BASE, mls, "test-deps", "base-metreq.conf"))
103 if (test_load_policy(&bases_notmet[i], POLICY_BASE, mls, "test-deps", "base-notmetreq.conf"))
162 CU_ASSERT_FATAL(test_load_policy(&mod, POLICY_MOD, mls, "test-deps", policy) == 0);
242 CU_ASSERT_FATAL(test_load_policy(&mod, POLICY_MOD, mls, "test-deps", policy) == 0);
Makefile 28 mlspol := $(addsuffix .mls,$(policysrc))
40 %.conf.mls: $(m4support) %.conf
  /external/libsepol/include/sepol/
context.h 24 const sepol_policydb_t * policydb, const char *mls);
  /external/checkpolicy/
parse_util.c 51 mlspol = p->mls;
checkmodule.c 95 if (p->mls) {
97 fprintf(stderr, "%s: MLS policy, but non-MLS"
103 fprintf(stderr, "%s: non-MLS policy, but MLS"
157 printf(" -M enable MLS policy\n");
175 {"mls", no_argument, NULL, 'M'},
256 modpolicydb.mls = mlspol;
  /external/compiler-rt/lib/arm/
modsi3.S 30 mls r0, r2, r1, r0
umodsi3.S 30 mls r0, r2, r1, r0
divmodsi4.S 32 mls r1, r0, r1, r3
udivmodsi4.S 39 mls r1, r0, r1, r3
  /external/libsepol/
Android.mk 24 src/mls.c \

Completed in 136 milliseconds

1 2