On Thu, Dec 3, 2020 at 11:14 AM KP Singh <kpsingh@xxxxxxxxxxxx> wrote: > > From: KP Singh <kpsingh@xxxxxxxxxx> > > # 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. > Thanks, I think this reads much better. And a few months from now it would be easier to understand and page back the context, if necessary. I've pushed your fixes. ima selftest still emits a bunch of extra output from dd and maybe other commands: 10+0 records in 10+0 records out 10485760 bytes (10.0MB) copied, 0.037096 seconds, 269.6MB/s Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 2560 inodes, 10240 blocks 512 blocks (5%) reserved for the super user First data block=1 Maximum filesystem blocks=262144 2 block groups 8192 blocks per group, 8192 fragments per group 1280 inodes per group Superblock backups stored on blocks: 8193 Please follow up at your earliest convenience to silence those in default (non-verbose) mode. > KP Singh (4): > selftests/bpf: Update ima_setup.sh for busybox > selftests/bpf: Ensure securityfs mount before writing ima policy > selftests/bpf: Add config dependency on BLK_DEV_LOOP > selftests/bpf: Indent ima_setup.sh with tabs. > > tools/testing/selftests/bpf/config | 1 + > tools/testing/selftests/bpf/ima_setup.sh | 107 +++++++++++++---------- > 2 files changed, 64 insertions(+), 44 deletions(-) > > -- > 2.29.2.576.ga3fc446d84-goog >