Re: [PATCH 0/6] File Sealing & memfd_create()

From: David Herrmann
Date: Tue Apr 22 2014 - 08:55:47 EST


Hi

On Tue, Apr 22, 2014 at 2:44 PM, Florian Weimer <fweimer@xxxxxxxxxx> wrote:
> I didn't find that very convincing. But in v2, seals are monotonic, so
> checking them should be reliable enough.

Ok.

> What happens when you create a loop device on a write-sealed descriptor?

Any write-back to the loop-device will fail with EPERM as soon as the
fd gets write-sealed. See __do_lo_send_write() in
drivers/block/loop.c. It's up to the loop-device to forward the error
via bio_endio() to the caller for proper error-handling.

Thanks
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/