Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp48516pxk; Tue, 15 Sep 2020 17:25:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDIfafZDkf9rzItklHu9k+AEPoF0D49GwqP3WwfWdDB1+5Waia2NscV1XsQhLFdzYjHfHC X-Received: by 2002:a17:906:6a52:: with SMTP id n18mr22250134ejs.58.1600215922410; Tue, 15 Sep 2020 17:25:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600215922; cv=none; d=google.com; s=arc-20160816; b=ItmyE5HT+L/FnZvNBOcvPm0PcYIuBBBrOtCcxb/3VU/SpIFFVp2YjwDKnig6qlD/mg pbHh8FecjiddLG05huXglR9wGVOMTttWAj6ppJVQz4jmgL5stEH4r+r93DHCj4tPDMeL eR7QMnbUOZeZRztLwuIGaAa/xQaSpq7RrxcKO3geSbHZ3FOe89jNHJVrlKg5yUvBo55F pDF0jqig4i8lQu6SIUzgPiGJ1aYBUYN5co2aomROoJnaygvGSwrQUcsOSqXeOcKhGNgA Imdcx8WEGwSXoa5dAEnG1wfLM8whdVqnWEF2yrj+Fxt1peleLsLLWxLYp1YumuIVLOcj HzPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date; bh=hwVkXntRz/QKuriNhfL+k7fW3g7akq7v9pAFx1hJbtU=; b=QO38rmzZdI7D8hGqdYIRbTy6gMhJ3Az04u497fzTingIvivuyOUof7+RaF/je/1nR6 sfSVyym+1iLwy3iUYqhFwOzDRVCTLXOz9q0dfuGqwRX4nskyTiv/8YoqSc50l5jQZPui 7j/gex/qF/OXsKPPh0mgoYN8uHtlTJhl1O9xaV2dn3B8uggcPCV+vrYAb9fN20jFPaan Q/X9YKtLWrhSJ27Ws+1Swg02AAPJE55eE42ZzFMGg70UyzjkLEuiahMIgd7vA/5501wO m51InHJte5welL2twO3/BjfOI0OMxB6lgRKAWU6qqojsP0aQxnBu5rVg7qSB7r9RG6ew GJYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r25si11062456edy.478.2020.09.15.17.25.00; Tue, 15 Sep 2020 17:25:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727130AbgIPAWZ (ORCPT + 99 others); Tue, 15 Sep 2020 20:22:25 -0400 Received: from brightrain.aerifal.cx ([216.12.86.13]:53978 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727089AbgIPAWI (ORCPT ); Tue, 15 Sep 2020 20:22:08 -0400 Date: Tue, 15 Sep 2020 20:22:02 -0400 From: Rich Felker To: linux-api@vger.kernel.org Cc: Alexander Viro , Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] changes for addding fchmodat2 syscall Message-ID: <20200916002157.GO3265@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I'm resubmitting this split into two parts, first blocking chmod of symlinks in chmod_common, then adding the new syscall, as requested by Christoph. This will make it impossible to chmod symlinks via the O_PATH magic symlink path. I've also reordered the unsupported flags test to come first. Rich