git: kernel - Disable disk media access for RESTRICTEDROOT environments

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Oct 13 21:15:53 PDT 2023


commit 71e85ce439f316fe9a1f4dc3d469dad74c93f72a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Oct 13 21:11:42 2023 -0700

    kernel - Disable disk media access for RESTRICTEDROOT environments
    
    * Do not allow disk media (e.g. /dev/da0 and so forth) to be accessed
      if RESTRICTEDROOT is active.  Note that RESTRICTEDROOT is automatically
      set for jails.

Summary of changes:
 sys/kern/subr_disk.c | 8 ++++++++
 1 file changed, 8 insertions(+)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/71e85ce439f316fe9a1f4dc3d469dad74c93f72a


-- 
DragonFly BSD source repository


More information about the Commits mailing list