diff options
| author | Konstantin Khlebnikov <[email protected]> | 2012-01-05 13:04:21 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2012-01-24 13:56:10 -0800 |
| commit | 593a27c4b212e2afdf772a1f8dcb894e91bda0fa (patch) | |
| tree | 6b670f6ec0ef138fcfa6e68f3b2a456f86941efd /include/linux/debugobjects.h | |
| parent | dcd6c92267155e70a94b3927bce681ce74b80d1f (diff) | |
tty: cleanup prohibition of direct opening for unix98 pty master
cleanup hack added in v2.6.27-3203-g15582d3
comment from that patch:
: pty: If the administrator creates a device for a ptmx slave we should not error
:
: The open path for ptmx slaves is via the ptmx device. Opening them any
: other way is not allowed. Vegard Nossum found that previously this was not
: the case and mknod foo c 128 42; cat foo would produce nasty diagnostics
:
: Signed-off-by: Alan Cox <[email protected]>
: Signed-off-by: Linus Torvalds <[email protected]>
devpts_get_tty() returns non-null only for inodes on devpts, but there is no
inodes for master-devices, /dev/ptmx (/dev/pts/ptmx) is the only way to open them.
Thus we can completely forbid lookup for master-devices and eliminate that hack in
tty_init_dev() because tty_open() will get EIO from tty_driver_lookup_tty().
Signed-off-by: Konstantin Khlebnikov <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions