[lkml]   [1998]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: F_SETOWN...
Letting the chips fall where they may, I quote Alan Cox:
>> Does no one else think that's just a little on the brain damaged side? No
>> sanity checks what-so-ever in handing a filedesc to an arbitrary process
>> number... no permissions check, no pid check, nothing.

(I still think that's a bad idea.)

>Read a little further. In paticular read the send_sigio function and you'll
>see the check is done at signal delivery time where it should be done,
>otherwise you could set up a SIGIO on a process that then execs a setuid
>process you shouldnt be able to signal

Bad example... exec() (and friends) would reset the ownership of all the
fd's. In my example, the same user (or superuser) was ultimately generating
the signal, thus it did get sent. Has anyone tested 2.0?

I'm still a little concerned about handing over a file descriptor without
at least verifying the process exists. (I know I'm being paranoid.)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

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