/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setools/policyrep/ |
user.py | 69 def mls_range(self): member in class:User 82 stmt += " level {0.mls_level} range {0.mls_range};".format(self)
|
/external/selinux/libsemanage/src/ |
seuser_record.c | 31 char *mls_range; member in struct:semanage_seuser 164 return seuser->mls_range; 171 const char *mls_range) 174 char *tmp_mls_range = strdup(mls_range); 179 free(seuser->mls_range); 180 seuser->mls_range = tmp_mls_range; 201 seuser->mls_range = NULL; 226 if (seuser->mls_range && 227 (semanage_seuser_set_mlsrange(handle, new_seuser, seuser->mls_range) 251 free(seuser->mls_range); [all...] |
users_base_file.c | 32 const char *mls_range = semanage_user_base_get_mlsrange(user); local 49 if (mls_level != NULL && mls_range != NULL) 50 if (fprintf(str, "level %s range %s", mls_level, mls_range) < 0)
|
seusers_local.c | 126 const char *mls_range = semanage_seuser_get_mlsrange(data); local 139 if (!mls_range && semanage_mls_enabled(handle)) { 149 mls_range = semanage_user_get_mlsrange(u); 150 rc = semanage_seuser_set_mlsrange(handle, new, mls_range); 252 const char *mls_range = semanage_seuser_get_mlsrange(seuser); local 267 if (mls_range && sepol_policydb_mls_enabled(policydb)) { 273 if (sepol_mls_check(handle->sepolh, policydb, mls_range) < 0) 276 user_mls_range, mls_range, &mls_ok) < 0) 282 mls_range, name, user_mls_range, sename); 286 } else if (mls_range) { [all...] |
/external/selinux/libsepol/src/ |
user_record.c | 16 char *mls_range; member in struct:sepol_user 141 return user->mls_range; 147 sepol_user_t * user, const char *mls_range) 150 char *tmp_mls_range = strdup(mls_range); 156 free(user->mls_range); 157 user->mls_range = tmp_mls_range; 317 user->mls_range = NULL; 348 if (user->mls_range && 349 (sepol_user_set_mlsrange(handle, new_user, user->mls_range) < 0)) 375 free(user->mls_range); [all...] |
/external/selinux/libsepol/include/sepol/policydb/ |
mls_types.h | 46 typedef struct mls_range { struct 113 static inline void mls_range_init(struct mls_range *r) 119 static inline void mls_range_destroy(struct mls_range *r) 125 static inline int mls_range_eq(struct mls_range *r1, struct mls_range *r2)
|