Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calling tst_brk from shell subprocess $() causes failure to umount tmp device due subprocess cwd still being in the mounted directory: # PATH="/opt/ltp/testcases/bin:$PATH" ima_tpm.sh ... ima_tpm 1 TINFO: $TMPDIR is on tmpfs => run on loop device ima_tpm 1 TCONF: Cannot find digest index (template: 'ima-buf') umount: /tmp/LTP_ima_tpm.GBmcnMKvVE/mntpoint: target is busy. ima_tpm 1 TINFO: umount(/tmp/LTP_ima_tpm.GBmcnMKvVE/mntpoint) failed, try 1 ... ima_tpm 1 TINFO: Likely gvfsd-trash is probing newly mounted fs, kill it to speed up tests. ... ima_tpm 1 TWARN: Failed to umount(/tmp/LTP_ima_tpm.s5k30zgS3o/mntpoint) after 50 retries tst_device.c:269: TWARN: ioctl(/dev/loop7, LOOP_CLR_FD, 0) no ENXIO for too long Fixed by redirecting output to the file: # PATH="/opt/ltp/testcases/bin:$PATH" ima_tpm.sh ... ima_tpm 1 TINFO: $TMPDIR is on tmpfs => run on loop device ima_tpm 1 TWARN: Cannot find digest index (template: 'ima-buf') ima_tpm 1 TBROK: failed to get algorithm/digest Fixes: ef1de0c ("IMA: Move get_algorithm_digest(), set_digest_index() to ima_setup.sh") Signed-off-by: Petr Vorel <[email protected]>
- Loading branch information