Giter Club home page Giter Club logo

kernel-hacking's Introduction

KernelTLV Linux Hacking Environment

Purpose

This project includes an environment for building a Linux kernel and kernel modules and running them. The environment is created in a virtual machine using a Debian-based Linux distribution.

Requirements

  1. Vagrant
  2. VirtualBox
  3. The vagrant-vbguest plugin (vagrant plugin install vagrant-vbguest).
  4. ~15GB of free space.

Usage

Run vagrant up where you cloned the repo (where Vagrantfile is) to create a shiny new VM with everything you need in it.

This will take a while, but at the end your home directory inside the VM will have the following:

  • linux-source: Linux kernel sources ready to be compiled with the configuration of the running Debian kernel.
  • boot-backup: A backup of /boot, just in case.
  • khack: Source code for the khack utility.
  • module: Scaffold code for a kernel module.

khack and module are set up to be shared with the host operating system, so you can use your favorite editor to edit files. Everything else can be done the traditional way (compile and install the kernel, etc) or using khack for convenience.

khack

khack is a utility meant to simplify and ease the burden of hacking on the kernel. Its source is available under khack and it can be used as simply khack within the VM as it is symlinked into the right place (see setup_vm.sh).

For example:

  • khack kernel make will build the kernel in ~\linux-source.
  • khack kernel install will install the built kernel so that it will run when the VM is restarted.
  • khack kernel running? will report of the latest compiled kernel is actually running.

Experiment and have fun,

KernelTLV Team

kernel-hacking's People

Contributors

idoby avatar solebox avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.