Add a non-root user user0 password "a"

This commit is contained in:
Ciro Santilli
2017-08-06 10:19:37 +01:00
parent 879001563a
commit b2459d07f5
4 changed files with 4 additions and 3 deletions

View File

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

View File

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

2
run
View File

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

1
user_table Normal file
View File

@@ -0,0 +1 @@
user0 -1 user0 -1 =a /home/user0 /bin/sh - user0