Skip to content

dwindsor/lsm-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lsm-rs

Prerequisites

  1. Install bpf-linker: cargo install bpf-linker

Build eBPF

cargo xtask build-ebpf

To perform a release build you can use the --release flag. You may also change the target architecture with the --target flag.

Build Userspace

cargo build

Run

RUST_LOG=info cargo xtask run

Example Output

{
  "LsmEvent": {
    "Data": {
      "Device": "0",
      "Group": "polkitd",
      "Inode": "5395",
      "Path": "/usr/bin/pkla-check-authorization",
      "User": "polkitd"
    },
    "Meta": {
      "SecurityHook": "security_bprm_check",
      "Type": "Exec"
    }
  }
},
{
  "LsmEvent": {
    "Data": {
      "Device": "0",
      "Group": "root",
      "Inode": "29927",
      "Path": "/usr/lib/systemd/systemd-hostnamed",
      "User": "root"
    },
    "Meta": {
      "SecurityHook": "security_bprm_check",
      "Type": "Exec"
    }
  }
},
{
  "LsmEvent": {
    "Data": {
      "Device": "0",
      "Group": "dave",
      "Inode": "47415",
      "Path": "/usr/libexec/grepconf.sh",
      "User": "dave"
    },
    "Meta": {
      "SecurityHook": "security_bprm_check",
      "Type": "Exec"
    }
  }
}

About

A BPF-LSM telemetry collector written in Rust.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages