lkml.org 
[lkml]   [1998]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Security fix for 2.1.111, 2.0.x forwardport
On Sun, Jul 26, 1998 at 10:23:14PM +0100, Alan Cox wrote:

> The only other one I can find off hand is the /proc stuff - sitting with
> /proc/somepid/file open when the PID is reused.

I've been trying to think of a good way to avoid this - and can't
really think of anything terribly useful.

One (ugly hack) that does come to mind though, is, if it is possible
to find all files open referencing and inode between (X & Y), then
when pid n exits, close any open descriptors associated with
inode (n<<16 & 0xFFFF0000).

It would also require revoking an mmap'd pages from /proc/n/mem - but
then again, it looks like mmap on /proc/n/mem shouldn't be allowed
anyhow.

Feasible?



-cw


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

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