Lines Matching refs:tcon
710 char *scon = NULL, *tcon = NULL; in sel_write_access() local
726 tcon = kzalloc(size + 1, GFP_KERNEL); in sel_write_access()
727 if (!tcon) in sel_write_access()
731 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_access()
738 length = security_context_str_to_sid(tcon, &tsid, GFP_KERNEL); in sel_write_access()
750 kfree(tcon); in sel_write_access()
757 char *scon = NULL, *tcon = NULL; in sel_write_create() local
776 tcon = kzalloc(size + 1, GFP_KERNEL); in sel_write_create()
777 if (!tcon) in sel_write_create()
786 nargs = sscanf(buf, "%s %s %hu %s", scon, tcon, &tclass, namebuf); in sel_write_create()
824 length = security_context_str_to_sid(tcon, &tsid, GFP_KERNEL); in sel_write_create()
849 kfree(tcon); in sel_write_create()
856 char *scon = NULL, *tcon = NULL; in sel_write_relabel() local
873 tcon = kzalloc(size + 1, GFP_KERNEL); in sel_write_relabel()
874 if (!tcon) in sel_write_relabel()
878 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_relabel()
885 length = security_context_str_to_sid(tcon, &tsid, GFP_KERNEL); in sel_write_relabel()
905 kfree(tcon); in sel_write_relabel()
972 char *scon = NULL, *tcon = NULL; in sel_write_member() local
989 tcon = kzalloc(size + 1, GFP_KERNEL); in sel_write_member()
990 if (!tcon) in sel_write_member()
994 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_member()
1001 length = security_context_str_to_sid(tcon, &tsid, GFP_KERNEL); in sel_write_member()
1024 kfree(tcon); in sel_write_member()