-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #602 from l1b0k/policy
update policy image
- Loading branch information
Showing
3 changed files
with
36 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
policy/cilium/0023-fix-ip-cache-driven-secid-derivation-for-external-tr.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: l1b0k <[email protected]> | ||
Date: Thu, 11 Apr 2024 15:45:33 +0800 | ||
Subject: fix ip cache driven secid derivation for external traffic ensuring | ||
correct identity-based policy enforcement in BPF programs. | ||
|
||
Signed-off-by: l1b0k <[email protected]> | ||
--- | ||
pkg/datapath/loader/loader.go | 3 ++- | ||
1 file changed, 2 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/pkg/datapath/loader/loader.go b/pkg/datapath/loader/loader.go | ||
index e0c3fe6a00..2ed01b9b19 100644 | ||
--- a/pkg/datapath/loader/loader.go | ||
+++ b/pkg/datapath/loader/loader.go | ||
@@ -16,6 +16,7 @@ import ( | ||
"github.com/vishvananda/netlink" | ||
|
||
"github.com/cilium/cilium/pkg/command/exec" | ||
+ datapathOption "github.com/cilium/cilium/pkg/datapath/option" | ||
|
||
"github.com/cilium/cilium/pkg/bpf" | ||
"github.com/cilium/cilium/pkg/byteorder" | ||
@@ -157,7 +158,7 @@ func patchHostNetdevDatapath(ep datapath.Endpoint, objPath, dstPath, ifName stri | ||
return err | ||
} | ||
|
||
- if !option.Config.EnableHostLegacyRouting { | ||
+ if option.Config.DatapathMode == datapathOption.DatapathModeVeth { | ||
opts["SECCTX_FROM_IPCACHE"] = uint32(SecctxFromIpcacheEnabled) | ||
} else { | ||
opts["SECCTX_FROM_IPCACHE"] = uint32(SecctxFromIpcacheDisabled) | ||
-- | ||
2.44.0 | ||
|
This file was deleted.
Oops, something went wrong.