Re: Who changed /proc/<pid>/ in 2.6.0-test5-bk9?

From: Albert Cahalan (albert_at_users.sf.net)
Date: 10/02/03

  • Next message: Rusty Russell: "Re: [PATCH] Initializedd the module parameters in drivers/net/wireless/arlan-main.c"
    To: Linus Torvalds <torvalds@osdl.org>
    Date:	01 Oct 2003 20:57:59 -0400
    
    

    On Wed, 2003-10-01 at 20:38, Linus Torvalds wrote:
    > On 1 Oct 2003, Albert Cahalan wrote:
    > >
    > > It certainly seems to me that the intent of /proc/self is
    > > to point to a "process", which is a tgid in kernel terms.
    >
    > My argument against that is that it actually loses information. Now there
    > is no way to easily look up the current thread stuff.

    This maybe?

    /proc/task -> 42/task/84

    > If /proc/self points to a thread, it's easy to look up the process with a
    > "/proc/self/../..".

    That wouldn't have worked with /proc/self pointing to
    an invisible directory like it did. It could certainly
    be made to work, like this:

    /proc/self -> 42/task/84

    Had the /proc/self code not been modified, you'd get
    a nasty link like this:

    /proc/self -> 84 (and "84" isn't listed in /proc)

    So using "/proc/self/../.." would just go up to "/".
    That's not too useful.

    -
    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: Rusty Russell: "Re: [PATCH] Initializedd the module parameters in drivers/net/wireless/arlan-main.c"

    Relevant Pages

    • Re: Possible dcache BUG
      ... On Thursday 12 August 2004 21:31, Linus Torvalds wrote: ... >> applications running were X and my mailer, as can be seen in the ... Copyright 2004 by Maurice Eugene Heskett, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: BK kernel workflow
      ... On Mon, 25 Oct 2004, Linus Torvalds wrote: ... Your analogy is flawed, nobody cares what you are using privately, but ... to acknowledge that the bk license might be part of problem, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: silent semantic changes with reiser4
      ... On Thu, 26 Aug 2004, Linus Torvalds wrote: ... One line stood out as a potential problem: ... Does this create a new class of "symlink attack" style security ... 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/ ...
      (Linux-Kernel)
    • Re: [GIT PATCH] I2C and W1 bugfixes for 2.6.12-rc2
      ... Dear diary, on Wed, Apr 20, 2005 at 12:19:01AM CEST, I got a letter ... where Steven Cole told me that... ... > Linus Torvalds wrote: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: removable media revalidation - udev vs. devfs or static /dev
      ... On Wed, Jan 07, Linus Torvalds wrote: ... have it configured somehow. ... entries and let KDE put 15 icons on the desktop and give ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)