Skip to content

Instantly share code, notes, and snippets.

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
View gist:b2d4cbf08c696ae185040aabd55744ba
[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
View gist:f9b8f1629ed672e41c0b5b76c53632a6
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 Jun 23, 2020
Coverity for OSBuild
View makefile.diff
diff --git a/Makefile b/Makefile
index fcc5317..a2b63d9 100644
--- a/Makefile
+++ b/Makefile
@@ -17,8 +17,11 @@
BUILDDIR ?= .
SRCDIR ?= .
+MKDIR ?= mkdir
PYTHON3 ?= python3
View gist:6d6aac1c88122ca07d8086c077a6f4fb
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
C-Bus1 API Proposal
View c-bus1.h
#pragma once
/**
* Capability-based IPC for Linux
*/
#ifdef __cplusplus
extern "C" {
#endif
@dvdhrm
dvdhrm / apparmor_net_mediation.diff
Created Mar 9, 2019
Ubuntu AppArmor Socket Mediation Patch
View apparmor_net_mediation.diff
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 \
View efirun.sh
#!/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.
View hello-world.rs
//
// 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.
View alloc.rs
//! UEFI Memory Allocators
//!
//! XXX
use r_efi::efi;
// UEFI guarantees 8-byte alignments through `AllocatePool()`. Any request higher than this
// alignment needs to take special precautions to align the returned pointer, and revert that step
// when freeing the memory block again.
const POOL_ALIGNMENT: usize = 8usize;
@dvdhrm
dvdhrm / hello-world.rs
Created Dec 5, 2018
UEFI Hello World in Rust
View hello-world.rs
//
// 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.