On 2019-07-08, Michael Ellerman wrote:
> Aleksa Sarai writes:
> > diff --git a/tools/testing/selftests/openat2/Makefile
> > b/tools/testing/selftests/openat2/Makefile
> > new file mode 100644
> > index ..8235a49928f6
> > --- /dev/null
> > +++
Hi Aleksa,
A few minor comments below.
Aleksa Sarai writes:
> diff --git a/tools/testing/selftests/openat2/Makefile
> b/tools/testing/selftests/openat2/Makefile
> new file mode 100644
> index ..8235a49928f6
> --- /dev/null
> +++ b/tools/testing/selftests/openat2/Makefile
> @@ -0,0
Test all of the various openat2(2) flags, as well as how file
descriptor re-opening works. A small stress-test of a symlink-rename
attack is included to show that the protections against ".."-based
attacks are sufficient.
In addition, the memfd selftest is fixed to no longer depend on the