Adds permission management for loading plugins --------- Co-authored-by: Jan Beich <jbeich@FreeBSD.org>