Skip to content

Instantly share code, notes, and snippets.

View lattera's full-sized avatar

Shawn Webb lattera

View GitHub Profile
I decided to switch HardenedBSD to self-hosted git last year in order
to unify our infrastructure. Part of my mentality is one of
self-sustainment. The less HardenedBSD depends on third parties, the
better.
At the risk of sounding hypocritical, I would like to see network
transparency reports from GitHub. I'd like to see network flow
diagrams and system/network hardening procedures.
I also realize that we're still somewhat dependant on GitHub since we
# Poudriere can optionally use ZFS for its ports/jail storage. For
# ZFS define ZPOOL, otherwise set NO_ZFS=yes
#
#### ZFS
# The pool where poudriere will create all the filesystems it needs
# poudriere will use tank/${ZROOTFS} as its root
#
# You need at least 7GB of free space in this pool to have a working
# poudriere.
Script started on Thu Nov 14 22:34:17 2019
Command: ipmitool -H 172.16.1.51 -U ADMIN -P '' -I lanplus sol activate
[SOL Session operational. Use ~? for help]
Rom...
CRC: len=0xf080, cal=0x27ff5de9, img=0x27ff5de9, match!
Loading from boot device SPI NOR
Header:
000|0x23ffdc0: 01 02 FF FF 4C 46 43 53 00 04 00 00 10 FB 05 00
010|0x23ffdd0: 01 04 FF FF 4C 46 43 53 00 00 06 00 D8 92 00 00
# Poudriere can optionally use ZFS for its ports/jail storage. For
# ZFS define ZPOOL, otherwise set NO_ZFS=yes
#
#### ZFS
# The pool where poudriere will create all the filesystems it needs
# poudriere will use tank/${ZROOTFS} as its root
#
# You need at least 7GB of free space in this pool to have a working
# poudriere.
diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c
index c6dc4ca064b7..79550e4e1daf 100644
--- a/contrib/telnet/telnet/commands.c
+++ b/contrib/telnet/telnet/commands.c
@@ -55,6 +55,7 @@ __FBSDID("$FreeBSD$");
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
+#include <sysexits.h>
#include <unistd.h>
diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c
index c6dc4ca064b7..01a21302cc32 100644
--- a/contrib/telnet/telnet/commands.c
+++ b/contrib/telnet/telnet/commands.c
@@ -1655,14 +1655,12 @@ env_init(void)
|| (strncmp((char *)ep->value, "unix:", 5) == 0))) {
char hbuf[256+1];
char *cp2 = strchr((char *)ep->value, ':');
- size_t buflen;
diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c
index a2dcd26efd30..c6dc4ca064b7 100644
--- a/contrib/telnet/telnet/commands.c
+++ b/contrib/telnet/telnet/commands.c
@@ -45,6 +45,7 @@ __FBSDID("$FreeBSD$");
#include <sys/socket.h>
#include <netinet/in.h>
+#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/mman.h>
int
main(int argc, char *argv[])
Loading kernel...
/boot/kernel/kernel text=0x8ec200 data=0x17f840+0x84aaa4 syms=[0x8+0x130f08+0x8+0x1205e9]
Loading configured modules...
/boot/entropy size=0x1000
No valid device tree blob found!
WARNING! Trying to fire up the kernel, but no device tree blob found!
EFI framebuffer information:
addr, size 0x40000000, 0x300000
dimensions 1024 x 768
stride 1024
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int
main(int argc, char *argv[])
{
while (printf("%d\n", getpid()))
sleep(15);