Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4009757ybv; Mon, 10 Feb 2020 10:31:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwxqCU8WqrEvrBatqyMBuRFZHAGy9baRf6d769Fp9QkfwyvivMlgcZ3jMq/PtinIHMXU6S9 X-Received: by 2002:aca:e146:: with SMTP id y67mr232592oig.93.1581359497983; Mon, 10 Feb 2020 10:31:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581359497; cv=none; d=google.com; s=arc-20160816; b=c1uls1tlnJ9r4ZNzbP7QRoJgTQYO9AL/vnpalL568Eq3qULg+zLjEMPCPSwhXgVi8A lsNKG5wmKwn3cdxq6g5hBERKtCPkuY4HSpnYFR+Sa+UTWvoOsgo3oGqQe4UZ2LN1ouY0 5eKrE0+R1oIsMqv5i3NKOJut0Ge/rcuAqmcl0DF5aadlYPEUXcJek5Zrh9Gio6J0CdnH vw+WZC4O3ByI1EAIxyeaCXOifyIEpZ4bgLnaXX5oZ+vqT769zTpV2Gr5G4FUH1jABJF6 h6vpW/HEFUfaBYLqU+w1sFkK/9IwEMc6gdvVey1JNibgTGDsUenLciHE5DIAniKgpGwJ o/8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XokixibVASuTSNps8dXnwXAqUcjc3Eu7prr+szC6eUg=; b=EKkR/RqQ7iDv7YLdamT4N8GC0bXBJf1lk/XrqNW3C4lN53+AZL5NGwPh/wSGJmjCev T1yFIXBebI72FG1Y/9ud2cDaxS+Uy7N4a2ZIluX4WKvn8yul9B6+bUsp2ab6yq7inRUU V2g88O3XicJjGSRj0IuWQi4d/SSFtl5IoQxC6IQJOdmJ3mfkHq6hguO4JCwFsFrwCOx6 g2eVxJ2XmcBu73iEIaXJtMQBb7Zgm3Pi4HHAH5qqHvSWLmdjxcV5vyi0i+lhffUYEdzs EUPat4BiTSY8BbqoAK6MPzv/8ZoXhO4xCt5uYUVrgKCV8xbHRSVLwcmqXXfntBttW/LO 2NHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dZmJEdXy; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k19si558634otp.33.2020.02.10.10.31.26; Mon, 10 Feb 2020 10:31:37 -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; dkim=pass header.i=@kernel.org header.s=default header.b=dZmJEdXy; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727609AbgBJSa7 (ORCPT + 99 others); Mon, 10 Feb 2020 13:30:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:50502 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727481AbgBJSa6 (ORCPT ); Mon, 10 Feb 2020 13:30:58 -0500 Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 35B96214DB for ; Mon, 10 Feb 2020 18:30:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581359458; bh=omPLg79kMPvUSKiyNNvd0/ylILD31wzwomGJPrNGyQg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dZmJEdXyo7TiCuP494908+DDQqiXuByAFM/5ZYZdUBh1RBbsjG4Nj8BtvNderACDu buUtqSZaMUtzDuCNulwdaDkgV5kqZL7lno4QgAbQ/lGQBv705tgeTFjmzJtXJCSjQ1 BFRJCZcEs4eVwRoiOiwkJ6JclPVFDKSbcrF3PIR0= Received: by mail-wr1-f49.google.com with SMTP id w12so9076554wrt.2 for ; Mon, 10 Feb 2020 10:30:58 -0800 (PST) X-Gm-Message-State: APjAAAUNr03bj5+/jnD4xKew7SrVoj24sYbuImCa06KnlcAKb/dU+V87 KAeVYnMBTSJ06t1I6fhnzEuaNSfB/uURbQrZ/mR4OQ== X-Received: by 2002:adf:ea85:: with SMTP id s5mr3242839wrm.75.1581359456683; Mon, 10 Feb 2020 10:30:56 -0800 (PST) MIME-Version: 1.0 References: <20200210150519.538333-1-gladkov.alexey@gmail.com> <20200210150519.538333-6-gladkov.alexey@gmail.com> In-Reply-To: <20200210150519.538333-6-gladkov.alexey@gmail.com> From: Andy Lutomirski Date: Mon, 10 Feb 2020 10:30:45 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v8 05/11] proc: add helpers to set and get proc hidepid and gid mount options To: Alexey Gladkov Cc: LKML , Kernel Hardening , Linux API , Linux FS Devel , Linux Security Module , Akinobu Mita , Alexander Viro , Alexey Dobriyan , 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 , Solar Designer Content-Type: text/plain; charset="UTF-8" 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 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? --Andy