lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Sat, 03 Mar 2007 21:00:43 +0100
From:	Tilman Schmidt <tilman@...p.cc>
To:	Christopher Meller <cmeller@...ominate.com>
CC:	linux-kernel@...r.kernel.org
Subject: Re: Question on tty line discipline

Am 28.02.2007 14:47 schrieb Christopher Meller:
> When the line discipline is set via ioctl from  user space to e.g. N_PPP and the userspace program returns without resetting  the line discipline back to N_TTY, the serial device cannot be used (ENODV) until an appropriate  ioctl (to N_TTY) is performed. Is there any reason for the fact that the line discipline is not reset by the kernel , when closing the device. 

Is that really so? While testing a line discipline I have written
myself (N_GIGASET_M101) I came to the opposite conclusion.

Specifically, when I set the line discipline on eg. /dev/ttyS1 to
N_GIGASET_M101 from the user space daemon I have written for that
purpose, and that user space daemon exits, my line discipline is
removed, ie. its .close method is called. That is true even if I
kill the user space daemon by sending it an uncaught signal.

-- 
Tilman Schmidt                          E-Mail: tilman@...p.cc
Bonn, Germany
Diese Nachricht besteht zu 100% aus wiederverwerteten Bits.
Ungeöffnet mindestens haltbar bis: (siehe Rückseite)


Download attachment "signature.asc" of type "application/pgp-signature" (254 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ