Re: [PATCH] overlayfs: Warn on copy up if a process has a R/O fd open to the lower file

From: David Howells
Date: Wed Jun 10 2015 - 12:43:48 EST


Colin Walters <walters@xxxxxxxxxx> wrote:

> On Thu, May 28, 2015, at 02:46 PM, David Howells wrote:
> > Print a warning when overlayfs copies up a file if the process that
> > triggered the copy up has a R/O fd open to the lower file being copied up.
>
> Why not an option to make it an error? If one's goal is to use overlayfs
> without apps potentially corrupting data, better to fail fast.

That could be added. Note that doing this isn't *necessarily* wrong though.

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