Lines Matching refs:newcon
741 char *oldcon = NULL, *newcon = NULL, *taskcon = NULL; in sel_write_validatetrans() local
773 newcon = kzalloc(count + 1, GFP_KERNEL); in sel_write_validatetrans()
774 if (!newcon) in sel_write_validatetrans()
782 if (sscanf(req, "%s %s %hu %s", oldcon, newcon, &tclass, taskcon) != 4) in sel_write_validatetrans()
789 rc = security_context_str_to_sid(newcon, &nsid, GFP_KERNEL); in sel_write_validatetrans()
803 kfree(newcon); in sel_write_validatetrans()
920 char *newcon = NULL; in sel_write_create() local
993 length = security_sid_to_context(newsid, &newcon, &len); in sel_write_create()
1004 memcpy(buf, newcon, len); in sel_write_create()
1007 kfree(newcon); in sel_write_create()
1020 char *newcon = NULL; in sel_write_relabel() local
1055 length = security_sid_to_context(newsid, &newcon, &len); in sel_write_relabel()
1063 memcpy(buf, newcon, len); in sel_write_relabel()
1066 kfree(newcon); in sel_write_relabel()
1077 char *newcon; in sel_write_user() local
1112 rc = security_sid_to_context(sids[i], &newcon, &len); in sel_write_user()
1118 kfree(newcon); in sel_write_user()
1122 memcpy(ptr, newcon, len); in sel_write_user()
1123 kfree(newcon); in sel_write_user()
1140 char *newcon = NULL; in sel_write_member() local
1175 length = security_sid_to_context(newsid, &newcon, &len); in sel_write_member()
1186 memcpy(buf, newcon, len); in sel_write_member()
1189 kfree(newcon); in sel_write_member()