OSDN Git Service

Merge branch 'Fixes for ima selftest'
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 3 Dec 2020 19:20:21 +0000 (11:20 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 3 Dec 2020 19:20:21 +0000 (11:20 -0800)
KP Singh says:

====================

From: KP Singh <kpsingh@google.com>

# v3 -> v4

* Fix typos.
* Update commit message for the indentation patch.
* Added Andrii's acks.

# v2 -> v3

* Added missing tags.
* Indentation fixes + some other fixes suggested by Andrii.
* Re-indent file to tabs.

The selftest for the bpf_ima_inode_hash helper uses a shell script to
setup the system for ima. While this worked without an issue on recent
desktop distros, it failed on environments with stripped out shells like
busybox which is also used by the bpf CI.

This series fixes the assumptions made on the availablity of certain
command line switches and the expectation that securityfs being mounted
by default.

It also adds the missing kernel config dependencies in
tools/testing/selftests/bpf and, lastly, changes the indentation of
ima_setup.sh to use tabs.
====================

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>

Trivial merge