git: jail: Allow jails to mount nullfs(5) and tmpfs(5)

Antonio Huete Jimenez tuxillo at crater.dragonflybsd.org
Tue Dec 3 11:44:52 PST 2019


commit 79581113ea95163a11c7939af918146fc1c06cc3
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Date:   Tue Dec 3 17:59:25 2019 +0000

    jail: Allow jails to mount nullfs(5) and tmpfs(5)
    
     - The code is structured in a way that it should be easy to add more
       filesystems in the future.
     - User mounts are disabled in jails for now.
     - It is not allowed for jails to unmount filesystems that were not mounted
       within the jail itself.
    
    Reviewed by: dillon, mjg

Summary of changes:
 sys/kern/kern_jail.c    | 33 +++++++++++++++++
 sys/kern/vfs_syscalls.c | 94 ++++++++++++++++++++++++++++++++++++++-----------
 sys/kern/vfs_vfsops.c   |  2 ++
 3 files changed, 108 insertions(+), 21 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/79581113ea95163a11c7939af918146fc1c06cc3


-- 
DragonFly BSD source repository


More information about the Commits mailing list