[Bug 281751] Unable to start jail from vty1... virtual terminal

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 28 Sep 2024 14:03:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751

            Bug ID: 281751
           Summary: Unable to start jail from vty1... virtual terminal
           Product: Base System
           Version: 14.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: lexa@libraw.com

When using direct attached console (monitor/keyboard) it is not possible to
start jail from console different from console 0 (ttyv0)

$ tty
/dev/ttyv1
$ service jail onestart jailname 

results in
 Starting jails: cannot start jail "jailname"
ID
 jail: jailname: jail_attach: Operation not permitted
 jail: jailname: /bin/sh /etc/rc: failed

On FreeBSD 13.3 it works from any virtual console. 

Network tty (e.g. ssh localhost from ttyv1) works fine too.

I use standard non-modified /etc/defaults/devfs.rules
It does not contain any unhide for ttyv*  on both FreeBSD 14.1 and 13.3, so the
problem is probably not here.

-- 
You are receiving this mail because:
You are the assignee for the bug.