Move all non-README links to cirosantilli.com where the file is not cut off...

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-07-07 00:00:01 +00:00
parent ec74746707
commit 28cd27f969
380 changed files with 419 additions and 419 deletions

View File

@@ -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

View File

@@ -1 +1 @@
https://github.com/cirosantilli/linux-kernel-module-cheat#rootfs_overlay
https://cirosantilli.com/linux-kernel-module-cheat#rootfs_overlay

View File

@@ -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

View File

@@ -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')" ]

View File

@@ -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:-}"

View File

@@ -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)"

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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 ]

View File

@@ -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

View File

@@ -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

View File

@@ -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