diff options
| author | Eva Kurchatova <eva.kurchatova@virtuozzo.com> | 2026-05-24 19:35:49 +0300 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-05-27 14:11:41 +0200 |
| commit | 00429def23a684f19eb1e95083f4579b3ac73810 (patch) | |
| tree | 244978a9f6da84ac923b1645cebb862774d82c27 /drivers/platform/wmi/tests/git@git.tavy.me:linux.git | |
| parent | 69d18b6c900c8ef61cd89ddbb2cb661631790538 (diff) | |
selftests/clone3: fix libcap interface usage
The test's set_capability() function needs to set CAP_CHECKPOINT_RESTORE
(bit 40). But libcap's API (cap_set_flag) didn't support cap 40 when the
test was written - it was too new. So the author worked around it by
casting cap_t to an assumed internal layout.
This worked with older libcap versions where cap_t pointed directly to
that layout. Newer libcap internally restructured its cap_t opaque type.
Since 2.43, libcap natively supports CAP_CHECKPOINT_RESTORE, workaround
is no longer needed. The fix directly uses the library interface.
Signed-off-by: Eva Kurchatova <eva.kurchatova@virtuozzo.com>
Link: https://patch.msgid.link/20260524163840.34247-2-eva.kurchatova@virtuozzo.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'drivers/platform/wmi/tests/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
