selftests: add memfd_create() + sealing tests 07/32907/1
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 8 Aug 2014 21:25:32 +0000 (14:25 -0700)
committerMaciej Wereski <m.wereski@partner.samsung.com>
Mon, 29 Dec 2014 08:31:35 +0000 (09:31 +0100)
commit2322196a3b4f6eb6e253aad18853a23a0b1423f0
tree78af7bbaa51e311bb19f8e4a9a51143e5e876cc4
parent5ea1e3301b22ca848fd1bf21dff65f0abe10e624
selftests: add memfd_create() + sealing tests

Some basic tests to verify sealing on memfds works as expected and
guarantees the advertised semantics.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Acked-by: Hugh Dickins <hughd@google.com>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Ryan Lortie <desrt@desrt.ca>
Cc: Lennart Poettering <lennart@poettering.net>
Cc: Daniel Mack <zonque@gmail.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Change-Id: I9a6bfd2205aa868f327fdb04788a1f6bae23eb17
Origin: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=4f5ce5e8d7e2da3c714df8a7fa42edb9f992fc52
Backported-by: Maciej Wereski <m.wereski@partner.samsung.com>
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
tools/testing/selftests/Makefile
tools/testing/selftests/memfd/.gitignore [new file with mode: 0644]
tools/testing/selftests/memfd/Makefile [new file with mode: 0644]
tools/testing/selftests/memfd/memfd_test.c [new file with mode: 0644]