Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2706969ybb; Fri, 27 Mar 2020 10:33:27 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsfU47XNBNwZnUkVpZ40R4akAp9O0gk8izg/aCeiOhhqRSZB3bBCx6+7ju6n7dMrR7Xe6js X-Received: by 2002:a9d:6b8b:: with SMTP id b11mr4752769otq.119.1585330407556; Fri, 27 Mar 2020 10:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585330407; cv=none; d=google.com; s=arc-20160816; b=qCSO6/ncqlAcU68v8LLj/5pJP89hgr+2P2/WytFLM4Vv3QoswbW1lHokOaf+ftyUd5 Us5KaDExS+iGEl8TrVKZ2EItYCIcVHbVNies85BdJQVdTw/+pJEhf0saJdht+ouXVPxF 8/w/hfTP0KD9STf58z6Ah1GmyMXAU9MCHI9ZMNi1g3vLrRTpfghVJfF2gQJ7XI4s0sJb JC9H0LbF+fsywMEi7D3JFsXPNxkQaDQO5PI0mR8XzkSL5TYiaQyWoplo6Qw73eq5Rt9j AB+3GWxiXgE2EWFAYHwTr9wHb+VqN8ClKHS0+RIr1P+66DRbIxWrxTuJLO1hOz2YPNE9 I3dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8/wc9CXOJHmD7aQv+RqFH1paPaIRs5bAquFsW4HOhy0=; b=d0ygHMb4Lom7FXV8JxmE1/E7imlEQ0P2/2LdjW6RJHFXTqrfjYGXtccpHlicMNx1dR WejLiBjGilVe/00l/NbnlUnapoa67h9knEIxFsU8aGz5AjnOhBKomTaC/pTJQ/Yv6Ltm 2g/FKMJ8mOxbjf5/QtBqR55CRj1nF2d6YvFwW8aRrb40V0gfBcbvnDQ3nU8C/atqFakb NltnNn218wPUB+CpGn22SLKAQ8OywdZ5LZt99qAQ9PkdNuehpKlo8sDulgJ0dzoeCryJ U8OHZ0au2QxlTFsbWAnAREdEG7WdiFyN2PSizeQ6BLVgY144aryCm64a9CxN3j8c4dK/ 6vRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l18si2678969otb.312.2020.03.27.10.33.13; Fri, 27 Mar 2020 10:33:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727674AbgC0Rbn (ORCPT + 99 others); Fri, 27 Mar 2020 13:31:43 -0400 Received: from raptor.unsafe.ru ([5.9.43.93]:38818 "EHLO raptor.unsafe.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726275AbgC0Rbn (ORCPT ); Fri, 27 Mar 2020 13:31:43 -0400 X-Greylist: delayed 464 seconds by postgrey-1.27 at vger.kernel.org; Fri, 27 Mar 2020 13:31:41 EDT Received: from comp-core-i7-2640m-0182e6.redhat.com (ip-89-102-33-211.net.upcbroadband.cz [89.102.33.211]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by raptor.unsafe.ru (Postfix) with ESMTPSA id BEA84209C7; Fri, 27 Mar 2020 17:23:55 +0000 (UTC) From: Alexey Gladkov To: LKML , Kernel Hardening , Linux API , Linux FS Devel , Linux Security Module Cc: Akinobu Mita , Alexander Viro , Alexey Dobriyan , Alexey Gladkov , Andrew Morton , Andy Lutomirski , Daniel Micay , Djalal Harouni , "Dmitry V . Levin" , "Eric W . Biederman" , Greg Kroah-Hartman , Ingo Molnar , "J . Bruce Fields" , Jeff Layton , Jonathan Corbet , Kees Cook , Linus Torvalds , Oleg Nesterov Subject: [PATCH v10 1/9] proc: rename struct proc_fs_info to proc_fs_opts Date: Fri, 27 Mar 2020 18:23:23 +0100 Message-Id: <20200327172331.418878-2-gladkov.alexey@gmail.com> X-Mailer: git-send-email 2.25.2 In-Reply-To: <20200327172331.418878-1-gladkov.alexey@gmail.com> References: <20200327172331.418878-1-gladkov.alexey@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.1 (raptor.unsafe.ru [5.9.43.93]); Fri, 27 Mar 2020 17:23:56 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reviewed-by: Alexey Dobriyan Signed-off-by: Alexey Gladkov --- fs/proc_namespace.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fs/proc_namespace.c b/fs/proc_namespace.c index 273ee82d8aa9..9a8b624bc3db 100644 --- a/fs/proc_namespace.c +++ b/fs/proc_namespace.c @@ -37,23 +37,23 @@ static __poll_t mounts_poll(struct file *file, poll_table *wait) return res; } -struct proc_fs_info { +struct proc_fs_opts { int flag; const char *str; }; static int show_sb_opts(struct seq_file *m, struct super_block *sb) { - static const struct proc_fs_info fs_info[] = { + static const struct proc_fs_opts fs_opts[] = { { SB_SYNCHRONOUS, ",sync" }, { SB_DIRSYNC, ",dirsync" }, { SB_MANDLOCK, ",mand" }, { SB_LAZYTIME, ",lazytime" }, { 0, NULL } }; - const struct proc_fs_info *fs_infop; + const struct proc_fs_opts *fs_infop; - for (fs_infop = fs_info; fs_infop->flag; fs_infop++) { + for (fs_infop = fs_opts; fs_infop->flag; fs_infop++) { if (sb->s_flags & fs_infop->flag) seq_puts(m, fs_infop->str); } @@ -63,7 +63,7 @@ static int show_sb_opts(struct seq_file *m, struct super_block *sb) static void show_mnt_opts(struct seq_file *m, struct vfsmount *mnt) { - static const struct proc_fs_info mnt_info[] = { + static const struct proc_fs_opts mnt_opts[] = { { MNT_NOSUID, ",nosuid" }, { MNT_NODEV, ",nodev" }, { MNT_NOEXEC, ",noexec" }, @@ -72,9 +72,9 @@ static void show_mnt_opts(struct seq_file *m, struct vfsmount *mnt) { MNT_RELATIME, ",relatime" }, { 0, NULL } }; - const struct proc_fs_info *fs_infop; + const struct proc_fs_opts *fs_infop; - for (fs_infop = mnt_info; fs_infop->flag; fs_infop++) { + for (fs_infop = mnt_opts; fs_infop->flag; fs_infop++) { if (mnt->mnt_flags & fs_infop->flag) seq_puts(m, fs_infop->str); } -- 2.25.2