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()
739 length = security_context_to_sid(tcon, strlen(tcon) + 1, &tsid, in sel_write_access()
752 kfree(tcon); in sel_write_access()
759 char *scon = NULL, *tcon = NULL; in sel_write_create() local
778 tcon = kzalloc(size + 1, GFP_KERNEL); in sel_write_create()
779 if (!tcon) in sel_write_create()
788 nargs = sscanf(buf, "%s %s %hu %s", scon, tcon, &tclass, namebuf); in sel_write_create()
827 length = security_context_to_sid(tcon, strlen(tcon) + 1, &tsid, in sel_write_create()
853 kfree(tcon); in sel_write_create()
860 char *scon = NULL, *tcon = NULL; in sel_write_relabel() local
877 tcon = kzalloc(size + 1, GFP_KERNEL); in sel_write_relabel()
878 if (!tcon) in sel_write_relabel()
882 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_relabel()
890 length = security_context_to_sid(tcon, strlen(tcon) + 1, &tsid, in sel_write_relabel()
911 kfree(tcon); in sel_write_relabel()
978 char *scon = NULL, *tcon = NULL; in sel_write_member() local
995 tcon = kzalloc(size + 1, GFP_KERNEL); in sel_write_member()
996 if (!tcon) in sel_write_member()
1000 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_member()
1008 length = security_context_to_sid(tcon, strlen(tcon) + 1, &tsid, in sel_write_member()
1032 kfree(tcon); in sel_write_member()