Re: [RFC PATCH] Show data flow for file copyup in unions

From: J. R. Okajima
Date: Tue Mar 16 2010 - 18:52:28 EST



Valerie Aurora:
> 1. Don't copyup if the operation would fail (e.g., open(O_WRONLY) on a
> file with mode 444). It's inefficient and a possible security hole to
> copy up a file if no write (or maybe even read) can occur anyway.

Just a question.
How about this case?
When the file is writable (0644 or something) but its parent directory
is readonly (0555), do you think the file should be copied-up?


J. R. Okajima
--
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/