linux-um.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v2 09/10] tty: Consolidate noctty checks in tty_open()
       [not found]   ` <1452402833-8652-10-git-send-email-peter@hurleysoftware.com>
@ 2016-03-26 17:58     ` Richard Weinberger
  2016-03-26 19:06       ` Peter Hurley
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Weinberger @ 2016-03-26 17:58 UTC (permalink / raw)
  To: Peter Hurley
  Cc: Greg Kroah-Hartman, Jiri Slaby, LKML,
	user-mode-linux-devel@lists.sourceforge.net, Linus Torvalds,
	One Thousand Gnomes

On Sun, Jan 10, 2016 at 6:13 AM, Peter Hurley <peter@hurleysoftware.com> wrote:
> Evaluate the conditions which prevent this tty being the controlling
> terminal in one place, just before setting the controlling terminal.
>
> Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
> ---
>  drivers/tty/tty_io.c | 17 ++++++++---------
>  1 file changed, 8 insertions(+), 9 deletions(-)

Peter,

This commit breaks existing userspace.
I noticed that on UserModeLinux with Debian Squeeze as userspace, getty does not
give me a controlling tty upon login.
It does not seem to happen on newer distros. But still this needs
further investigation.

Please me know what debug information you need.

-- 
Thanks,
//richard


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2 09/10] tty: Consolidate noctty checks in tty_open()
  2016-03-26 17:58     ` [PATCH v2 09/10] tty: Consolidate noctty checks in tty_open() Richard Weinberger
@ 2016-03-26 19:06       ` Peter Hurley
  2016-03-26 19:14         ` [uml-devel] " Richard Weinberger
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Hurley @ 2016-03-26 19:06 UTC (permalink / raw)
  To: Richard Weinberger
  Cc: Greg Kroah-Hartman, Jiri Slaby, LKML,
	user-mode-linux-devel@lists.sourceforge.net, Linus Torvalds,
	One Thousand Gnomes

Hi Richard,

On 03/26/2016 10:58 AM, Richard Weinberger wrote:
> On Sun, Jan 10, 2016 at 6:13 AM, Peter Hurley <peter@hurleysoftware.com> wrote:
>> Evaluate the conditions which prevent this tty being the controlling
>> terminal in one place, just before setting the controlling terminal.
>>
>> Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
>> ---
>>  drivers/tty/tty_io.c | 17 ++++++++---------
>>  1 file changed, 8 insertions(+), 9 deletions(-)
> 
> Peter,
> 
> This commit breaks existing userspace.
> I noticed that on UserModeLinux with Debian Squeeze as userspace, getty does not
> give me a controlling tty upon login.
> It does not seem to happen on newer distros. But still this needs
> further investigation.
> 
> Please me know what debug information you need.

Sorry about that; I hadn't considered the implications of UML console.
Can you test the blob below?

Regards,
Peter Hurley

--- >% ---
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index 608beb6..a361c61 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -2158,7 +2157,9 @@ retry_open:
 	read_lock(&tasklist_lock);
 	spin_lock_irq(&current->sighand->siglock);
 	noctty = (filp->f_flags & O_NOCTTY) ||
+#ifdef CONFIG_VT
 			device == MKDEV(TTY_MAJOR, 0) ||
+#endif
 			device == MKDEV(TTYAUX_MAJOR, 1) ||
 			(tty->driver->type == TTY_DRIVER_TYPE_PTY &&
 			 tty->driver->subtype == PTY_TYPE_MASTER);



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [uml-devel] [PATCH v2 09/10] tty: Consolidate noctty checks in tty_open()
  2016-03-26 19:06       ` Peter Hurley
@ 2016-03-26 19:14         ` Richard Weinberger
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Weinberger @ 2016-03-26 19:14 UTC (permalink / raw)
  To: Peter Hurley
  Cc: One Thousand Gnomes, user-mode-linux-devel@lists.sourceforge.net,
	Greg Kroah-Hartman, LKML, Jiri Slaby, Linus Torvalds

Peter,

Am 26.03.2016 um 20:06 schrieb Peter Hurley:
> Sorry about that; I hadn't considered the implications of UML console.
> Can you test the blob below?

Yep, works like a charm. :-)

Thanks,
//richard

------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-26 19:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1448677557-16420-1-git-send-email-peter@hurleysoftware.com>
     [not found] ` <1452402833-8652-1-git-send-email-peter@hurleysoftware.com>
     [not found]   ` <1452402833-8652-10-git-send-email-peter@hurleysoftware.com>
2016-03-26 17:58     ` [PATCH v2 09/10] tty: Consolidate noctty checks in tty_open() Richard Weinberger
2016-03-26 19:06       ` Peter Hurley
2016-03-26 19:14         ` [uml-devel] " Richard Weinberger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).