OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 00/10] Task Containers(V11): Introduction
Re: [PATCH 02/10] Task Containers(V11): Add tasks file interface [message #15202 is a reply to message #15201] Fri, 20 July 2007 21:25 Go to previous messageGo to previous message
Paul Menage is currently offline  Paul Menage
Messages: 642
Registered: September 2006
Senior Member
On 7/20/07, James Morris <jmorris@namei.org> wrote:
> > + if ((current->euid) && (current->euid != tsk->uid)
> > + && (current->euid != tsk->suid)) {
> > + put_task_struct(tsk);
> > + return -EACCES;
>
> I wonder if we should allow CAP_SYS_ADMIN to do this, too.
>

Yes, I ought to replace "current->euid" with "capable(CAP_SYS_ADMIN)".

Thanks,

Paul
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [Fwd: [2.6.22] negative time jump]
Next Topic: [PATCH] Add CTL_PROC back
Goto Forum:
  


Current Time: Sat Aug 30 14:43:48 GMT 2025

Total time taken to generate the page: 0.09293 seconds