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

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


> I'd like to again express my strong concerns that 2.2.0 will be
> substantially _less_ stable than 2.0.x, unless we get a few more people to
> look over the later 2.0.x patches and forward port all the fixes.

Thanks for volunteering Chris.

> +++ linux-2.1.111/mm/mmap.c Sun Jul 26 19:15:15 1998
> @@ -199,6 +199,10 @@
> /* make sure there are no mandatory locks on the file. */
> if (locks_verify_locked(file->f_dentry->d_inode))
> return -EAGAIN;
> + /* cevans - whoops another append-only file flaw */
> + if (IS_APPEND(file->f_dentry->d_inode) &&
> + (prot & PROT_WRITE))
> + return -EACCES;
> /* fall through */
> case MAP_PRIVATE:
> if (!(file->f_mode & 1))

-
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