splice vs O_APPEND

From: Miklos Szeredi
Date: Thu Oct 09 2008 - 11:03:20 EST


While looking at the f_pos corruption thing, I found that splice() to
a regular file totally ignores O_APPEND. Which allows users to bypass
the append-only restriction. Bad...

The only question is how this should be solved? Should splice()
respect O_APPEND and ignore the offset? Or should it just return
-EINVAL?

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