Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

event-auditor: ebpf for pattern-map, process-spec-map and process-filter-map management #286

Closed
wants to merge 2 commits into from

Conversation

geyslan
Copy link
Contributor

@geyslan geyslan commented Aug 24, 2021

  • add #include guards to shared.h
  • libbpf
    • get rid of libbpf git submodule downloading it to KubeArmor/BPF
      • create install_libbpf.sh
      • run install_libbpf.sh in contribution/self-managed-k8s/setup.sh
  • ebpf code
    • move them to KubeArmor/BPF
    • create ebpf manager for pattern-map, process-spec-map and process-filter-map
      • onNewProcess
      • onExitProcess
  • eBPF programs and maps handlers (userspace)
    • Rename/Create eBPF object Handlers (a file per handler)
    • processSpecHandler.go: use InitializeProcessMaps() and DestroyProcessMaps() as the start and end points

It will fix: #293.

WIP

@geyslan geyslan changed the title event-auditor: license attribution for kernel code event-auditor: ebpf for pattern-map, process-spec-map and process-filter-map management Aug 24, 2021
As per https://www.kernel.org/doc/html/v5.0/process/license-rules.html,
the SPDX license identifier should be added in the first possible line and
follow different comment styles based on the file type.

C source: // SPDX-License-Identifier: <SPDX License Expression>
C header: /* SPDX-License-Identifier: <SPDX License Expression> */
ASM:      /* SPDX-License-Identifier: <SPDX License Expression> */

Partially fixes kubearmor#280
@geyslan geyslan closed this Aug 26, 2021
@geyslan geyslan deleted the 281-load-and-unload branch August 26, 2021 11:30
@geyslan
Copy link
Contributor Author

geyslan commented Aug 26, 2021

This PR was closed and split into #295 and other to be raised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant