]> code.ossystems Code Review - openembedded-core.git/commit
rootfs-postcommands: Improve/fix rootfs_check_host_user_contaminated
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 22 Jun 2020 10:57:17 +0000 (11:57 +0100)
committerSteve Sakoman <steve@sakoman.com>
Tue, 7 Jul 2020 00:33:20 +0000 (14:33 -1000)
commit602162c0e33b429b8254de04af72a2aa5111867a
tree998d8b56d43edc38fa043ab2ec952e5cd8ba94b8
parent198fe0d64e4bdeda84c0f3e44afcc1d99ca9dbbe
rootfs-postcommands: Improve/fix rootfs_check_host_user_contaminated

Currently if the find command finds /home it stops checking the other
files. Tweak the find expression to fix this.

Also, from Alex Kiernan <alex.kiernan@gmail.com>, generate output for
each contaminated path so it's visible in the main log file.

When matches are found, dump the data from the group and passwd files
so useful debugging can be done based on the results.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 504f1d158bf7c6ad08fbce755021db2b14565231)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/rootfs-postcommands.bbclass