Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp752355ybb; Fri, 3 Apr 2020 11:09:18 -0700 (PDT) X-Google-Smtp-Source: APiQypLpnXHg0sRGtrkH6vmfOYinRkEVoNqKcHm2RRorASEVK4CNkpS/7iGuuezNB9OkCVmF7CWy X-Received: by 2002:a9d:5191:: with SMTP id y17mr7688024otg.267.1585937357687; Fri, 03 Apr 2020 11:09:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585937357; cv=none; d=google.com; s=arc-20160816; b=dqmTvIErFbkRKerYs9TZfMLnfnH1DMmizRVa+9nfxEBDVf8IRClzsYdrOd7geMLrKv nuc0nTwXqyf5lffzUJl4sfpmblGzJGA/t1uAKgotRXbW9FtGi1iEmuzL9iQi1fe3qppD wDufGlfKDKvz6s27mQlOjrhgJ6n66HI/9VEZRQ7LtX3X9gvlkEYfuRFsjvPcmjJNlVvb 2mcL3yEZy1SqAWr4Hd0h2wwsKf2dzTOA4RUXhhH1n+RV3OLuP4rlAIE6S1inApzMO9jj oPg2+c+mkE48sUPhh3sO+DcQ3i4wstsnQqbN3fQC54oQrI6ym74SWw96cqvhnMU6eNcv 0fSQ== 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=Ojp9x6ldBPQ0hZUw4H2WuF42Qfv0hFToMUOE3hhJBrs=; b=tS4hBA1oDYuYdq1XWdccFoRdROeTytbTK7y7G2MAkcLdBwvd+sTw2MHiuCpyx3tjBS 6gRPgriyWuJX6vCcEQS9LQ5y0O38YCrzWGm6D9dDP0zc9O2586yUGpPPByoJBO6vmDZG MreKel6FNOxJ89tkWjw4Da/mDj1WfTurz/NZ2UzCJLF0PNylYbSQ9FTBE3+gG4oOowcc 8EcGp0mPzYLRQFmSVr+koUPuO8TioY0d9QQF62jMVbhP6Wf2ERL4kv4+884R4t83qUbA CIEn6+w45+3zPEw/xBKh7OdF2JZrvuJzEcDb1/5OwihCj07YbdITq1Ld5Erb+Qo/LCzu 7rTg== 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 a5si3931245oii.181.2020.04.03.11.09.05; Fri, 03 Apr 2020 11:09:17 -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 S2404349AbgDCSH1 (ORCPT + 99 others); Fri, 3 Apr 2020 14:07:27 -0400 Received: from raptor.unsafe.ru ([5.9.43.93]:37926 "EHLO raptor.unsafe.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728066AbgDCSH0 (ORCPT ); Fri, 3 Apr 2020 14:07:26 -0400 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 80587209D5; Fri, 3 Apr 2020 18:07:23 +0000 (UTC) From: Alexey Gladkov To: LKML Cc: Kernel Hardening , Linux API , Linux FS Devel , Linux Security Module , 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 , David Howells Subject: [PATCH v11 1/8] proc: rename struct proc_fs_info to proc_fs_opts Date: Fri, 3 Apr 2020 20:06:41 +0200 Message-Id: <20200403180648.721362-2-gladkov.alexey@gmail.com> X-Mailer: git-send-email 2.25.2 In-Reply-To: <20200403180648.721362-1-gladkov.alexey@gmail.com> References: <20200403180648.721362-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, 03 Apr 2020 18:07:24 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Alexey Gladkov Reviewed-by: Alexey Dobriyan Reviewed-by: Kees Cook --- 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