Searched refs:newcon (Results 1 – 2 of 2) sorted by relevance
/security/selinux/ |
D | selinuxfs.c | 687 char *oldcon = NULL, *newcon = NULL, *taskcon = NULL; in sel_write_validatetrans() local 720 newcon = kzalloc(count + 1, GFP_KERNEL); in sel_write_validatetrans() 721 if (!newcon) in sel_write_validatetrans() 729 if (sscanf(req, "%s %s %hu %s", oldcon, newcon, &tclass, taskcon) != 4) in sel_write_validatetrans() 736 rc = security_context_str_to_sid(state, newcon, &nsid, GFP_KERNEL); in sel_write_validatetrans() 750 kfree(newcon); in sel_write_validatetrans() 872 char *newcon = NULL; in sel_write_create() local 946 length = security_sid_to_context(state, newsid, &newcon, &len); in sel_write_create() 957 memcpy(buf, newcon, len); in sel_write_create() 960 kfree(newcon); in sel_write_create() [all …]
|
/security/selinux/ss/ |
D | services.c | 3057 struct context newcon; in security_sid_mls_copy() local 3068 context_init(&newcon); in security_sid_mls_copy() 3088 newcon.user = context1->user; in security_sid_mls_copy() 3089 newcon.role = context1->role; in security_sid_mls_copy() 3090 newcon.type = context1->type; in security_sid_mls_copy() 3091 rc = mls_context_cpy(&newcon, context2); in security_sid_mls_copy() 3096 if (!policydb_context_isvalid(policydb, &newcon)) { in security_sid_mls_copy() 3097 rc = convert_context_handle_invalid_context(state, &newcon); in security_sid_mls_copy() 3099 if (!context_struct_to_string(policydb, &newcon, &s, in security_sid_mls_copy() 3116 rc = context_struct_to_sid(state, &newcon, new_sid); in security_sid_mls_copy() [all …]
|