Skip to content

Add checks for "host user contamination"

Christopher Larson openembedded-core 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 8 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3insane.bbclass: handle tests which need fakerootmeta/classes/insane.bbclass+8 -00 replies
2/3insane.bbclass: add host-user-contaminated testmeta/classes/insane.bbclass+35 -20 replies
3/3image.bbclass: add rootfs_check_host_user_contaminatedmeta/classes/image.bbclass+14 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/3] Add checks for "host user contamination"

From: Christopher Larson <[email protected]>

This adds a QA test, as well as a rootfs_ function for use in ROOTFS_POSTPROCESS_COMMAND, to warn/error when paths are owned by the same user/group as the user running bitbake. This is useful to catch stuff which is written outside of pseudo's control, for example.

v2 changes: handle missing files in the host-user-contamined test by catching ENOENT OSErrors from os.lstat.

The following changes since commit bdeb32b4cdbe316f17c2fd854d59e05e8f2e8ffc:

rt-tests: drop unnecessary added-missing-dependencies.patch (2015-09-01 11:43:38 +0100)

are available in the git repository at:

git://github.com/kergoth/openembedded-core host-user-contaminated
https://github.com/kergoth/openembedded-core/tree/host-user-contaminated

Christopher Larson (3):
insane.bbclass: handle tests which need fakeroot insane.bbclass: add host-user-contaminated test image.bbclass: add rootfs_check_host_user_contaminated

 meta/classes/image.bbclass  | 14 ++++++++++++++
 meta/classes/insane.bbclass | 43 ++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 56 insertions(+), 1 deletion(-)
Signature · 1 line
2.2.1