Searched refs:mls (Results 1 - 25 of 50) sorted by relevance

12

/external/libsepol/src/
H A Dmls.h32 const char *str, context_struct_t * mls);
36 const context_struct_t * mls, char **str);
65 context_struct_t * usercon, int mls);
H A Dcontext_record.c21 char *mls; member in struct:sepol_context
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;
144 con->mls = NULL;
175 if (con->mls && !(new_con->mls
[all...]
H A Dcontext.c12 #include "mls.h"
158 const char *mls = sepol_context_get_mls(record); local
195 if (mls && !policydb->mls) {
197 mls);
199 } else if (!mls && policydb->mls) {
203 if (mls && (mls_from_string(handle, policydb, mls, scontext) < 0))
208 if (mls) {
249 char *mls = NULL; local
[all...]
H A Dmls.c40 #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) {
101 ERR(handle, "could not construct mls context structure");
116 if (!policydb->mls)
175 if (!policydb->mls)
42 mls_to_string(sepol_handle_t * handle, const policydb_t * policydb, const context_struct_t * mls, char **str) argument
78 mls_from_string(sepol_handle_t * handle, const policydb_t * policydb, const char *str, context_struct_t * mls) argument
509 mls_setup_user_range(context_struct_t * fromcon, user_datum_t * user, context_struct_t * usercon, int mls) argument
690 sepol_mls_check(sepol_handle_t * handle, sepol_policydb_t * policydb, const char *mls) argument
[all...]
H A Dpolicydb_public.c181 return p->p.mls;
/external/llvm/test/MC/AArch64/
H A Dneon-mla-mls-instructions.s26 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 v
[all...]
H A Dneon-2velem.s29 mls v0.2s, v1.2s, v2.s[2]
30 mls v0.2s, v1.2s, v22.s[2]
31 mls v3.4s, v8.4s, v2.s[1]
32 mls v3.4s, v8.4s, v22.s[3]
34 // CHECK: mls v0.2s, v1.2s, v2.s[2] // encoding: [0x20,0x48,0x82,0x2f]
35 // CHECK: mls v0.2s, v1.2s, v22.s[2] // encoding: [0x20,0x48,0x96,0x2f]
36 // CHECK: mls v3.4s, v8.4s, v2.s[1] // encoding: [0x03,0x41,0xa2,0x6f]
37 // CHECK: mls v3.4s, v8.4s, v22.s[3] // encoding: [0x03,0x49,0xb6,0x6f]
39 mls v0.4h, v1.4h, v2.h[2]
40 mls v
[all...]
/external/libsepol/tests/
H A Dhelpers.c35 int test_load_policy(policydb_t * p, int policy_type, int mls, const char *test_name, const char *policy_name) argument
39 if (mls) {
40 if (snprintf(filename, PATH_MAX, "policies/%s/%s.mls", test_name, policy_name) < 0) {
55 p->mls = mls;
H A Dhelpers.h33 * 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);
H A Dtest-downgrade.h87 int do_downgrade_test(int mls);
H A Dtest-downgrade.c127 int do_downgrade_test(int mls) argument
138 fprintf(stderr, "error reading %spolicy binary\n", mls ? "mls " : "");
144 policydb.mls = mls ? 1 : 0;
162 if (mls && lo < POLICYDB_VERSION_MLS)
165 fprintf(stderr, "error writing %spolicy binary, version %d (downgraded from %d)\n", mls ? "mls " : "", lo, hi);
177 fprintf(stderr, "error reading %spolicy binary, version %d (downgraded from %d)\n", mls ? "mls "
[all...]
H A Dtest-linker.c57 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]))
H A Dlibsepol-tests.c35 int mls; variable
107 /* first do the non-mls tests */
108 mls = 0;
112 /* then with mls */
113 mls = 1;
H A Dtest-expander.c65 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 modul
[all...]
H A Dtest-deps.c86 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);
H A DMakefile28 mlspol := $(addsuffix .mls,$(policysrc))
40 %.conf.mls: $(m4support) %.conf
/external/libsepol/include/sepol/
H A Dcontext.h24 const sepol_policydb_t * policydb, const char *mls);
/external/checkpolicy/
H A Dparse_util.c51 mlspol = p->mls;
H A Dcheckmodule.c95 if (p->mls) {
175 {"mls", no_argument, NULL, 'M'},
256 modpolicydb.mls = mlspol;
/external/compiler-rt/lib/builtins/arm/
H A Ddivmodsi4.S37 mls r1, r0, r1, r3
H A Dmodsi3.S35 mls r0, r2, r1, r0
H A Dudivsi3.S28 mls r1, r0, r1, r3
H A Dumodsi3.S27 mls r1, r0, r1, r3
H A Dudivmodsi4.S27 mls r1, r0, r1, r3
/external/libsepol/
H A DAndroid.mk24 src/mls.c \

Completed in 7170 milliseconds

12