/external/selinux/libsepol/src/ |
user_record.c | 22 unsigned int num_roles; member in struct:sepol_user 167 return user->num_roles; 182 sizeof(char *) * (user->num_roles + 1)); 187 user->num_roles++; 189 user->roles[user->num_roles - 1] = role_cp; 207 for (i = 0; i < user->num_roles; i++) 217 const char **roles_arr, unsigned int num_roles) 223 if (num_roles > 0) { 226 tmp_roles = (char **)calloc(1, sizeof(char *) * num_roles); 230 for (i = 0; i < num_roles; i++) [all...] |
users.c | 113 unsigned int num_roles = 0; local 133 if (sepol_user_get_roles(handle, user, &roles, &num_roles) < 0) 158 for (i = 0; i < num_roles; i++) {
|
module_to_cil.c | 1398 uint32_t num_roles = 0; local 1407 rc = process_roleset(indent, pdb, rs, NULL, &roles, &num_roles); 1418 for (i = 0; i < num_roles; i++) { 1424 names_destroy(&roles, &num_roles); 1431 names_destroy(&roles, &num_roles); [all...] |
/external/selinux/libsepol/tests/ |
test-expander-users.c | 31 static void check_user_roles(policydb_t * p, char *user_name, char **role_names, int num_roles) 46 found = calloc(num_roles, sizeof(unsigned char)); 51 for (j = 0; j < num_roles; j++) { 60 for (j = 0; j < num_roles; j++) {
|
/external/selinux/libsemanage/src/ |
user_base_record.c | 137 unsigned int *num_roles) 140 return sepol_user_get_roles(handle->sepolh, user, roles_arr, num_roles); 146 unsigned int num_roles) 149 return sepol_user_set_roles(handle->sepolh, user, roles_arr, num_roles);
|
user_internal.h | 127 unsigned int *num_roles); 132 unsigned int num_roles);
|
seusers_local.c | 23 unsigned int num_roles; local 34 &num_roles) >= 0) { 35 for (i = 0; i<num_roles; i++) { 41 for (i = 1; i<num_roles; i++) {
|
user_record.c | 210 const char ***roles_arr, unsigned int *num_roles) 214 num_roles); 221 const char **roles_arr, unsigned int num_roles) 225 num_roles);
|
semanageswig_python.i | 128 unsigned int* num_roles) {
|
/external/selinux/libsemanage/include/semanage/ |
user_record.h | 74 unsigned int *num_roles); 79 unsigned int num_roles);
|
/external/selinux/libsepol/include/sepol/ |
user_record.h | 64 unsigned int *num_roles); 68 const char **roles_arr, unsigned int num_roles);
|
/external/selinux/libsepol/cil/src/ |
cil_internal.h | 296 int num_roles; member in struct:cil_db
|
cil_post.c | 373 role->value = db->num_roles; 374 db->num_roles++; 455 db->val_to_role = cil_malloc(sizeof(*db->val_to_role) * db->num_roles); 713 rc = __cil_expr_list_to_bitmap(attr->expr_list, attr->roles, db->num_roles, db); [all...] |
cil.c | 272 (*db)->num_roles = 0; [all...] |