Lines Matching refs:scon
858 char *scon = NULL, *tcon = NULL; in sel_write_access() local
870 scon = kzalloc(size + 1, GFP_KERNEL); in sel_write_access()
871 if (!scon) in sel_write_access()
880 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_access()
883 length = security_context_str_to_sid(scon, &ssid, GFP_KERNEL); in sel_write_access()
900 kfree(scon); in sel_write_access()
906 char *scon = NULL, *tcon = NULL; in sel_write_create() local
922 scon = kzalloc(size + 1, GFP_KERNEL); in sel_write_create()
923 if (!scon) in sel_write_create()
937 nargs = sscanf(buf, "%s %s %hu %s", scon, tcon, &tclass, namebuf); in sel_write_create()
971 length = security_context_str_to_sid(scon, &ssid, GFP_KERNEL); in sel_write_create()
1001 kfree(scon); in sel_write_create()
1007 char *scon = NULL, *tcon = NULL; in sel_write_relabel() local
1021 scon = kzalloc(size + 1, GFP_KERNEL); in sel_write_relabel()
1022 if (!scon) in sel_write_relabel()
1031 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_relabel()
1034 length = security_context_str_to_sid(scon, &ssid, GFP_KERNEL); in sel_write_relabel()
1059 kfree(scon); in sel_write_relabel()
1127 char *scon = NULL, *tcon = NULL; in sel_write_member() local
1141 scon = kzalloc(size + 1, GFP_KERNEL); in sel_write_member()
1142 if (!scon) in sel_write_member()
1151 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_member()
1154 length = security_context_str_to_sid(scon, &ssid, GFP_KERNEL); in sel_write_member()
1182 kfree(scon); in sel_write_member()