Re: [PATCH] getrusage sucks

From: Alan Cox (alan_at_lxorguk.ukuu.org.uk)
Date: 11/12/05

  • Next message: Michal Piotrowski: "Re: 2.6.14-mm2"
    To: Chris Wright <chrisw@osdl.org>
    Date:	Fri, 11 Nov 2005 23:58:16 +0000
    
    

    On Gwe, 2005-11-11 at 15:02 -0800, Chris Wright wrote:
    > * Alan Cox (alan@lxorguk.ukuu.org.uk) wrote:
    > > On Gwe, 2005-11-11 at 23:38 +0100, Claudio Scordino wrote:
    > > > + if ((current->euid != tsk->euid) &&
    > > > + (current->euid != tsk->uid)) {
    > > > + read_unlock(&tasklist_lock);
    > > > + return -EINVAL;
    > >
    > >
    > > Would be -EPERM also wants a 'privilege' check. Not sure which would be
    > > best here - CAP_SYS_ADMIN seems to be the 'default' used
    >
    > It's already available via /proc w/out protection. And ditto via posix
    > cpu timers.

    In which case the only comment I have is the one about accuracy - and
    that is true for procfs too so will only come up if someone gets the
    urge to use perfctr timers for precision resource management

    -
    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: Michal Piotrowski: "Re: 2.6.14-mm2"

    Relevant Pages

    • Re: [PATCH] getrusage sucks
      ... > Chris Wright wrote: ... >>cpu timers. ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)
    • Re: [PATCH] getrusage sucks
      ... Chris Wright wrote: ... >cpu timers. ... I find the getrusage() info of another process? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [RFC] must fix lists
      ... On Gwe, 2003-10-24 at 01:23, Chris Wright wrote: ... >> proc races. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] CPU time clock support in clock_* syscalls
      ... It's just picky about which one. ... I do not allow clock_settime on CPU timers, ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)