Searched refs:new_con (Results 1 – 3 of 3) sorted by relevance
/external/selinux/libsepol/src/ |
D | context_record.c | 156 sepol_context_t *new_con = NULL; in hidden_def() local 163 if (sepol_context_create(handle, &new_con) < 0) in hidden_def() 166 if (!(new_con->user = strdup(con->user))) in hidden_def() 169 if (!(new_con->role = strdup(con->role))) in hidden_def() 172 if (!(new_con->type = strdup(con->type))) in hidden_def() 175 if (con->mls && !(new_con->mls = strdup(con->mls))) in hidden_def() 178 *con_ptr = new_con; in hidden_def() 186 sepol_context_free(new_con); in hidden_def()
|
D | expand.c | 287 constraint_node_t *new_con = NULL, *last_new_con = NULL; in constraint_node_clone() local 292 new_con = in constraint_node_clone() 294 if (!new_con) { in constraint_node_clone() 297 memset(new_con, 0, sizeof(constraint_node_t)); in constraint_node_clone() 298 new_con->permissions = src->permissions; in constraint_node_clone() 351 new_con->expr = new_expr; in constraint_node_clone() 357 *dst = new_con; in constraint_node_clone() 359 last_new_con->next = new_con; in constraint_node_clone() 361 last_new_con = new_con; in constraint_node_clone() 368 if (new_con) in constraint_node_clone() [all …]
|
/external/selinux/policycoreutils/newrole/ |
D | newrole.c | 831 security_context_t new_con = NULL; in parse_command_line_arguments() local 918 send_audit_message(0, old_context, new_con, ttyn); in parse_command_line_arguments() 963 if (!(new_con = context_str(context))) { in parse_command_line_arguments() 968 if (security_check_context(new_con) < 0) { in parse_command_line_arguments() 969 fprintf(stderr, _("%s is not a valid context\n"), new_con); in parse_command_line_arguments() 970 send_audit_message(0, old_context, new_con, ttyn); in parse_command_line_arguments() 974 *new_context = strdup(new_con); in parse_command_line_arguments()
|