From b2459d07f5da6c1070afc97e1958bfd35cdd2299 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Sun, 6 Aug 2017 10:19:37 +0100 Subject: [PATCH] Add a non-root user user0 password "a" --- buildroot_config_fragment | 3 ++- kernel_module/user/README.md | 1 + run | 2 -- user_table | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 user_table diff --git a/buildroot_config_fragment b/buildroot_config_fragment index 740f192..36373ff 100644 --- a/buildroot_config_fragment +++ b/buildroot_config_fragment @@ -2,9 +2,10 @@ BR2_GLOBAL_PATCH_DIR="../global_patch_dir" BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="../kernel_config_fragment" BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="../busybox_config_fragment" BR2_PACKAGE_KERNEL_MODULE=y -BR2_PACKAGE_OVERRIDE_FILE=../buildroot_override +BR2_PACKAGE_OVERRIDE_FILE="../buildroot_override" BR2_PACKAGE_STRACE=y BR2_ROOTFS_OVERLAY="../rootfs_overlay" +BR2_ROOTFS_USERS_TABLES="../user_table" ## Host GDB BR2_GDB_VERSION="7.11.1" diff --git a/kernel_module/user/README.md b/kernel_module/user/README.md index a9a41d5..ce981c3 100644 --- a/kernel_module/user/README.md +++ b/kernel_module/user/README.md @@ -14,6 +14,7 @@ These programs can also be compiled and used on host. 1. [init_hello](init_hello.c) 1. [usermem](usermem.c) 1. [pagemap_dump](pagemap_dump.c) + 1. [uio_read](uio_read.c) 1. Module tests 1. [anonymous_inode](anonymous_inode.c) 1. [poll](poll.c) diff --git a/run b/run index c2876e9..797b613 100755 --- a/run +++ b/run @@ -29,10 +29,8 @@ case "$arch" in ;; esac -# Otherwise compiled cd kernel_module ./make-host.sh clean - cd ../buildroot for p in $(find '../buildroot_patches/' -maxdepth 1 -name '*.patch' -print); do patch -N -r - -p 1 <"$p" || : diff --git a/user_table b/user_table new file mode 100644 index 0000000..deef105 --- /dev/null +++ b/user_table @@ -0,0 +1 @@ +user0 -1 user0 -1 =a /home/user0 /bin/sh - user0