Re: [PATCH] Security fix for 2.1.111, 2.0.x forwardport

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 26 Jul 1998 22:23:14 +0100 (BST)


> The proper (and now in my 2.1 tree) fix is to have
>
> /* Make sure we don't allow writing to an append-only file.. */
> if (IS_APPEND(file->f_dentry->d_inode) && (file->f_mode & 2))
> return -EACCES;

Backpropogated to 2.0.36pre2

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

ALan

-
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