test: skip test-cgroup-id on ENOSYS from cg_cgroupid_open
authorNick Rosbrook <enr0n@ubuntu.com>
Thu, 20 Jun 2024 15:27:03 +0000 (11:27 -0400)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 Jun 2024 13:56:42 +0000 (15:56 +0200)
commit82f57401d933596746c32a955773bc70be53b0ac
treed11829470bbd94b33f7dfedf7720bff40f4c1c81
parent2c1ada796a3951f66e7961d2a73fdbe60be80362
test: skip test-cgroup-id on ENOSYS from cg_cgroupid_open

Most container managers will block open_by_handle_at with seccomp to
mitigate a container escape attack. LXD in particular returns ENOSYS
rather than e.g. EPERM like nspawn. Skip this test if we get ENOSYS
from open_by_handle_at via cg_cgroupid_open.
src/test/test-cgroup.c