umh: simplify the capability pointer logic
The usermodehelper code uses two fake pointers for the two capability
cases: CAP_BSET for reading and writing 'usermodehelper_bset', and
CAP_PI to read and write 'usermodehelper_inheritable'.
This seems to be a completely unnecessary indirection, since we could
instead just use the pointers themselves, and never have to do any "if
this then that" kind of logic.
So just get rid of the fake pointer values, and use the real pointer
Reviewed-by: Luis Chamberlain <firstname.lastname@example.org>
Cc: Eric Biederman <email@example.com>
Cc: Peter Zijlstra <firstname.lastname@example.org>
Cc: Christoph Hellwig <email@example.com>
Cc: Kees Cook <firstname.lastname@example.org>
Cc: Iurii Zaikin <email@example.com>
Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
1 file changed