[LTP] [PATCH v1] security/dirtyc0w_shmem: Add new test for CVE-2022-2590
David Hildenbrand
david@redhat.com
Fri Nov 25 12:37:46 CET 2022
>> +static void cleanup(void)
>> +{
>> + SAFE_UMOUNT(TMP_DIR);
>> +}
>> +
>> +static struct tst_test test = {
>> + .needs_checkpoints = 1,
>> + .forks_child = 1,
>> + .needs_root = 1,
>
> We are missing .needs_tmpdir flag here, otherwise the test will create
> the the TMPDIR in PWD which may fail in certain setups.
I just noticed that compilation now says:
testcases/kernel/security/dirtyc0w_shmem/dirtyc0w_shmem.c: useless tag:
needs_tmpdir
So is "needs_tmpdir" indeed usless or are we missing something else?
--
Thanks,
David / dhildenb
More information about the ltp
mailing list