Home
last modified time | relevance | path

Searched refs:proto_str (Results 1 – 9 of 9) sorted by relevance

/external/selinux/libsepol/src/
Dports.c184 const char *proto_str; in sepol_port_exists() local
186 proto_str = sepol_port_get_proto_str(proto); in sepol_port_exists()
208 low, high, proto_str); in sepol_port_exists()
222 const char *proto_str; in sepol_port_query() local
224 proto_str = sepol_port_get_proto_str(proto); in sepol_port_query()
247 low, high, proto_str); in sepol_port_query()
262 const char *proto_str; in sepol_port_modify() local
265 proto_str = sepol_port_get_proto_str(proto); in sepol_port_modify()
281 low, high, proto_str); in sepol_port_modify()
/external/selinux/libsemanage/src/
Dports_file.c32 const char *proto_str = semanage_port_get_proto_str(proto); in port_print() local
35 if (fprintf(str, "portcon %s ", proto_str) < 0) in port_print()
56 low, high, proto_str); in port_print()
Dports_local.c96 const char *proto_str = semanage_port_get_proto_str(proto); in hidden_def() local
118 low, high, proto_str, low2, high2, proto_str2); in hidden_def()
Dnodes_file.c32 const char *proto_str = semanage_node_get_proto_str(proto); in node_print() local
45 (str, "nodecon %s %s %s %s\n", proto_str, addr, mask, con_str) < 0) in node_print()
Dpywrap-test.py237 proto_str = semanage.semanage_port_get_proto_str(proto)
245 print("Port: %s %s Context: %s" % (range_str, proto_str, con_str))
368 proto_str = semanage.semanage_node_get_proto_str(proto)
375 print("Network Node: %s/%s (%s) Context: %s" % (addr, mask, proto_str, con_str))
/external/selinux/python/semanage/
Dseobject.py1208 proto_str = semanage_port_get_proto_str(proto)
1213 (k, proto_d, low, high) = self.__genkey(port_str, proto_str)
1225 …log_change("resrc=port op=delete lport=%s proto=%s" % (port_str, socket.getprotobyname(proto_str)))
1270 proto_str = semanage_port_get_proto_str(proto)
1273 ddict[(low, high, proto_str)] = (ctype, level)
1289 proto_str = semanage_port_get_proto_str(proto)
1292 if (ctype, proto_str) not in ddict.keys():
1293 ddict[(ctype, proto_str)] = []
1295 ddict[(ctype, proto_str)].append("%d" % low)
1297 ddict[(ctype, proto_str)].append("%d-%d" % (low, high))
/external/tensorflow/tensorflow/contrib/gan/python/eval/python/
Dclassifier_metrics_impl.py222 proto_str = tar.extractfile(filename).read()
223 return graph_pb2.GraphDef.FromString(proto_str)
/external/python/cpython3/Modules/_ctypes/
D_ctypes.c1949 const char *proto_str; in PyCSimpleType_new() local
1970 proto_str = PyUnicode_AsUTF8AndSize(proto, &proto_len); in PyCSimpleType_new()
1971 if (!proto_str) in PyCSimpleType_new()
1984 if (!strchr(SIMPLE_TYPE_CHARS, *proto_str)) { in PyCSimpleType_new()
1991 fmt = _ctypes_get_fielddesc(proto_str); in PyCSimpleType_new()
1994 "_type_ '%s' not supported", proto_str); in PyCSimpleType_new()
2010 stgdict->format = _ctypes_alloc_format_string_for_type(proto_str[0], 1); in PyCSimpleType_new()
2012 stgdict->format = _ctypes_alloc_format_string_for_type(proto_str[0], 0); in PyCSimpleType_new()
2044 switch (*proto_str) { in PyCSimpleType_new()
/external/python/cpython2/Modules/_ctypes/
D_ctypes.c2021 const char *proto_str; in PyCSimpleType_new() local
2042 proto_str = PyString_AS_STRING(proto); in PyCSimpleType_new()
2055 if (!strchr(SIMPLE_TYPE_CHARS, *proto_str)) { in PyCSimpleType_new()
2082 stgdict->format = _ctypes_alloc_format_string_for_type(proto_str[0], 1); in PyCSimpleType_new()
2084 stgdict->format = _ctypes_alloc_format_string_for_type(proto_str[0], 0); in PyCSimpleType_new()