Re: [PATCH v9 10/10] selftests: add openat2(2) selftests

2019-07-07 Thread Aleksa Sarai
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 > > +++

Re: [PATCH v9 10/10] selftests: add openat2(2) selftests

2019-07-07 Thread Michael Ellerman
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

[PATCH v9 10/10] selftests: add openat2(2) selftests

2019-07-06 Thread Aleksa Sarai
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