Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752173AbbEKCOU (ORCPT ); Sun, 10 May 2015 22:14:20 -0400 Received: from cyan.worrbase.com ([208.79.95.114]:18416 "EHLO cyan.worrbase.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751435AbbEKCOT (ORCPT ); Sun, 10 May 2015 22:14:19 -0400 X-Greylist: delayed 399 seconds by postgrey-1.27 at vger.kernel.org; Sun, 10 May 2015 22:14:19 EDT From: William Orr To: linux-kernel@vger.kernel.org Subject: [PATCH] Implement fchmodat4 system call Date: Sun, 10 May 2015 19:07:20 -0700 Message-Id: <1431310042-52247-1-git-send-email-will@worrbase.com> X-Mailer: git-send-email 2.3.7 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 813 Lines: 21 Hey, Currently, Linux's fchmodat(2) doesn't honor the flags argument. To bring it more in-line with POSIX and other implementations, this patch adds fchmodat4, which honors the flags argument, and implements the same flags as fchownat(2). This makes it possible to chmod a file without following symlinks, without having to call open(2) on a file with O_NOFOLLOW. This is heavily based off of Andrew Ayer's work in 2012, and is sent with his permission. Let me know if this can be applied. Please CC me, since I'm not subscribed to this list. Thanks, William Orr -- 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/