]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/caputils: add fall back for last cap using prctl.
authorÉrico Rolim <erico.erc@gmail.com>
Sun, 15 Nov 2020 04:34:41 +0000 (01:34 -0300)
committerÉrico Rolim <erico.erc@gmail.com>
Wed, 18 Nov 2020 17:39:33 +0000 (14:39 -0300)
commit5d95818757941bc609e5aeec5e2218f7d35a6e19
treebfb8f0bca93b58915d3a11fb03ca2411e9faedda
parente411b8a63d4a44ac191b5ca032c4639b12d4b838
lib/caputils: add fall back for last cap using prctl.

This allows the rest of the programs using cap_last_cap to trust the
value returned by it, since it will either be obtained from procfs
(straight from kernel) or with prctl.

Also checked if the file under /proc is actually mounted in a procfs.
lib/caputils.c