[Unionfs] Unionfs for special files

Charles P. Wright cwright at cs.sunysb.edu
Wed Mar 8 10:32:25 EST 2006


On Mon, 2006-03-06 at 23:58 -0500, brendan powers wrote:
> how difficult would it be to allow unionfs to create the file on other
> error codes? Is it as simple as just adding the error code to the
> already existing logic? If so can you direct me to the spot in the
> code where this is done?
You should be able to change IS_COPYUP_ERR at unionfs.h:586.

Changing the error code may cause you security problems, etc.  (e.g., if
you add -EPERM, then a failed access will result in a copyup and the
user might be able modify the file).

Charles




More information about the unionfs mailing list