Brian Behlendorf e862b7ecfc
Linux 4.10 compat: has_capability()
Stock kernels older than 4.10 do not export the has_capability()
function which is required by commit e59a377.  To avoid breaking
the build on older kernels revert to the safe legacy behavior and
return EACCES when privileges cannot be checked.

Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Reviewed-by: Matt Ahrens <matt@delphix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #10565
Closes #10573
2020-07-19 09:56:21 -07:00
..
2020-04-14 11:36:28 -07:00
2019-06-13 13:15:46 -07:00
2020-06-24 18:19:59 -07:00
2018-05-01 10:33:35 -07:00
2020-07-14 17:31:45 -07:00
2020-02-28 08:58:39 -08:00
2020-06-08 16:32:02 -07:00
2020-06-09 21:24:09 -07:00
2019-10-01 12:50:34 -07:00
2019-10-01 12:50:34 -07:00
2019-08-30 09:40:30 -07:00
2020-07-14 17:31:45 -07:00
2020-06-24 18:19:28 -07:00
2020-07-14 17:33:44 -07:00
2018-11-11 18:06:36 -08:00
2020-07-10 14:26:00 -07:00
2020-07-14 17:33:44 -07:00
2019-10-01 12:50:34 -07:00