mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Add FreeBSD jail support hooks
Add the 'zfs jail/unjail' subcommands along with the relevant documentation from FreeBSD. This feature is not supported on Linux and still requires the match kernel ioctls which will be included when the FreeBSD platform code is integrated. Reviewed-by: Jorgen Lundman <lundman@lundman.net> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Matt Macy <mmacy@FreeBSD.org> Signed-off-by: Ryan Moeller <ryan@ixsystems.com> Closes #9686
This commit is contained in:
committed by
Brian Behlendorf
parent
657ce25357
commit
4bc721965f
@@ -361,7 +361,7 @@ do_unmount(const char *mntpt, int flags)
|
||||
}
|
||||
|
||||
int
|
||||
zfs_can_user_mount(void)
|
||||
zfs_mount_delegation_check(void)
|
||||
{
|
||||
return (geteuid() == 0);
|
||||
return ((geteuid() != 0) ? EACCES : 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user