8000 GitHub - unsigned-gg/kl: kl (kernel link) — Linux Landlock LSM file rules, seccomp BPF syscall filters, and eBPF probes · GitHub
[go: up one dir, main page]

Skip to content
unsigned-ggPublic

About

kl (kernel link) — Linux Landlock LSM file rules, seccomp BPF syscall filters, and eBPF probes

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

kl

License: Apache-2.0 OR MIT

Kernel Layer Primitives — Landlock LSM, seccomp-BPF Syscall Filtering, and Namespace Containment
Pure-Rust Linux container containment interfaces without C runtime or external daemon dependencies.
Dual-licensed under Apache-2.0 OR MIT.

Philosophical Foundations & Machine Sympathy

  • Champion Inspiration: Bryan Cantrill (uncompromising systems observability, machine sympathy, and deterministic kernel boundaries).
  • Substantive Systems Implementation: Fully functional Landlock LSM ruleset compilation, seccomp-BPF system call filtering, and Linux namespace isolation.
  • Zero-I/O Domain Isolation: kl-domain contains zero system calls, zero filesystem interactions, and zero async runtimes. All ruleset representations, syscall policies, and invariant checks operate on pure memory structures.

Crate Layout

Crate Responsibility
crates/kl-domain Pure zero-I/O models: LandlockAbi, PathAccess, SeccompProfile, SyscallRule, and IsolationPlan.
crates/kl Systems runtime and CLI (kl): Kernel ABI probing on isolated scratch threads, seccomp-BPF compilation, and namespace containment.

CLI Usage

Probe Host Kernel Capabilities

# Probe Linux kernel Landlock ABI version and seccomp capabilities
kl probe

Verify Isolation Plan

# Validate internal consistency and invariants of an isolation plan
kl verify plan.json

Building & Verification

All builds must specify -j 2 to prevent memory exhaustion on shared hosts:

cargo check -j 2
cargo test -j 2

License

Dual-licensed under either of:

Principles

See the unsigned-gg principles for the architectural doctrine and community standards.

About

kl (kernel link) — Linux Landlock LSM file rules, seccomp BPF syscall filters, and eBPF probes

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0