[LTP] [PATCH 1/1] ima_setup.sh: Use tst_umount()
Petr Vorel
pvorel@suse.cz
Tue Sep 22 19:22:13 CEST 2026
Hi Mimi,
FYI I dared to merge following old proposal as
https://github.com/linux-test-project/ltp/commit/fc4c633f627121564e61c7cb3412976946c71562
to follow the approach used in other LTP tests (FYI we use the same approach
also for C based tests, see lib/tst_device.c). We can further improve the
function if needed (reduce number of loops or suggest another daemon).
Or finally remove it if it's really not needed.
Kind regards,
Petr
> > > ---
> > > testcases/kernel/security/integrity/ima/tests/ima_setup.sh | 2 +-
> > > 1 file changed, 1 insertion(+), 1 deletion(-)
> > > diff --git a/testcases/kernel/security/integrity/ima/tests/ima_setup.sh b/testcases/kernel/security/integrity/ima/tests/ima_setup.sh
> > > index 19f00532b1..054ab28611 100644
> > > --- a/testcases/kernel/security/integrity/ima/tests/ima_setup.sh
> > > +++ b/testcases/kernel/security/integrity/ima/tests/ima_setup.sh
> > > @@ -313,7 +313,7 @@ ima_cleanup()
> > > [ -n "$TST_CLEANUP_CALLER" ] && $TST_CLEANUP_CALLER
> > > for dir in $UMOUNT; do
> > > - umount $dir
> > > + tst_umount $dir
> > > done
> > > if [ "$IMA_POLICY_LOADED" = 1 ]; then
More information about the ltp
mailing list