lkml.org 
[lkml]   [2004]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: dynamic /dev security hole?

On Mon, 9 Aug 2004, Michael Buesch wrote:
> So what about this updated patch?

> dbg("unlinking symlink '%s'", filename);
> - - retval = unlink(filename);
> - - if (errno == ENOENT)
> - - retval = 0;
> - - if (retval) {
> - - dbg("unlink(%s) failed with error '%s'",
> - - filename, strerror(errno));
> + retval = secure_unlink(filename);

Better not do it for symlinks.

Eric
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

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