Lines Matching refs:scon
710 char *scon = NULL, *tcon = NULL; in sel_write_access() local
721 scon = kzalloc(size + 1, GFP_KERNEL); in sel_write_access()
722 if (!scon) in sel_write_access()
731 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_access()
734 length = security_context_str_to_sid(scon, &ssid, GFP_KERNEL); in sel_write_access()
751 kfree(scon); in sel_write_access()
757 char *scon = NULL, *tcon = NULL; in sel_write_create() local
771 scon = kzalloc(size + 1, GFP_KERNEL); in sel_write_create()
772 if (!scon) in sel_write_create()
786 nargs = sscanf(buf, "%s %s %hu %s", scon, tcon, &tclass, namebuf); in sel_write_create()
820 length = security_context_str_to_sid(scon, &ssid, GFP_KERNEL); in sel_write_create()
850 kfree(scon); in sel_write_create()
856 char *scon = NULL, *tcon = NULL; in sel_write_relabel() local
868 scon = kzalloc(size + 1, GFP_KERNEL); in sel_write_relabel()
869 if (!scon) in sel_write_relabel()
878 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_relabel()
881 length = security_context_str_to_sid(scon, &ssid, GFP_KERNEL); in sel_write_relabel()
906 kfree(scon); in sel_write_relabel()
972 char *scon = NULL, *tcon = NULL; in sel_write_member() local
984 scon = kzalloc(size + 1, GFP_KERNEL); in sel_write_member()
985 if (!scon) in sel_write_member()
994 if (sscanf(buf, "%s %s %hu", scon, tcon, &tclass) != 3) in sel_write_member()
997 length = security_context_str_to_sid(scon, &ssid, GFP_KERNEL); in sel_write_member()
1025 kfree(scon); in sel_write_member()