Skip to content

Instantly share code, notes, and snippets.

View marmarek's full-sized avatar

Marek Marczykowski-Górecki marmarek

View GitHub Profile
{
"local": {
"fun_args": [],
"jid": "20160205212832478474",
"return": {
"output_file_append": false,
"ioflo_realtime": true,
"acceptance_wait_time": 10,
"recon_default": 1000,
"whitelist_modules": [],
{
"local": {
"fun_args": [],
"return": {
"grains": {
"kernel": "Linux",
"osrelease": "8.3",
"kernelrelease": "4.1.13-8.2.pvops.qubes.x86_64",
"osfinger": "Debian-8",
"virtual_subtype": "Xen PV DomU",
@marmarek
marmarek / firewall-learn.pl
Created April 25, 2016 08:46
Qubes firewall learning based on denied connections
#!/usr/bin/perl
# usage:
# sudo tcpdump -vni eth0 port 53 or icmp | perl ./firewall-learn.pl
use strict;
use Data::Dumper;
use Sys::Hostname;
@marmarek
marmarek / dom0.sls
Last active October 28, 2016 21:23
Martus salt configuration for Qubes OS
include:
- qvm.template-debian-8
- qvm.sys-whonix
debian-8-martus:
qvm.clone:
- source: debian-8
- label: black
This file has been truncated, but you can view the full file.
--> Preparing the image
mke2fs 1.42.13 (17-May-2015)
Discarding device blocks: 4096/5242880 done
Creating filesystem with 5242880 4k blocks and 1310720 inodes
Filesystem UUID: 20d3de7d-2ffd-4e4e-b709-2ce331b398ac
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: 0/160 done
This file has been truncated, but you can view the full file.
--> Preparing the image
mke2fs 1.42.13 (17-May-2015)
Discarding device blocks: 4096/5242880 done
Creating filesystem with 5242880 4k blocks and 1310720 inodes
Filesystem UUID: 5ee4842c-5eb3-4a09-a8e8-f8deb1ef452d
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: 0/160 done
This file has been truncated, but you can view the full file.
--> Preparing the image
mke2fs 1.42.13 (17-May-2015)
Discarding device blocks: 4096/5242880 done
Creating filesystem with 5242880 4k blocks and 1310720 inodes
Filesystem UUID: 8f691fb6-f02c-4d8d-8aeb-fa78a24cc8a9
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: 0/160 done
# =====================================================================
# Example HVM guest configuration
# =====================================================================
#
# This is a fairly minimal example of what is required for an
# HVM guest. For a more complete guide see xl.cfg(5)
# This configures an HVM rather than PV guest
builder = "hvm"
diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c
index 236bdd0..555ac73 100644
--- a/tools/libxl/libxl_pci.c
+++ b/tools/libxl/libxl_pci.c
@@ -111,6 +111,7 @@ int libxl__create_pci_backend(libxl__gc *gc, uint32_t domid,
static int libxl__device_pci_add_xenstore(libxl__gc *gc, uint32_t domid, libxl_device_pci *pcidev, int starting)
{
+ libxl_ctx *ctx = libxl__gc_owner(gc);
flexarray_t *back;
This file has been truncated, but you can view the full file.
--> Preparing the image
mke2fs 1.42.13 (17-May-2015)
Discarding device blocks: 4096/5242880 done
Creating filesystem with 5242880 4k blocks and 1310720 inodes
Filesystem UUID: 36cb0491-3900-4f5f-a869-85765ab23061
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: 0/160 done