selftests/landlock: Clean up error logs related to capabilities

It doesn't help to call TH_LOG() for every cap_*() error. Let's only
log errors returned by the kernel, not by libcap specificities.

Link: https://lore.kernel.org/r/20240125153230.3817165-3-mic@digikod.net
Signed-off-by: Mickaël Salaün <mic@digikod.net>
This commit is contained in:
Mickaël Salaün 2024-01-25 16:32:30 +01:00
commit a3f16298b3
No known key found for this signature in database
GPG key ID: E5E3D0E88C82F6D2