Searched defs:mls (Results 1 - 8 of 8) sorted by relevance
/external/libsepol/tests/ |
H A D | helpers.c | 35 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 D | libsepol-tests.c | 35 int mls; variable 107 /* first do the non-mls tests */ 108 mls = 0; 112 /* then with mls */ 113 mls = 1;
|
H A D | test-downgrade.c | 127 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...] |
/external/libsepol/src/ |
H A D | context_record.c | 21 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 D | context.c | 12 #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 D | mls.c | 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) { 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...] |
/external/checkpolicy/ |
H A D | policy_parse.y | 198 opt_mls : mls 201 mls : sensitivities dominance opt_categories levels mlspolicy label
|
/external/libsepol/include/sepol/policydb/ |
H A D | policydb.h | 458 /* Whether this policydb is mls, should always be set */ 459 int mls; member in struct:policydb
|
Completed in 533 milliseconds