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