Lines Matching refs:scon
909 char *scon = NULL, *tcon = NULL;
922 scon = kzalloc(size + 1, GFP_KERNEL);
923 if (!scon)
932 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3)
935 length = security_context_str_to_sid(state, scon, &ssid, GFP_KERNEL);
952 kfree(scon);
960 char *scon = NULL, *tcon = NULL;
977 scon = kzalloc(size + 1, GFP_KERNEL);
978 if (!scon)
992 nargs = sscanf(buf, "%s %s %hu %s", scon, tcon, &tclass, namebuf);
1026 length = security_context_str_to_sid(state, scon, &ssid, GFP_KERNEL);
1056 kfree(scon);
1064 char *scon = NULL, *tcon = NULL;
1079 scon = kzalloc(size + 1, GFP_KERNEL);
1080 if (!scon)
1089 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3)
1092 length = security_context_str_to_sid(state, scon, &ssid, GFP_KERNEL);
1117 kfree(scon);
1190 char *scon = NULL, *tcon = NULL;
1205 scon = kzalloc(size + 1, GFP_KERNEL);
1206 if (!scon)
1215 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3)
1218 length = security_context_str_to_sid(state, scon, &ssid, GFP_KERNEL);
1246 kfree(scon);