From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kenny Root Subject: Re: [PATCH 0/2 RESEND] POSIX-compliant version of fchmodat with flag argument Date: Tue, 18 Sep 2012 13:39:38 -0700 Message-ID: <20120918203853.GA25180@google.com> References: <1326419626-22568-1-git-send-email-agwa@andrewayer.name> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Ayer To: Alexander Viro Return-path: Received: from mail-pb0-f46.google.com ([209.85.160.46]:33351 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752185Ab2IRUjl (ORCPT ); Tue, 18 Sep 2012 16:39:41 -0400 Received: by pbbrr13 with SMTP id rr13so770179pbb.19 for ; Tue, 18 Sep 2012 13:39:41 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1326419626-22568-1-git-send-email-agwa@andrewayer.name> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Thu, Jan 12, 2012 at 05:53:44PM -0800, Andrew Ayer wrote: > Besides the POSIX-compliance, this patch will make it possible to > ensure, in a race-free way, that you do not follow symlinks when > chmodding. Previously, you could open a file with O_NOFOLLOW and fchmod > it, but this only worked if you had read or write permissions on the > file. Now you can open the file with O_PATH|O_NOFOLLOW and do fchmodat > with AT_EMPTY_PATH. Alexander, this patch solves a particular problem in a useful way. I find it useful and I would be happy to see it included in mainline. Thanks, Kenny