• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:proto

14 static inline int sepol2ipproto(sepol_handle_t * handle, int proto)  in sepol2ipproto()  argument
17 switch (proto) { in sepol2ipproto()
25 ERR(handle, "unsupported protocol %u", proto); in sepol2ipproto()
30 static inline int ipproto2sepol(sepol_handle_t * handle, int proto) in ipproto2sepol() argument
33 switch (proto) { in ipproto2sepol()
41 ERR(handle, "invalid protocol %u " "found in policy", proto); in ipproto2sepol()
59 int proto = sepol_port_get_proto(data); in port_from_record() local
66 tmp_proto = sepol2ipproto(handle, proto); in port_from_record()
103 low, high, sepol_port_get_proto_str(proto)); in port_from_record()
112 int proto = port->u.port.protocol; in port_to_record() local
124 rec_proto = ipproto2sepol(handle, proto); in port_to_record()
176 int low, high, proto; in sepol_port_exists() local
178 sepol_port_key_unpack(key, &low, &high, &proto); in sepol_port_exists()
179 proto_str = sepol_port_get_proto_str(proto); in sepol_port_exists()
180 proto = sepol2ipproto(handle, proto); in sepol_port_exists()
181 if (proto < 0) in sepol_port_exists()
190 if (proto == proto2 && low2 == low && high2 == high) { in sepol_port_exists()
214 int low, high, proto; in sepol_port_query() local
216 sepol_port_key_unpack(key, &low, &high, &proto); in sepol_port_query()
217 proto_str = sepol_port_get_proto_str(proto); in sepol_port_query()
218 proto = sepol2ipproto(handle, proto); in sepol_port_query()
219 if (proto < 0) in sepol_port_query()
228 if (proto == proto2 && low2 == low && high2 == high) { in sepol_port_query()
254 int low, high, proto; in sepol_port_modify() local
257 sepol_port_key_unpack(key, &low, &high, &proto); in sepol_port_modify()
258 proto_str = sepol_port_get_proto_str(proto); in sepol_port_modify()
259 proto = sepol2ipproto(handle, proto); in sepol_port_modify()
260 if (proto < 0) in sepol_port_modify()