Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753018AbbH1VyQ (ORCPT ); Fri, 28 Aug 2015 17:54:16 -0400 Received: from mail-la0-f45.google.com ([209.85.215.45]:36194 "EHLO mail-la0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752647AbbH1VyN (ORCPT ); Fri, 28 Aug 2015 17:54:13 -0400 MIME-Version: 1.0 In-Reply-To: References: <1438689218-6921-1-git-send-email-agruenba@redhat.com> <1438689218-6921-4-git-send-email-agruenba@redhat.com> Date: Fri, 28 Aug 2015 23:54:11 +0200 Message-ID: Subject: Re: [RFC v6 03/40] vfs: Add MAY_DELETE_SELF and MAY_DELETE_CHILD permission flags From: =?UTF-8?Q?Andreas_Gr=C3=BCnbacher?= To: Andy Lutomirski Cc: "linux-kernel@vger.kernel.org" , Linux FS Devel , Linux NFS Mailing List , Linux API , linux-cifs@vger.kernel.org, LSM List , Andreas Gruenbacher Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 674 Lines: 17 2015-08-28 23:36 GMT+02:00 Andy Lutomirski : > Silly question from the peanut gallery: is there any such thing as > opening an fd pointing at a file such that the "open file description" > (i.e. the struct file) captures the right to delete the file? > > IOW do we need FMODE_DELETE_SELF? When would that permission be checked, what syscall would you use to unlink an open file descriptor? Thanks, Andreas -- 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/