namespace: Add hidepid/subset support check
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 27 Oct 2022 11:14:12 +0000 (13:14 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 1 Nov 2022 15:12:58 +0000 (16:12 +0100)
commit1c265fcd5963603d338233840129ecad8d9c1420
treebfe648bc8a7e16b17800a22e22c9c2dabd95550a
parent300bba79c22e4be1effe2faad0e59ac725d396a1
namespace: Add hidepid/subset support check

Using fsopen()/fsconfig(), we can check if hidepid/subset are supported to
avoid the noisy logs from the kernel if they aren't supported. This works
on centos/redhat 8 as well since they've backported fsopen()/fsconfig().
meson.build
src/basic/missing_syscall.h
src/core/namespace.c