Skip to content

Instantly share code, notes, and snippets.

View dvdhrm's full-sized avatar
✔️
Fixing Whitespace, what else would you do at this time?

David Rheinsberg dvdhrm

✔️
Fixing Whitespace, what else would you do at this time?
View GitHub Profile
┏┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┏┳┳┳┳┳┳┓┳┳┳┳┳┳┳┳┳┳┳┳┳┏┓┳┏┳┳┳┓┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┏┳┳┳┳┓┳┳┳┳┳┏┳┳┳┓┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┏┳┓┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┏┳┳┓
┣╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏╋╋╋╋╋╋╋┫╋╋╋╋╋╋╋╋╋╋╋╋╋┗╋┳╋╋╋┻┛╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏┓╋╋╋╋╋┣╋╋╋╋╋┳┳┳┳┳╋╋╋╋┫╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗╋┫╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╻╋╋╻╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏┳╋╋╋┫
┣╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏╋╋┻╋╋╋┻┻┛╋╋╋╋╋┏┓╋╋╋╋╋╋╋┗╋╋╋┫╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏┳╋╋┳┓╋╋╋┣╋╋╋╋╋╋╋╋╋╋╋╋╋╋┫╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏┓╋┣╋┳┳┓╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┣┳┳┫╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┣╋╋┻╋┫
┣╋╋╋╋╋╋╋╋╋╋╋┏┳┓╋╺┳┓╋┣╋┛╋┣╋┫╋╋╋╋╋╻╋┏╋┫╋╋╋╋╋╋╋╋┣╋┻╋┓╋╋╋╋╋╋╋╋╋╋╋╋╋┗╋╋╋╋┛╋┏┳╋╋╋╋╋╋┻┻┻┻╋╋╋╋╋┫╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗╋┳╋╋╋┻┛╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏╋╋╋┫╋╋╋╋╋╋╋╋┏┳┓╋╋╋╋┏┳┓╋╋╋╋╋╋╋╋╋╋┗┻┛╋┣┫
┣╋╋╋╋╋╋╋╋╋┏┳╋╋┫╋╋┗╋┳╋┫╋╋┣╋┫╋╋╋╋┏╋┳╋╋╋┳┓╋╋╋╋╋╺╋┫╋┗┛╋╋╋╋╋╋╋╋╋╋╋╋╋╋┣╋╋┫╋╋┣╋╋┻╋╋╋┫╋╋╋╋┗╋╋╋┻┛╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗╋╋╋┫╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┣╋╋╋╋┓╋╋╋╋╋╋╋┗╋╋┓╋╋╋┣╋┛╋╋╋╋╋╋╋╋╋╋╋╋╋╋┣┫
┣╋╋╋╋╋╋╋╋╋┣╋╋╋╋┓╋╋┣╋╋╋┳┳╋╋╋┳┓╋╋┗╋╋╋╋╋╋┛╋╋╋╋╋╋┗┛╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┣┻┻┫╋╺┻┻┛╋┣╋╋┫╋╋╋╋╋┗┻┛╋╋╋╋╋╋╋┏┓╋┏┓╋╋╋╋╋╋╋╋╋╋┣╋┻╋┓╋╋╋┏┓╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗┻╋╋┻┛╋╋╋╋╋╋┻┻┗┻┻━┳┳
┏┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┏┳┳┳┳┳┳┓┳┳┳┳┳┳┳┳┳┳┳┳┳┏┓┳┏┳┳┳┓┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┏┳┳┳┳┓┳┳┳┳┳┏┳┳┳┓┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┏┳┓┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┳┏┳┳┓
┣╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏╋╋╋╋╋╋╋┫╋╋╋╋╋╋╋╋╋╋╋╋╋┗╋┳╋╋╋┻┛╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏┓╋╋╋╋╋┣╋╋╋╋╋┳┳┳┳┳╋╋╋╋┫╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗╋┫╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╻╋╋╻╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏┳╋╋╋┫
┣╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏╋╋┻╋╋╋┻┻┛╋╋╋╋╋┏┓╋╋╋╋╋╋╋┗╋╋╋┫╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏┳╋╋┳┓╋╋╋┣╋╋╋╋╋╋╋╋╋╋╋╋╋╋┫╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏┓╋┣╋┳┳┓╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┣┳┳┫╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┣╋╋┻╋┫
┣╋╋╋╋╋╋╋╋╋╋╋┏┳┓╋╺┳┓╋┣╋┛╋┣╋┫╋╋╋╋╋╻╋┏╋┫╋╋╋╋╋╋╋╋┣╋┻╋┓╋╋╋╋╋╋╋╋╋╋╋╋╋┗╋╋╋╋┛╋┏┳╋╋╋╋╋╋┻┻┻┻╋╋╋╋╋┫╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗╋┳╋╋╋┻┛╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏╋╋╋┫╋╋╋╋╋╋╋╋┏┳┓╋╋╋╋┏┳┓╋╋╋╋╋╋╋╋╋╋┗┻┛╋┣┫
┣╋╋╋╋╋╋╋╋╋┏┳╋╋┫╋╋┗╋┳╋┫╋╋┣╋┫╋╋╋╋┏╋┳╋╋╋┳┓╋╋╋╋╋╺╋┫╋┗┛╋╋╋╋╋╋╋╋╋╋╋╋╋╋┣╋╋┫╋╋┣╋╋┻╋╋╋┫╋╋╋╋┗╋╋╋┻┛╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗╋╋╋┫╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┣╋╋╋╋┓╋╋╋╋╋╋╋┗╋╋┓╋╋╋┣╋┛╋╋╋╋╋╋╋╋╋╋╋╋╋╋┣┫
┣╋╋╋╋╋╋╋╋╋┣╋╋╋╋┓╋╋┣╋╋╋┳┳╋╋╋┳┓╋╋┗╋╋╋╋╋╋┛╋╋╋╋╋╋┗┛╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┣┻┻┫╋╺┻┻┛╋┣╋╋┫╋╋╋╋╋┗┻┛╋╋╋╋╋╋╋┏┓╋┏┓╋╋╋╋╋╋╋╋╋╋┣╋┻╋┓╋╋╋┏┓╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗┻╋╋┻┛╋╋╋╋╋╋┻┻┗┻┻━┳┳
[2020-07-16T11:19:11.452Z] ------------------------------------------------------------------------------
[2020-07-16T11:19:11.452Z] 🏃🏻 Running test: rhel_8-x86_64-tar-boot.json
[2020-07-16T11:19:11.452Z] ------------------------------------------------------------------------------
[2020-07-16T11:19:11.452Z] === RUN TestImages
[2020-07-16T11:19:11.452Z] === RUN TestImages/rhel_8-x86_64-tar-boot.json
From 2b56e5b196db37697d9e678eacc1c351a0f5f67a Mon Sep 17 00:00:00 2001
From: David Rheinsberg <david.rheinsberg@gmail.com>
Date: Tue, 23 Jun 2020 18:54:47 +0200
Subject: [PATCH] WIP
---
Makefile | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 80 insertions(+)
diff --git a/Makefile b/Makefile
@dvdhrm
dvdhrm / makefile.diff
Created June 23, 2020 10:28
Coverity for OSBuild
diff --git a/Makefile b/Makefile
index fcc5317..a2b63d9 100644
--- a/Makefile
+++ b/Makefile
@@ -17,8 +17,11 @@
BUILDDIR ?= .
SRCDIR ?= .
+MKDIR ?= mkdir
PYTHON3 ?= python3
method return time=1580904255.908957 sender=org.freedesktop.DBus -> destination=:1.109 serial=4294967295 reply_serial=2
array [
dict entry(
string "org.bus1.DBus.Debug.Stats.PeerAccounting"
variant array [
struct {
string ":1.0"
array [
dict entry(
string "UnixUserID"
@dvdhrm
dvdhrm / c-bus1.h
Created May 22, 2019 12:54
C-Bus1 API Proposal
#pragma once
/**
* Capability-based IPC for Linux
*/
#ifdef __cplusplus
extern "C" {
#endif
@dvdhrm
dvdhrm / apparmor_net_mediation.diff
Created March 9, 2019 12:01
Ubuntu AppArmor Socket Mediation Patch
diff --git a/security/apparmor/Makefile b/security/apparmor/Makefile
index ff23fcf..fad407f 100644
--- a/security/apparmor/Makefile
+++ b/security/apparmor/Makefile
@@ -5,7 +5,8 @@ obj-$(CONFIG_SECURITY_APPARMOR) += apparmor.o
apparmor-y := apparmorfs.o audit.o capability.o task.o ipc.o lib.o match.o \
path.o domain.o policy.o policy_unpack.o procattr.o lsm.o \
- resource.o secid.o file.o policy_ns.o label.o mount.o net.o
+ resource.o secid.o file.o policy_ns.o label.o mount.o net.o \
#!/bin/bash
#
# efi-devel - efirun
#
# This tool executes a given UEFI binary in an ad-hoc virtual machine. Since
# most hosts lack native emulation for UEFI binaries, this tool spawns an
# ad-hoc, temporary QEMU virtual machine with OVMF. It creates an ephemeral ESP
# with the target binary as default boot-target. This way OVMF behaves as if
# you directly invoke the target binary.
//
// Example: Hello World!
//
// This is an example UEFI application that prints "Hello World!", then waits for key input before
// it exits. It serves as base example how to write UEFI applications without any helper modules
// other than the UEFI protocol definitions.
//
// The `efi_main` function serves as entry-point. Depending on your target-configuration, this
// entry point might be called differently. If you use the target-configuration shipped with
// r-efi, then `efi_main` is the selected PE/COFF entry point.