Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6150921ybv; Wed, 12 Feb 2020 06:58:22 -0800 (PST) X-Google-Smtp-Source: APXvYqyE9WxunFAIHsjgtiazanQ0vQpTQm5XxIi6ivqh7ZXiNUNCCXJ6mQmFUjmBtD515HnZaXQT X-Received: by 2002:aca:48cd:: with SMTP id v196mr6673190oia.102.1581519502351; Wed, 12 Feb 2020 06:58:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581519502; cv=none; d=google.com; s=arc-20160816; b=VfEs6QDq4hD3ysIY1IOqGID2wqW8f95oyQ8DeEGaASz0A2YZLISRR+WcXRp75yA+54 N/bbWgYebWnNYRH604dbHyVpufH+os4a0xy8pPUvy9B8sw1zooCdKutbaP7+OYhzt8gG 8HIL+YsLubmv+AyZiCHRB7WcsAaWzzm0Xad1CX7ujrl6bGXu/bcLn3677K/L9lNpQYD1 jmjVQw8E2ItKoGaryF2TWRAZthgOgT8HPRogaEJ+Il/SV+DLhG3pCFteApO19NUAnkUM pnLqsomUtGGacJI0xuOzlR1igM2mlQZS+m5jgUl57zf6O+ImugWQ84YTY6/wN65GhKWn bjDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date; bh=WsD8Ll8SjtRQsu4wfeWoJ69dF0ouaOD2CEnEkD0aYos=; b=myLDawtWYLzPPNB6vFleaWapjHauxvnWSk3LE1l1NgDaimLJEqT2EXCKqFPucMRyff IaS03A3DT2eCdp1onTGP4arMKen7fanZ103NcJykd+LV5E3Z89vnu43rwro7pJpobrko kIE/0HV8mIPL/xZOr0s1dFay5rM74s+tvI4h6VXFZzBsujBcPDHWTPiEoJb6HqmS3EjZ PotJVmpALkhBAFhnpRIlBaN3/bX+CM93e20jftELZEC/YgVYQjZWKdPARzHUJijQVLiY UoO8qKTqRBRfhOvutOSkyuMGUMta2Emzh1L/u6GbfEEZcCiNe1Wnh0hnE4Q8dKrv053k mjhA== 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 i6si295423otp.5.2020.02.12.06.58.09; Wed, 12 Feb 2020 06:58:22 -0800 (PST) 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 S1728386AbgBLO6E (ORCPT + 99 others); Wed, 12 Feb 2020 09:58:04 -0500 Received: from monster.unsafe.ru ([5.9.28.80]:56832 "EHLO mail.unsafe.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727665AbgBLO6E (ORCPT ); Wed, 12 Feb 2020 09:58:04 -0500 Received: from comp-core-i7-2640m-0182e6 (nat-pool-brq-t.redhat.com [213.175.37.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.unsafe.ru (Postfix) with ESMTPSA id E4866C61AB0; Wed, 12 Feb 2020 14:58:00 +0000 (UTC) Date: Wed, 12 Feb 2020 15:57:59 +0100 From: Alexey Gladkov To: Andy Lutomirski Cc: LKML , Kernel Hardening , Linux API , Linux FS Devel , Linux Security Module , Akinobu Mita , Alexander Viro , Alexey Dobriyan , Andrew Morton , 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 , Solar Designer Subject: Re: [PATCH v8 05/11] proc: add helpers to set and get proc hidepid and gid mount options Message-ID: <20200212145759.7dwtgnsetk7osycw@comp-core-i7-2640m-0182e6> Mail-Followup-To: Andy Lutomirski , LKML , Kernel Hardening , Linux API , Linux FS Devel , Linux Security Module , Akinobu Mita , Alexander Viro , Alexey Dobriyan , Andrew Morton , 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 , Solar Designer References: <20200210150519.538333-1-gladkov.alexey@gmail.com> <20200210150519.538333-6-gladkov.alexey@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 10, 2020 at 10:30:45AM -0800, Andy Lutomirski wrote: > On Mon, Feb 10, 2020 at 7:06 AM Alexey Gladkov wrote: > > > > This is a cleaning patch to add helpers to set and get proc mount > > options instead of directly using them. This make it easy to track > > what's happening and easy to update in future. > > On a cursory inspection, this looks like it obfuscates the code, and I > don't see where it does something useful later in the series. What is > this abstraction for? To be honest, this part is from Djalal Harouni. For me, these wrappers exist for a slight increase in readability. I will not cry if you tell me to remove them :) -- Rgrds, legion