diff options
author | Günther Noack <gnoack3000@gmail.com> | 2022-10-18 20:22:14 +0200 |
---|---|---|
committer | Mickaël Salaün <mic@digikod.net> | 2022-10-19 09:01:47 +0200 |
commit | 0d8c658be264eb2106349c50377ef8a81edc0106 (patch) | |
tree | b4551346be295e0cc68d5c31cdba5a9528b0f216 /samples | |
parent | a1a202a581817312a02b4d0daa6ca16f701f1e8a (diff) | |
download | linux-stable-0d8c658be264eb2106349c50377ef8a81edc0106.tar.gz linux-stable-0d8c658be264eb2106349c50377ef8a81edc0106.tar.bz2 linux-stable-0d8c658be264eb2106349c50377ef8a81edc0106.zip |
selftests/landlock: Test ftruncate on FDs created by memfd_create(2)
All file descriptors that are truncatable need to have the Landlock
access rights set correctly on the file's Landlock security blob. This
is also the case for files that are opened by other means than
open(2).
Test coverage for security/landlock is 94.7% of 838 lines according to
gcc/gcov-11.
Signed-off-by: Günther Noack <gnoack3000@gmail.com>
Link: https://lore.kernel.org/r/20221018182216.301684-10-gnoack3000@gmail.com
[mic: Add test coverage in commit message]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions