diff options
| author | Christian Brauner <[email protected]> | 2025-02-19 10:01:52 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2025-02-19 13:32:12 +0000 |
| commit | a1579f6bf657d3906de47819e8fd773e2452de0f (patch) | |
| tree | 566876ff4c47e603c2592214c6c5ab50170541f4 /tools/testing/selftests/filesystems/utils.h | |
| parent | selftests/ovl: add second selftest for "override_creds" (diff) | |
| download | kernel-a1579f6bf657d3906de47819e8fd773e2452de0f.tar.gz kernel-a1579f6bf657d3906de47819e8fd773e2452de0f.zip | |
selftests/ovl: add third selftest for "override_creds"
Add a simple test to verify that the new "override_creds" option works.
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Amir Goldstein <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/testing/selftests/filesystems/utils.h')
| -rw-r--r-- | tools/testing/selftests/filesystems/utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/filesystems/utils.h b/tools/testing/selftests/filesystems/utils.h index f35001a75f99..7f1df2a3e94c 100644 --- a/tools/testing/selftests/filesystems/utils.h +++ b/tools/testing/selftests/filesystems/utils.h @@ -24,6 +24,7 @@ extern int get_userns_fd(unsigned long nsid, unsigned long hostid, unsigned long range); extern int caps_down(void); +extern int cap_down(cap_value_t down); extern bool switch_ids(uid_t uid, gid_t gid); |
