Skip to content

Commit

Permalink
bpf: lxc: prefer SECLABEL_IPV4 over SECLABEL in ipv4_policy()
Browse files Browse the repository at this point in the history
Match what ipv6_policy() uses in these locations.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
  • Loading branch information
julianwiedmann committed Jun 19, 2024
1 parent 34b9c7f commit ace0444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bpf/bpf_lxc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1905,7 +1905,7 @@ ipv4_policy(struct __ctx_buff *ctx, struct iphdr *ip4, int ifindex, __u32 src_la

if (sep) {
auth_type = (__u8)*ext_err;
verdict = auth_lookup(ctx, SECLABEL, src_label,
verdict = auth_lookup(ctx, SECLABEL_IPV4, src_label,
sep->tunnel_endpoint, auth_type);
}
}
Expand Down Expand Up @@ -1942,7 +1942,7 @@ ipv4_policy(struct __ctx_buff *ctx, struct iphdr *ip4, int ifindex, __u32 src_la
}

if (*proxy_port > 0) {
send_trace_notify4(ctx, TRACE_TO_PROXY, src_label, SECLABEL, orig_sip,
send_trace_notify4(ctx, TRACE_TO_PROXY, src_label, SECLABEL_IPV4, orig_sip,
bpf_ntohs(*proxy_port), ifindex, trace.reason,
trace.monitor);
if (tuple_out)
Expand Down

0 comments on commit ace0444

Please sign in to comment.