Skip to content

Commit e3bc5f6

Browse files
committed
adjust pinned path
1 parent 317530f commit e3bc5f6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

azure-iptables-monitor/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Follow the steps below to build and run the program:
3333
- The `-events` flag enables Kubernetes event creation for rule violations. Default: `false`
3434
- The `-ipv6` flag enables IPv6 ip6tables monitoring using the IPv6 allowlists. Default: `false`
3535
- The `-checkMap` flag enables checking the pinned bpf map specified in mapPath for increases. Default: `false`
36-
- The `-mapPath` flag specifies the pinned bpf map path to check. Default: `/block-iptables/iptables_block_event_counter`
36+
- The `-mapPath` flag specifies the pinned bpf map path to check. Default: `/azure-block-iptables/iptables_block_event_counter`
3737
- The program must be in a k8s environment and `NODE_NAME` must be a set environment variable with the current node.
3838

3939
5. The program will set the `kubernetes.azure.com/user-iptables-rules` label to `true` on the specified ciliumnode resource if unexpected rules are found, or `false` if all rules match expected patterns. Proper RBAC is required for patching (patch for ciliumnodes, create for events, get for nodes).

azure-iptables-monitor/iptables_monitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var (
3434
sendEvents = flag.Bool("events", false, "Whether to send node events if unexpected iptables rules are detected")
3535
ipv6Enabled = flag.Bool("ipv6", false, "Whether to check ip6tables using the ipv6 allowlists")
3636
checkMap = flag.Bool("checkMap", false, "Whether to check the bpf map at mapPath for increases")
37-
pinPath = flag.String("mapPath", "/block-iptables/iptables_block_event_counter", "Path to pinned bpf map")
37+
pinPath = flag.String("mapPath", "/azure-block-iptables/iptables_block_event_counter", "Path to pinned bpf map")
3838
)
3939

4040
const label = "kubernetes.azure.com/user-iptables-rules"

bpf-prog/azure-block-iptables/pkg/bpfprogram/program.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818

1919
const (
2020
// BPFMapPinPath is the directory where BPF maps are pinned
21-
BPFMapPinPath = "/sys/fs/bpf/block-iptables"
21+
BPFMapPinPath = "/sys/fs/bpf/azure-block-iptables"
2222
// EventCounterMapName is the name used for pinning the event counter map
2323
EventCounterMapName = "iptables_block_event_counter"
2424
// IptablesLegacyBlockProgramName is the name used for pinning the legacy iptables block program

0 commit comments

Comments
 (0)