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

2024-09-30 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 Olivier Certner changed: What|Removed |Added Resolution|--- |FIXED Assignee|j...@fr

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

2024-09-30 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #38 from Alex Tutubalin --- (In reply to Olivier Certner from comment #35) And, OF COURSE, disabling pam_xdg in pam.d/session solves the issue. -- You are receiving this mail because: You are the assignee for the bug.

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

2024-09-30 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #37 from Alex Tutubalin --- (In reply to Olivier Certner from comment #35) And, YES, there is no pam_xdg on FreeBSD 13.3 (reinstalled to see it) -- You are receiving this mail because: You are the assignee for the bug.

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

2024-09-30 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #36 from Alex Tutubalin --- (In reply to Olivier Certner from comment #35) 1) fstat -p on ttyv0 (/usr/sbin/jail -c succeeds): USER CMD PID FD MOUNT INUM MODE SZ|DV R/W root sh 6384 text

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

2024-09-30 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 Olivier Certner changed: What|Removed |Added CC||o...@freebsd.org --- Comment #35

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

2024-09-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #34 from Alex Tutubalin --- (In reply to Kyle Evans from comment #33) tried: dtrace -n 'fbt:::return /(int)arg1 == EPERM && pid == $pid/ { stack(); }' -c '/usr/sbin/jail -c example' it says: dtrace: description 'fbt::return '

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

2024-09-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 Kyle Evans changed: What|Removed |Added CC||kev...@freebsd.org --- Comment #33 fr

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

2024-09-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #32 from Alex Tutubalin --- (In reply to Konstantin Belousov from comment #28) Also, removing mac_ntpd (by not running ntpd) does not change anything. -- You are receiving this mail because: You are the assignee for the bug.

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

2024-09-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #31 from Alex Tutubalin --- (In reply to Konstantin Belousov from comment #30) The FreeBSD jtest14 15.0-CURRENT FreeBSD 15.0-CURRENT #0 main-n272495-6a4f0c063718: Thu Sep 26 03:46:06 UTC 2024 r...@releng3.nyi.freebsd.org:/

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

2024-09-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #30 from Konstantin Belousov --- (In reply to Alex Tutubalin from comment #29) Perhaps. Never installed kernel by any other way than compiling from sources. -- You are receiving this mail because: You are the assignee for the

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

2024-09-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #29 from Alex Tutubalin --- (In reply to Konstantin Belousov from comment #28) Here is kldstat output: Id Refs AddressSize Name 1 43 0x8020 1f370e8 kernel 21 0x82138000 77d8 cryp

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

2024-09-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #28 from Konstantin Belousov --- The failing op is clear: 1727 jail CALL jail_attach(0x2) 1727 jail RET jail_attach -1 errno 1 Operation not permitted but why is it failing with EPERM is not. First question, do y

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

2024-09-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #27 from Alex Tutubalin --- (In reply to Konstantin Belousov from comment #23) Three ktrace -i has been added: 1) ktrace -i /usr/sbin/jail -c -f /etc/jail.conf example from ttyv1 - no jails are running - try to start new on

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

2024-09-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #26 from Alex Tutubalin --- Created attachment 253888 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=253888&action=edit ssh localhost; ktrace -i jexec 1 date on jail started via /etc/rc (success) ssh localhost; kt

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

2024-09-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #25 from Alex Tutubalin --- Created attachment 253887 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=253887&action=edit jail started via /etc/rc on boot: ktrace -i jexec 1 on ttyv0 jail started via /etc/rc on boot:

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

2024-09-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #24 from Alex Tutubalin --- Created attachment 253886 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=253886&action=edit ktrace -i /usr/sbin/jail -c -f /etc/jail.conf example from ttyv1 ktrace -i /usr/sbin/jail -c -f

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

2024-09-29 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #23 from Konstantin Belousov --- Use at least the '-i' option for ktrace, to trace the children as well. >From the attachment 'ktrace /usr/sbin/jail -c -f /etc/jail.conf example', the error comes from the /etc/rc execution in t

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #22 from Alex Tutubalin --- Comment on attachment 253883 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=253883 ktrace jexec 1 to jail created on startup, ttyv0 correction to the attachment message: jexec fails on tt

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #21 from Alex Tutubalin --- (In reply to Konstantin Belousov from comment #14) Also attached two ktraces to jexec 1 Jail is created on startup and shown via jls ttyv0: jexec 1 fails pts/0: jexec 1 succeeds -- You are receivi

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #20 from Alex Tutubalin --- Created attachment 253884 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=253884&action=edit ktrace jexec 1 to jail created on startup, pts/0 - success Same jail created on startup ssh roo

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #19 from Alex Tutubalin --- Created attachment 253883 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=253883&action=edit ktrace jexec 1 to jail created on startup, ttyv0 jail 1 has started from /etc/rc via pot service

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #18 from Alex Tutubalin --- (In reply to Konstantin Belousov from comment #14) attached much smaller variant: ktrace /usr/sbin/jail -c -f /etc/jail.conf example works on ttyv0, but not on ttyv1 My skills are not enough to qu

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #17 from Alex Tutubalin --- Created attachment 253882 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=253882&action=edit ktrace /usr/sbin/jail -c -f /etc/jail.conf example much smaller ktrace variant, no service jails

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #16 from Alex Tutubalin --- (In reply to Konstantin Belousov from comment #14) Sorry for answering with a dump of unknown quality - it's already very late here, tomorrow morning I'll read which particular call failed. -- You a

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #15 from Alex Tutubalin --- Created attachment 253874 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=253874&action=edit ktrace.out of service jail onestart example ktrace.out of service jail onestart example on t

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 Konstantin Belousov changed: What|Removed |Added CC||k...@freebsd.org --- Comment

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #13 from Alex Tutubalin --- (In reply to Alex Tutubalin from comment #11) (I forgot that I can connect a monitor to my home mail server/router) Reproduced with PHYSICAL monitor/keyboard on it service jail onestart jailname -

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #12 from Alex Tutubalin --- (In reply to Michael Osipov from comment #10) And, yes, it works on 13.3. On 14.1 it does not. -- You are receiving this mail because: You are the assignee for the bug.

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #11 from Alex Tutubalin --- (In reply to Michael Osipov from comment #10) I do not think that from FreeBSD's side VM's ttyv* are different from the physical ones Will try to repeat on a physical PC tomorrow -- You are receiv

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #10 from Michael Osipov --- Tried: root ttyv128 Sep. 18:31 on FreeBSD deblndw011x.ad001.siemens.net 13.4-STABLE FreeBSD 13.4-STABLE 6bde10b63 GENERIC amd64 and it works... @Alex, how can this be a directly

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #9 from Michael Osipov --- Let me try to restart a Bastille jail from a HPE iLO 4 virtual terminal... -- You are receiving this mail because: You are the assignee for the bug.

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #8 from Alex Tutubalin --- (In reply to Marek Zarychta from comment #6) Error message was re-typed from VMWare screen, it seemed to me that $ is clearer than # (and I'm too lazy to retype full shell prompt with root@host) --

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #7 from Michael Osipov --- (In reply to Marek Zarychta from comment #6) Accepted. I know that you would look at '$' instead of being '#', but the user an change the prompt at will. Don't rely on such information. -- You are r

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #6 from Marek Zarychta --- (In reply to Alex Tutubalin from comment #3) Please let me apologise then, and neither don't get offended. Thank you for reporting the issue. (In reply to Michael Osipov from comment #4) I follow Bugz

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #5 from Alex Tutubalin --- To be precise: 1) This is clean 14.1 install (in VMWare) 2) then updated to 14.1-p5 via freebsd-update 3) PermitRootLogin yes added to sshd_config for ssh tests 4) no other users added to system, every

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #4 from Michael Osipov --- (In reply to Marek Zarychta from comment #2) This is unprofessional. The reporter has shown enough skills not being that stupid not to be root in this case. -- You are receiving this mail because: Y

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 --- Comment #3 from Alex Tutubalin --- Anything is, of course, from root. -- You are receiving this mail because: You are the assignee for the bug.

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 Marek Zarychta changed: What|Removed |Added CC||zarych...@plan-b.pwste.edu.

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

2024-09-28 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281751 Mark Linimon changed: What|Removed |Added Assignee|b...@freebsd.org|j...@freebsd.org -- You are receiv