mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-22 17:55:57 +01:00
Add a non-root user user0 password "a"
This commit is contained in:
@@ -2,9 +2,10 @@ BR2_GLOBAL_PATCH_DIR="../global_patch_dir"
|
|||||||
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="../kernel_config_fragment"
|
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="../kernel_config_fragment"
|
||||||
BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="../busybox_config_fragment"
|
BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="../busybox_config_fragment"
|
||||||
BR2_PACKAGE_KERNEL_MODULE=y
|
BR2_PACKAGE_KERNEL_MODULE=y
|
||||||
BR2_PACKAGE_OVERRIDE_FILE=../buildroot_override
|
BR2_PACKAGE_OVERRIDE_FILE="../buildroot_override"
|
||||||
BR2_PACKAGE_STRACE=y
|
BR2_PACKAGE_STRACE=y
|
||||||
BR2_ROOTFS_OVERLAY="../rootfs_overlay"
|
BR2_ROOTFS_OVERLAY="../rootfs_overlay"
|
||||||
|
BR2_ROOTFS_USERS_TABLES="../user_table"
|
||||||
|
|
||||||
## Host GDB
|
## Host GDB
|
||||||
BR2_GDB_VERSION="7.11.1"
|
BR2_GDB_VERSION="7.11.1"
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ These programs can also be compiled and used on host.
|
|||||||
1. [init_hello](init_hello.c)
|
1. [init_hello](init_hello.c)
|
||||||
1. [usermem](usermem.c)
|
1. [usermem](usermem.c)
|
||||||
1. [pagemap_dump](pagemap_dump.c)
|
1. [pagemap_dump](pagemap_dump.c)
|
||||||
|
1. [uio_read](uio_read.c)
|
||||||
1. Module tests
|
1. Module tests
|
||||||
1. [anonymous_inode](anonymous_inode.c)
|
1. [anonymous_inode](anonymous_inode.c)
|
||||||
1. [poll](poll.c)
|
1. [poll](poll.c)
|
||||||
|
|||||||
2
run
2
run
@@ -29,10 +29,8 @@ case "$arch" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Otherwise compiled
|
|
||||||
cd kernel_module
|
cd kernel_module
|
||||||
./make-host.sh clean
|
./make-host.sh clean
|
||||||
|
|
||||||
cd ../buildroot
|
cd ../buildroot
|
||||||
for p in $(find '../buildroot_patches/' -maxdepth 1 -name '*.patch' -print); do
|
for p in $(find '../buildroot_patches/' -maxdepth 1 -name '*.patch' -print); do
|
||||||
patch -N -r - -p 1 <"$p" || :
|
patch -N -r - -p 1 <"$p" || :
|
||||||
|
|||||||
1
user_table
Normal file
1
user_table
Normal file
@@ -0,0 +1 @@
|
|||||||
|
user0 -1 user0 -1 =a /home/user0 /bin/sh - user0
|
||||||
Reference in New Issue
Block a user