Skip to content

Instantly share code, notes, and snippets.

@mtardy
mtardy / install_tetragon.sh
Created April 5, 2023 13:07
Little wizard to install Tetragon using helm
#!/bin/bash
usage() {
echo "Usage:
$0 {flags}
Flags:
-c Helm chart to use (default \"cilium/tetragon\")
-n Namespace for Tetragon installation (default \"kube-system\")
-t Tag for tetragon.image.tag and tetragonOperator.image.tag (default \"latest\")
@mtardy
mtardy / vmlinux.h
Created March 9, 2023 18:18
arm64 5.19.0-35-generic ubuntu 22.10 btf dump
This file has been truncated, but you can view the full file.
#ifndef __VMLINUX_H__
#define __VMLINUX_H__
#ifndef BPF_NO_PRESERVE_ACCESS_INDEX
#pragma clang attribute push (__attribute__((preserve_access_index)), apply_to = record)
#endif
typedef unsigned char __u8;
typedef short unsigned int __u16;
@mtardy
mtardy / POC_psp_bypass_ephemeral_containers.sh
Last active July 25, 2022 16:06
Small POC to demonstrate the problem of not filtering the creation of ephemeral containers at the admission control level, it uses minikube, kubectl and curl as dependencies.
#!/bin/bash
set -e
set -o pipefail
function print {
printf "\n[+] $1\n"
}
function retry_for_command_success {