Category Archives: Fun

Repacking an RPM from files on the system

Have you ever had an RPM installed on the system that you needed installed on another system, but didn’t have the .rpm file for it? Or, have you wanted to make a .rpm file with just a minor change without … Continue reading

Posted in Fun, Linux | Leave a comment

nagios snmp check all disks plugin

Having to manage a wide array of servers with vastly different disk configurations, I found that things began to be very tedious with the nagios configuration file for disks checks. It seemed as if no two server disk configuration was … Continue reading

Posted in Fun, Linux, nagios | 1 Comment

How to hook into (hijack) linux kernel functions via LKM

It’s about time I post a detailed explanation about how my tpe-lkm module is able to enforce its security policy. This post is very technical, readers beware. Note that this writeup is based on the code as it was the … Continue reading

Posted in Fun, ksplice, Linux, Security | Leave a comment

How I license code

If you’ve looked at any of my original code lately, you might have noticed how I license it at the top of said code: # # Originally written by Corey Henderson # # Dual-Licensed – you may choose between: # … Continue reading

Posted in Fun, Notices | Leave a comment

Kidnapping a process’s pwd and root

This evening I wrote a chunk of code that, given a PID, goes and does the chdir() and chroot() calls on it to a given directory. That process suddenly finds itself isolated while it’s running. It’s kind of like pulling … Continue reading

Posted in Fun, Linux | Leave a comment

Added “ps” extras feature to tpe-lkm

Since I already had my hands in the tpe-lkm code yesterday, I decided to spend my lunch break coding a feature I’ve been meaning to add in for a while now. I added a new ps extras feature. Since it … Continue reading

Posted in Fun, Linux, Notices, Security | Leave a comment

nagios snmp memory and swap plugin

Since I’m on a nagios and snmp kick this week, here’s a nagios snmp plugin I wrote to check memory and swap. The real difference between this script and the standard nagios plugins for memory / swap, is it takes … Continue reading

Posted in Fun, Linux, nagios | 1 Comment

A nagios snmp plugin that obeys snmp.conf

So there is a currently unresolved issue with the check_snmp nagios plugin where it doesn’t use the snmp.conf file. I use v3 of the protocol, and don’t want to have to put the big long string everywhere in the nagios … Continue reading

Posted in Fun, Linux, nagios | 1 Comment

I found a great VPS host

So I came across little vps a while back, and finally placed an order last week. So far, I’m extremely impressed with their control panel’s functionality, especially their pv-grub option for running your own xen kernel. Their support takes a … Continue reading

Posted in Fun, Linux | Leave a comment

How to use the Ksplice raw utilities

Disclaimer: I have no affiliation with ksplice, I’m just a guy who knows something about hot-patching the linux kernel and figured out how this ksplice thing works. I strongly agree with the sentiment that the ksplice raw utilities is not … Continue reading

Posted in Fun, ksplice, Linux | 1 Comment