]> git.ipfire.org Git - thirdparty/lxc.git/commit
lxc/caps: fix open /proc/sys/kernel/cap_last_cap 4533/head
authorAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Wed, 2 Apr 2025 09:01:15 +0000 (11:01 +0200)
committerAlexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Wed, 2 Apr 2025 09:01:15 +0000 (11:01 +0200)
commit3c6ea300b5c087ab5987f7c5b97f139c91216810
treecf3f7e9f4faba366c29ca7c121fdf04f50cce5a2
parentbecd5538e66a5437a661ca1c77580c8c1766b733
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