git: kernel - Fix console access by non-root

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Apr 13 22:59:32 PDT 2026


commit 8e1fcac82d60a2fb0c451f71563d5a54dfbdeb3f
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Apr 13 22:56:09 2026 -0700

    kernel - Fix console access by non-root
    
    * Fix console access via /dev/tty or /dev/ttyv* via a user login,
      when logged in as that user.
    
      The priv check was only allowing root access and needed a flag to
      also allow matching users access.
    
    * Note that console access from a restricted root "root" user such
      as from a jail is not allowed (intentionally), because console ioctls
      can be dangerous.
    
    Reported-by: aly, peeterm

Summary of changes:
 sys/dev/misc/syscons/syscons.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8e1fcac82d60a2fb0c451f71563d5a54dfbdeb3f


-- 
DragonFly BSD source repository


More information about the Commits mailing list