lkml.org 
[lkml]   [2005]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] getrusage sucks
    * 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.
    -
    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/

    \
     
     \ /
      Last update: 2005-11-12 00:05    [W:0.019 / U:31.344 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site