From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751510AbdBOI5P (ORCPT ); Wed, 15 Feb 2017 03:57:15 -0500 Received: from mail-qk0-f196.google.com ([209.85.220.196]:34283 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750829AbdBOI4I (ORCPT ); Wed, 15 Feb 2017 03:56:08 -0500 MIME-Version: 1.0 In-Reply-To: <20170214163406.1ed8e7d707510d14137f1dd6@linux-foundation.org> References: <1484572984-13388-1-git-send-email-djalal@gmail.com> <1484572984-13388-2-git-send-email-djalal@gmail.com> <20170214163406.1ed8e7d707510d14137f1dd6@linux-foundation.org> From: Djalal Harouni Date: Wed, 15 Feb 2017 09:56:06 +0100 Message-ID: Subject: Re: [PATCH v4 1/2] procfs: use an enum for possible hidepid values To: Andrew Morton Cc: Kees Cook , LKML , "kernel-hardening@lists.openwall.com" , Lafcadio Wluiki Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 15, 2017 at 1:34 AM, Andrew Morton wrote: > On Mon, 13 Feb 2017 14:16:30 -0800 Kees Cook wrote: > >> On Mon, Jan 16, 2017 at 5:23 AM, Djalal Harouni wrote: >> > From: Lafcadio Wluiki >> > >> > Previously, the hidepid parameter was checked by comparing literal >> > integers 0, 1, 2. Let's add a proper enum for this, to make the checking >> > more expressive: >> > >> > 0 ___ HIDEPID_OFF >> > 1 ___ HIDEPID_NO_ACCESS >> > 2 ___ HIDEPID_INVISIBLE >> > >> > This changes the internal labelling only, the userspace-facing interface >> > remains unmodified, and still works with literal integers 0, 1, 2. >> > >> > No functional changes. >> > >> > Acked-by: Kees Cook >> > Acked-by: Djalal Harouni >> > Signed-off-by: Lafcadio Wluiki >> >> Andrew, can you take this? It's a sensible cleanup to drop literals in >> favor of defines. > > Sure. > > Djalal, I converted your acked-by into a signed-off-by, as described in > Documentation/SubmittingPatches (soon to become > Documentation/process/submitting-patches.rst). Thank you Andrew! -- tixxdz