lkml.org 
[lkml]   [1996]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: BEWARE! Linux seteuid is broken!
Date
> 
> It stops lusers killing off nfsd for one

Huh, this Linux bug was discussed in linux-kernel.
I do not know why it was not fixed in standard kernel,
apaprently it was lost.

kernel/exit.c:

int send_sig(unsigned long sig,struct task_struct * p,int priv)
{
if (!p || sig > 32)
return -EINVAL;
if (!priv && ((sig != SIGCONT) || (current->session != p->session)) &&
#ifdef NO_ANK_FIX
(current->euid ^ p->euid) && (current->euid ^ p->uid) &&
(current->uid ^ p->euid) && (current->uid ^ p->uid) &&
#else
(current->uid ^ p->suid) && (current->euid ^ p->uid) &&
(current->uid ^ p->suid) && (current->uid ^ p->uid) &&
#endif
!suser())
return -EPERM;


Alexey Kuznetsov.


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:1.544 / U:0.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site