[LTP] [PATCH v5 3/3] Test for CVE-2016-10044 mark AIO pseudo-fs noexec
Cyril Hrubis
chrubis@suse.cz
Wed Sep 13 15:42:42 CEST 2017
Hi!
Pushed whole patchset, thanks.
And this test was pushed with a diff:
diff --git a/testcases/cve/cve-2016-10044.c b/testcases/cve/cve-2016-10044.c
index 4861647a0..7928d2765 100644
--- a/testcases/cve/cve-2016-10044.c
+++ b/testcases/cve/cve-2016-10044.c
@@ -62,6 +62,9 @@ found_mapping:
tst_res(TFAIL, "AIO mapping is executable: %s!", perms);
else
tst_res(TPASS, "AIO mapping is not executable: %s", perms);
+
+ SAFE_FCLOSE(f);
+ f = NULL;
}
That closes the file in a case that someone will run the test with -i, which
does not make much sense but I've added that for the sake of completness.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list