Re: 2.6.8.1-mm1 Tty problems?

From: Martin Schlemmer (azarah_at_nosferatu.za.org)
Date: 08/17/04

  • Next message: Markus Walser: "Re: Terrible Memory leak on 2.6"
    To: Paul Fulghum <paulkf@microgate.com>
    Date:	Tue, 17 Aug 2004 23:36:02 +0200
    
    
    

    On Tue, 2004-08-17 at 23:04, Paul Fulghum wrote:
    > ismail dönmez wrote:
    >
    > > On Tue, 17 Aug 2004 13:36:11 -0500, Paul Fulghum <paulkf@microgate.com> wrote:
    > >
    > >>Even if a feature is not be enabled,
    > >>backing out a patch can verify it does not
    > >>touch code outside of the feature.
    > >>
    > >
    > >
    > > Indeed backing up selinux-revalidate-access-to-controlling-tty.patch
    > > fixed "less" problem. But some other problems remain and the real
    > > issue is /dev/tty is a directory now! :
    > >
    > >
    > > cartman@southpark:~$ ls -al /dev/tty
    > > total 0
    > > drwxr-xr-x 2 root root 0 2004-08-18 00:52 ./
    > > drwxr-xr-x 15 root root 0 2004-08-17 21:53 ../
    > > crw------- 1 root root 3, 10 2004-08-18 00:52 s
    > > crw------- 1 root root 3, 0 2004-08-18 00:52 s0
    > > crw------- 1 root root 3, 1 2004-08-18 00:52 s1
    > > crw------- 1 root root 3, 2 2004-08-18 00:52 s2
    > > crw------- 1 root root 3, 3 2004-08-18 00:52 s3
    > > crw------- 1 root root 3, 4 2004-08-18 00:52 s4
    > > crw------- 1 root root 3, 5 2004-08-18 00:52 s5
    > > crw------- 1 root root 3, 6 2004-08-18 00:52 s6
    > > crw------- 1 root root 3, 7 2004-08-18 00:52 s7
    > > crw------- 1 root root 3, 8 2004-08-18 00:52 s8
    > > crw------- 1 root root 3, 9 2004-08-18 00:52 s9
    > >
    > >
    > > And this breaks many applications. Any idea why /dev/tty is a directory now?
    >
    > Olaf, Greg:
    >
    > The addition of pty devices to sysfs in bk-driver-core.patch
    > of 2.6.8.1-mm1 seems to be causing the problem described above.
    > See the rest of this thread for more details.
    >

    He has the wrong permissions in
    /etc/udev/permissions.d/50-udev.permissions (or whatever), or no
    entry for it, and his default_mode (in /etc/udev/udev.conf) is very
    restrictive, or he does not use pam_console (or using it with a
    display manager?), or add some other explanation. Personally I would
    just say that he/his_distribution should fix the shipped
    udev.permissions.

    Apart from above, I cannot say anything is wrong with the addition of
    tty's to sysfs, and if its the same in functionality as the old patch
    from Greg, then I ran it for months no problem.

    -- 
    Martin Schlemmer
    
    

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/



  • Next message: Markus Walser: "Re: Terrible Memory leak on 2.6"

    Relevant Pages

    • Re: module-init-tools - input devices id support
      ... This is the first time I've looked at the input code, ... at least so I was assured by Greg. ... But it's designed for the hotplug stuff. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • RE: --- (or anyone else) one small i2c question.
      ... Greg one small i2c question. ... one Milidegrees is one thousand Grade Celsius. ... The actual Reading, from the vt8231 inside the io space is an 8 bit value. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: file2alias - incorrect? aliases for USB
      ... Andrey: the reason everything is in there is I didn't know what Greg ... visor.c defines one empty slot in USB ids table that can be filled in at ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [lm-sensors] [PATCH 2.6.12-rc4 15/15] drivers/i2c/chips/adm1026.c: use dynamic sysfs callbacks
      ... I like the idea of aggregating the related sensor attributes into ... arrays, I did things the same way in bmcsensors but of course that was ... As Greg points out there is probably a nicer way to create the ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.9-rc1-mm5, ehci stuff gone
      ... On Monday 13 September 2004 23:56, Greg KH wrote: ... > ohci issues that I had in my laptop, and will show up in the next ... Copyright 2004 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)