Searched refs:new_con (Results 1 – 3 of 3) sorted by relevance
/external/selinux/libsepol/src/ |
D | context_record.c | 157 sepol_context_t *new_con = NULL; in hidden_def() local 164 if (sepol_context_create(handle, &new_con) < 0) in hidden_def() 167 if (!(new_con->user = strdup(con->user))) in hidden_def() 170 if (!(new_con->role = strdup(con->role))) in hidden_def() 173 if (!(new_con->type = strdup(con->type))) in hidden_def() 176 if (con->mls && !(new_con->mls = strdup(con->mls))) in hidden_def() 179 *con_ptr = new_con; in hidden_def() 187 sepol_context_free(new_con); in hidden_def()
|
D | expand.c | 289 constraint_node_t *new_con = NULL, *last_new_con = NULL; in constraint_node_clone() local 294 new_con = in constraint_node_clone() 296 if (!new_con) { in constraint_node_clone() 299 memset(new_con, 0, sizeof(constraint_node_t)); in constraint_node_clone() 300 new_con->permissions = src->permissions; in constraint_node_clone() 353 new_con->expr = new_expr; in constraint_node_clone() 359 *dst = new_con; in constraint_node_clone() 361 last_new_con->next = new_con; in constraint_node_clone() 363 last_new_con = new_con; in constraint_node_clone() 370 if (new_con) in constraint_node_clone() [all …]
|
/external/selinux/policycoreutils/newrole/ |
D | newrole.c | 830 security_context_t new_con = NULL; in parse_command_line_arguments() local 917 send_audit_message(0, old_context, new_con, ttyn); in parse_command_line_arguments() 962 if (!(new_con = context_str(context))) { in parse_command_line_arguments() 967 if (security_check_context(new_con) < 0) { in parse_command_line_arguments() 968 fprintf(stderr, _("%s is not a valid context\n"), new_con); in parse_command_line_arguments() 969 send_audit_message(0, old_context, new_con, ttyn); in parse_command_line_arguments() 973 *new_context = strdup(new_con); in parse_command_line_arguments()
|