Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759443AbYJIPDT (ORCPT ); Thu, 9 Oct 2008 11:03:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753592AbYJIPDG (ORCPT ); Thu, 9 Oct 2008 11:03:06 -0400 Received: from fxip-0047f.externet.hu ([88.209.222.127]:51227 "EHLO pomaz-ex.szeredi.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753544AbYJIPDF (ORCPT ); Thu, 9 Oct 2008 11:03:05 -0400 To: jens.axboe@oracle.com CC: torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: splice vs O_APPEND Message-Id: From: Miklos Szeredi Date: Thu, 09 Oct 2008 17:02:30 +0200 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 580 Lines: 15 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/