From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Chris Wright <chrisw@osdl.org>
Cc: Claudio Scordino <cloud.of.andor@gmail.com>,
"Magnus Naeslund(f)" <mag@fbab.net>,
"Hua Zhong (hzhong)" <hzhong@cisco.com>,
linux-kernel@vger.kernel.org, kernelnewbies@nl.linux.org,
David Wagner <daw@cs.berkeley.edu>
Subject: Re: [PATCH] getrusage sucks
Date: Fri, 11 Nov 2005 23:58:16 +0000 [thread overview]
Message-ID: <1131753496.3174.55.camel@localhost.localdomain> (raw)
In-Reply-To: <20051111230223.GB7991@shell0.pdx.osdl.net>
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
next prev parent reply other threads:[~2005-11-11 23:27 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-10 23:47 [PATCH] getrusage sucks Hua Zhong (hzhong)
2005-11-11 0:23 ` Claudio Scordino
2005-11-11 0:32 ` Magnus Naeslund(f)
2005-11-11 1:11 ` Claudio Scordino
2005-11-11 13:30 ` Alan Cox
2005-11-11 22:38 ` Claudio Scordino
2005-11-11 23:23 ` Alan Cox
2005-11-11 23:02 ` Chris Wright
2005-11-11 23:44 ` David Wagner
2005-11-12 0:53 ` Chris Wright
2005-11-12 6:37 ` David Wagner
2005-11-11 23:58 ` Alan Cox [this message]
2005-11-11 23:43 ` Claudio Scordino
2005-11-11 23:49 ` dean gaudet
2005-11-12 1:10 ` Chris Wright
2005-11-12 15:10 ` making makefile for 2.6 kernel anil dahiya
2005-11-12 15:16 ` anil dahiya
2005-11-12 22:19 ` Sam Ravnborg
2005-11-13 1:34 ` [PATCH] getrusage sucks Claudio Scordino
2005-11-15 16:56 ` Claudio Scordino
2005-11-15 17:00 ` New getrusage Claudio Scordino
2005-11-11 23:08 ` [PATCH] getrusage sucks Claudio Scordino
2005-11-11 23:41 ` David Wagner
2005-11-15 1:08 ` Peter Chubb
-- strict thread matches above, loose matches on Subject: below --
2005-11-15 18:25 linux
2005-11-11 23:49 Hua Zhong (hzhong)
2005-11-10 22:34 Claudio Scordino
2005-11-11 5:06 ` David Wagner
2005-11-11 19:09 ` Lee Revell
2005-11-11 19:13 ` David Wagner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1131753496.3174.55.camel@localhost.localdomain \
--to=alan@lxorguk.ukuu.org.uk \
--cc=chrisw@osdl.org \
--cc=cloud.of.andor@gmail.com \
--cc=daw@cs.berkeley.edu \
--cc=hzhong@cisco.com \
--cc=kernelnewbies@nl.linux.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mag@fbab.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox