Message ID | ef644540cfd8717f30bcc5e4c32f06c80b6c156e.1689092120.git.legion@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp601974vqm; Tue, 11 Jul 2023 09:26:05 -0700 (PDT) X-Google-Smtp-Source: APBJJlHR0jBvPnkQqxZLNSrjJ2dufbSQeD8votk1ZGVT8ogtK//xXMWzf2Dp6B4bxlyXGkiD9wu0 X-Received: by 2002:a05:6a00:194d:b0:668:7b5b:c1aa with SMTP id s13-20020a056a00194d00b006687b5bc1aamr20667787pfk.20.1689092765052; Tue, 11 Jul 2023 09:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689092765; cv=none; d=google.com; s=arc-20160816; b=I0rmSBTtTZ3l/3kEC9mR/LHzPCmCp7klwdcBdF1gQU7d3zOZ3DoVXR2bcsnRjoBCZg Q2k2ouOI2kkR4eOF2x5TqgWX6f2mkHr1h6mnzJxW4CtrAxIDI83mJcfyGMsSU60MJZAV mO1xtSoT2fzp42dDn6kyPxy1AbOztz0NknyMg+++83pQMQiPrgP29yuhVPsWriVCZ6+E cadeKvkfxdCEzUb9N3q0DFVZ9Br4NurteVdvfU5tE6V4bt3q667FQ20JPaaznQNC4wIi j3UIhuBJg+NXZ98P4W9BrhYYO4K/RIu4nMQ7uqc0wfbxTvGy4qExYJwtTxtoFCa7Mpxh d7yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=skvUnBZrOK42sZxSnNitCCoi/O4YZR16TcYX/wkzLns=; fh=4pe1yMJ8UEfXXy4/KC174axgh1hsiP9hOHqlpm8GKzk=; b=XuSPcWbZdYMVJRPFuD0NjSHHlhUzYioOi7vxPtvMI9EVcj48t9QbV6oub2QM63JJ9B aaUz4jwiFZrId2mvVr+rSpclKDwf/mS/34NI98H9WGjKw1JLzM1nSjibsmQOWVQArYRu bgD4kR17JGUnyG/hVHb072NK9neEHpgndo9rV9q3xrbKeA3eIUvCC8LUIt7ruQQS/Muw VGEIDyQb5YdMwg0jX0Zx0pXxThXL4eBDxyJTAmS8uxafRgJCk0JbImBZa6q9HGhD3lOy F4m8cf2fCdDjrdpPz82po6SwpqtuLrkEstTx+0pym3YnfeiY/TxH+i+ugYT5CCrQIdHt AjhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w18-20020aa79552000000b0065dba8cc3a6si1637769pfq.376.2023.07.11.09.25.51; Tue, 11 Jul 2023 09:26:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233125AbjGKQRu (ORCPT <rfc822;gnulinuxfreebsd@gmail.com> + 99 others); Tue, 11 Jul 2023 12:17:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232569AbjGKQRc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 11 Jul 2023 12:17:32 -0400 Received: from us-smtp-delivery-44.mimecast.com (unknown [207.211.30.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0ABFB8 for <linux-kernel@vger.kernel.org>; Tue, 11 Jul 2023 09:17:29 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-47-HkgYrpJTPEOk8QSp6Nz50A-1; Tue, 11 Jul 2023 12:17:05 -0400 X-MC-Unique: HkgYrpJTPEOk8QSp6Nz50A-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4346D1043AC0; Tue, 11 Jul 2023 16:17:00 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.45.225.44]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7A905200BA8B; Tue, 11 Jul 2023 16:16:49 +0000 (UTC) From: Alexey Gladkov <legion@kernel.org> To: LKML <linux-kernel@vger.kernel.org>, Arnd Bergmann <arnd@arndb.de>, linux-api@vger.kernel.org, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk Cc: Palmer Dabbelt <palmer@sifive.com>, James.Bottomley@HansenPartnership.com, acme@kernel.org, alexander.shishkin@linux.intel.com, axboe@kernel.dk, benh@kernel.crashing.org, borntraeger@de.ibm.com, bp@alien8.de, catalin.marinas@arm.com, christian@brauner.io, dalias@libc.org, davem@davemloft.net, deepa.kernel@gmail.com, deller@gmx.de, dhowells@redhat.com, fenghua.yu@intel.com, fweimer@redhat.com, geert@linux-m68k.org, glebfm@altlinux.org, gor@linux.ibm.com, hare@suse.com, hpa@zytor.com, ink@jurassic.park.msu.ru, jhogan@kernel.org, kim.phillips@arm.com, ldv@altlinux.org, linux-alpha@vger.kernel.org, linux-arch@vger.kernel.org, linux-ia64@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux@armlinux.org.uk, linuxppc-dev@lists.ozlabs.org, luto@kernel.org, mattst88@gmail.com, mingo@redhat.com, monstr@monstr.eu, mpe@ellerman.id.au, namhyung@kernel.org, paulus@samba.org, peterz@infradead.org, ralf@linux-mips.org, sparclinux@vger.kernel.org, stefan@agner.ch, tglx@linutronix.de, tony.luck@intel.com, tycho@tycho.ws, will@kernel.org, x86@kernel.org, ysato@users.sourceforge.jp Subject: [PATCH v4 1/5] Non-functional cleanup of a "__user * filename" Date: Tue, 11 Jul 2023 18:16:03 +0200 Message-Id: <ef644540cfd8717f30bcc5e4c32f06c80b6c156e.1689092120.git.legion@kernel.org> In-Reply-To: <cover.1689092120.git.legion@kernel.org> References: <cover.1689074739.git.legion@kernel.org> <cover.1689092120.git.legion@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_RPBL,RDNS_NONE,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771123524986440304 X-GMAIL-MSGID: 1771142135022866636 |
Series |
Add a new fchmodat2() syscall
|
|
Commit Message
Alexey Gladkov
July 11, 2023, 4:16 p.m. UTC
From: Palmer Dabbelt <palmer@sifive.com> The next patch defines a very similar interface, which I copied from this definition. Since I'm touching it anyway I don't see any reason not to just go fix this one up. Signed-off-by: Palmer Dabbelt <palmer@sifive.com> Acked-by: Arnd Bergmann <arnd@arndb.de> --- include/linux/syscalls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index 03e3d0121d5e..584f404bf868 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h @@ -438,7 +438,7 @@ asmlinkage long sys_chdir(const char __user *filename); asmlinkage long sys_fchdir(unsigned int fd); asmlinkage long sys_chroot(const char __user *filename); asmlinkage long sys_fchmod(unsigned int fd, umode_t mode); -asmlinkage long sys_fchmodat(int dfd, const char __user * filename, +asmlinkage long sys_fchmodat(int dfd, const char __user *filename, umode_t mode); asmlinkage long sys_fchownat(int dfd, const char __user *filename, uid_t user, gid_t group, int flag);