Please sign in to comment.
kernel/sysctl.c: add cap_last_cap to /proc/sys/kernel
Userspace needs to know the highest valid capability of the running kernel, which right now cannot reliably be retrieved from the header files only. The fact that this value cannot be determined properly right now creates various problems for libraries compiled on newer header files which are run on older kernels. They assume capabilities are available which actually aren't. libcap-ng is one example. And we ran into the same problem with systemd too. Now the capability is exported in /proc/sys/kernel/cap_last_cap. [firstname.lastname@example.org: make cap_last_cap const, per Ulrich] Signed-off-by: Dan Ballard <email@example.com> Cc: Randy Dunlap <firstname.lastname@example.org> Cc: Ingo Molnar <email@example.com> Cc: Lennart Poettering <firstname.lastname@example.org> Cc: Kay Sievers <email@example.com> Cc: Ulrich Drepper <firstname.lastname@example.org> Cc: James Morris <email@example.com> Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
- Loading branch information...
Showing with 17 additions and 0 deletions.