Implement secpolicy_* functions

Based on Linux POSIX style capabilities.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Massimo Maggi<massimo@mmmm.it>