aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorGünther Noack <[email protected]>2022-10-18 20:22:13 +0200
committerMickaël Salaün <[email protected]>2022-10-19 09:01:46 +0200
commita1a202a581817312a02b4d0daa6ca16f701f1e8a (patch)
treee123bf25e7c80858a956157a8b40b18a68979222 /drivers/usb/cdns3/cdns3-debug.h
parent97b30f9e35709e9d2885efc5c1cd0bf54331ea3d (diff)
selftests/landlock: Test FD passing from restricted to unrestricted processes
A file descriptor created in a restricted process carries Landlock restrictions with it which will apply even if the same opened file is used from an unrestricted process. This change extracts suitable FD-passing helpers from base_test.c and moves them to common.h. We use the fixture variants from the ftruncate fixture to exercise the same scenarios as in the open_and_ftruncate test, but doing the Landlock restriction and open() in a different process than the ftruncate() call. Signed-off-by: Günther Noack <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mickaël Salaün <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions