Skip to content

Instantly share code, notes, and snippets.

@krnowak
krnowak / make log
Last active January 26, 2024 14:14
falco log
* Setting up /usr/src links from host
* Running falco-driver-loader for: falco version=0.36.2, driver version=6.0.1+driver, arch=x86_64, kernel release=3859.0.0, kernel version=1
* Running falco-driver-loader with: driver=module, compile=yes, download=yes
================ Cleaning phase ================
* 1. Check if kernel module 'falco' is still loaded:
- OK! There is no 'falco' module loaded.
* 2. Check all versions of kernel module 'falco' in dkms:
@krnowak
krnowak / diff_pkg.sh
Created July 3, 2023 14:27
Package update quick hacks
#!/bin/bash
pkg=${1}
version_old=${2}
version_new=${3}
#category=${pkg%%/*}
name=${pkg#*/}
fail() {
echo "$*" >&2
From a9499b22aa17f81e58add2c0ae88a650a2a573d7 Mon Sep 17 00:00:00 2001
From: Krzesimir Nowak <knowak@microsoft.com>
Date: Wed, 29 Jun 2022 17:05:23 +0200
Subject: [PATCH] eclass/selinux-policy-2: fix POLICY_PATCH applying
eapply as implemented in portage has some heuristics to find out where
the parameters that should be passed to patch utility end and actual
diff/patch files begin. It first tries to find -- which is the
explicit way of separating parameters from input files. Since there's
none, it tries to find a first non-option. And it finds the refpolicy
@krnowak
krnowak / build-my-hab.sh
Last active August 23, 2018 15:53
A script for building a bunch of habitat binaries, so I can get a studio with my modified habitat binaries.
#!/bin/bash
# How to build a docker image of some package that contains custom
# built habitat binaries:
#
# 1. Follow this tutorial to make sure that you have habitat installed
# and set up - https://www.habitat.sh/tutorials/download/. Follow
# all the steps (means downloading the CLI, creating habitat
# account, setting up origin and configuring your workstation).
#