[LTP] [PATCH] semctl09: Fix EPERM warning in cleanup()

Petr Vorel pvorel@suse.cz
Mon Jan 25 13:23:28 CET 2021


Hi Martin,

> If semctl09 failed in one of the SAFE_*() functions during unprivileged user
> test case, SAFE_SEMCTL() in cleanup() would fail with EPERM because the sem_id
> is owned by root. Make sure that cleanup() always runs with root EUID.

Thanks a lot, merged!

Kind regards,
Petr


More information about the ltp mailing list