lkml.org 
[lkml]   [1999]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Speeding up swap
On Sun, 24 Oct 1999, Tom Vier wrote:
> On Sun, Oct 24, 1999 at 11:40:26AM -0700, David Schwartz wrote:
> > Then one the file twice. With one fd, you can do your buffered, random
> > accesses. With the other fd, you can do your non-buffered, sequential
> > accesses.
> wouldn't that defeat the purpose of restricting lseek? a malicious program
> could just open the file twice.

A malicious program can open a file with O_SYNC, which is a far more
vicious kind of attack. So I don't see what all the fuss is about.

-Dan


-
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.tux.org/lkml/

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