]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc/caps: fix open /proc/sys/kernel/cap_last_cap
authorAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Wed, 2 Apr 2025 09:01:15 +0000 (11:01 +0200)
committerStéphane Graber <stgraber@stgraber.org>
Thu, 3 Apr 2025 17:23:50 +0000 (13:23 -0400)
commit77b9cb1dc734034ddcad37e7d999fed7405b66f8
tree56ca090619b230f42f210f33718dcfb25e5d6a8a
parentdfe473705c42d557bb256a9f163624ae7f60dd86
lxc/caps: fix open /proc/sys/kernel/cap_last_cap

Since 7418b27f1 ("tree-wide: use __u32 for capabilities") open
/proc/sys/kernel/cap_last_cap never worked, it was failing with
EXDEV and we were using a fallback codepath to get a last cap.

Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
src/lxc/caps.c