linux-user: Implement capability prctls
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 6 Jan 2022 22:57:38 +0000 (14:57 -0800)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 11 Jan 2022 17:40:44 +0000 (18:40 +0100)
commit4f4e5567f856d9b841494b3b5216a37d2952ee54
tree01d2b2b2a3a319c45231d610786d3dde5cea8da9
parentf746c65909ee6df4b560804bc152cdb3e9ad9bf8
linux-user: Implement capability prctls

This is PR_CAPBSET_READ, PR_CAPBSET_DROP and the "legacy"
PR_CAP_AMBIENT PR_GET_SECUREBITS, PR_SET_SECUREBITS.

All of these arguments are integer values only, and do not
require mapping of values between host and guest.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20220106225738.103012-5-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c