mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
Move all non-README links to cirosantilli.com where the file is not cut off...
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# https://github.com/cirosantilli/linux-kernel-module-cheat#busybox-shell-initrc-files
|
||||
# https://cirosantilli.com/linux-kernel-module-cheat#busybox-shell-initrc-files
|
||||
echo "hello .profile"
|
||||
export PS1='\w\n\u@\h# '
|
||||
cd /lkmc
|
||||
|
||||
@@ -1 +1 @@
|
||||
https://github.com/cirosantilli/linux-kernel-module-cheat#rootfs_overlay
|
||||
https://cirosantilli.com/linux-kernel-module-cheat#rootfs_overlay
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# https://github.com/cirosantilli/linux-kernel-module-cheat#init-busybox
|
||||
# https://cirosantilli.com/linux-kernel-module-cheat#init-busybox
|
||||
echo "hello S98"
|
||||
cd "$lkmc_home"
|
||||
if [ -n "$lkmc_eval" ]; then
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# https://github.com/cirosantilli/linux-kernel-module-cheat#anonymous-inode
|
||||
# https://cirosantilli.com/linux-kernel-module-cheat#anonymous-inode
|
||||
set -e
|
||||
insmod anonymous_inode.ko
|
||||
[ "$(./kernel_modules/anonymous_inode.out /sys/kernel/debug/lkmc_anonymous_inode 3)" = "$(printf '1\n10\n100')" ]
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
# https://github.com/cirosantilli/linux-kernel-module-cheat#find-the-kernel-config
|
||||
# https://cirosantilli.com/linux-kernel-module-cheat#find-the-kernel-config
|
||||
zcat /proc/config.gz | grep -Ei "${1:-}"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
# https://github.com/cirosantilli/linux-kernel-module-cheat#replace-init
|
||||
# https://cirosantilli.com/linux-kernel-module-cheat#replace-init
|
||||
cd "$lkmc_home"
|
||||
eval "$(printf "$lkmc_eval" | base64 -d)"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# https://github.com/cirosantilli/linux-kernel-module-cheat#gem5-restore-new-script
|
||||
# https://cirosantilli.com/linux-kernel-module-cheat#gem5-restore-new-script
|
||||
m5 checkpoint
|
||||
m5 resetstats
|
||||
m5 readfile | sh
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
# To be able to do init=/gem5_exit.sh, since kernel CLI argument passing is too messy:
|
||||
# https://github.com/cirosantilli/linux-kernel-module-cheat#init-arguments
|
||||
# https://cirosantilli.com/linux-kernel-module-cheat#init-arguments
|
||||
m5 exit
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# https://github.com/cirosantilli/linux-kernel-module-cheat#ioctl
|
||||
# https://cirosantilli.com/linux-kernel-module-cheat#ioctl
|
||||
set -e
|
||||
f=/sys/kernel/debug/lkmc_ioctl
|
||||
insmod ioctl.ko
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
# https://github.com/cirosantilli/linux-kernel-module-cheat#tty
|
||||
# https://cirosantilli.com/linux-kernel-module-cheat#tty
|
||||
exec /bin/login root
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# https://github.com/cirosantilli/linux-kernel-module-cheat#netlink-sockets
|
||||
# https://cirosantilli.com/linux-kernel-module-cheat#netlink-sockets
|
||||
set -e
|
||||
insmod netlink.ko
|
||||
[ "$(./linux/netlink.out)" = 0 ]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# https://github.com/cirosantilli/linux-kernel-module-cheat#poll
|
||||
# https://cirosantilli.com/linux-kernel-module-cheat#poll
|
||||
set -e
|
||||
insmod poll.ko
|
||||
./kernel_modules/poll.out /sys/kernel/debug/lkmc_poll
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
# https://github.com/cirosantilli/linux-kernel-module-cheat#magic-failure-string
|
||||
# https://cirosantilli.com/linux-kernel-module-cheat#magic-failure-string
|
||||
echo lkmc_exit_status_1
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# https://github.com/cirosantilli/linux-kernel-module-cheat#uio
|
||||
# https://cirosantilli.com/linux-kernel-module-cheat#uio
|
||||
set -e
|
||||
modprobe uio_pci_generic
|
||||
# pci_min device
|
||||
|
||||
Reference in New Issue
Block a user