Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp955388ybb; Sat, 28 Mar 2020 14:26:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtJF2Yd8jSSMQAsLqilCwdXqUkClLMaw1r+UO27UQAI+brz8rr1HPLWn49Nk/xoH1j5f6pR X-Received: by 2002:a05:6808:56:: with SMTP id v22mr3177265oic.116.1585430818629; Sat, 28 Mar 2020 14:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585430818; cv=none; d=google.com; s=arc-20160816; b=xo7Z5j9eja8GQZdQLVk9OkBMcOhHx+TMUtM5UBmUSzmOjphGIxrffkqjSUB+GV6SZh kJv8fM8RJjqf/JLekGJbw+AizgJ6RciTaRKKvhXKflvJkSaZg6TtgTtf1DWOU2cY0ceN fBTKUQb4uutiV7az8Vh/grew1O0haf1yzGjYWXPTk45NG50QtzeLY4WY7Rk0ivip8fsF dgNk9RnjsByO/L10mDAuBmQfptcDoCWj/ArtxO9fp2zAslR0cq5nW5krS/9Cl2bO7WGE 3m4QjxgosMcou7sZqh8cDlTQ9tbp9fqOnGX1ahsbRyDEh9QqnylCdINbjH0dB/M6z14t JFxA== 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:message-id:subject:cc:to:from:date; bh=dNdapx5hcRy+V8UKEEuviFqrH4Os53F1HapX4/ZMKoU=; b=Vi14lyF8d5ZL/M0tVqSUWKIil++zmOjXr80tsAE/zvc+yJZUS+TXtHk34ztm6j6AI8 zz8UA0Y2fYyNzS5HHLZx2zhz5kqRBwvS/4fkSWakGhL0WmD7hcIeZTZYyf8TcGHc144E 1GHAx8VXrJ1LADVoMaTJkOkXU6XFMhu42B/AsllcqgVFPYXoDSHbPfgKBpL/bIUis1Rl zdZxCYidiryOz3eer53q6mr/dFZ3wSe7rRBCKlpiUsaCpijjqUMWpmq4cUEc8fpyMuEf tMKlhavFoe56InqWdvrk6lKRFnCif7q/80mFF14pj+yuQM7rFd4PqYzDMLTiQapAQz/B u2LQ== 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 e24si4034767oti.10.2020.03.28.14.26.46; Sat, 28 Mar 2020 14:26:58 -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 S1727705AbgC1VZz (ORCPT + 99 others); Sat, 28 Mar 2020 17:25:55 -0400 Received: from raptor.unsafe.ru ([5.9.43.93]:56820 "EHLO raptor.unsafe.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727151AbgC1VZz (ORCPT ); Sat, 28 Mar 2020 17:25:55 -0400 Received: from comp-core-i7-2640m-0182e6 (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 3C187209BD; Sat, 28 Mar 2020 21:25:52 +0000 (UTC) Date: Sat, 28 Mar 2020 22:25:47 +0100 From: Alexey Gladkov To: Kees Cook 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 , Linus Torvalds , Oleg Nesterov Subject: Re: [PATCH v10 7/9] proc: move hidepid values to uapi as they are user interface to mount Message-ID: <20200328212547.xxiqxqhxzwp6w5n5@comp-core-i7-2640m-0182e6> References: <20200327172331.418878-1-gladkov.alexey@gmail.com> <20200327172331.418878-8-gladkov.alexey@gmail.com> <202003281340.B73225DCC9@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202003281340.B73225DCC9@keescook> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.1 (raptor.unsafe.ru [5.9.43.93]); Sat, 28 Mar 2020 21:25:52 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 28, 2020 at 01:41:02PM -0700, Kees Cook wrote: > diff --git a/include/uapi/linux/proc_fs.h b/include/uapi/linux/proc_fs.h > > new file mode 100644 > > index 000000000000..dc6d717aa6ec > > --- /dev/null > > +++ b/include/uapi/linux/proc_fs.h > > @@ -0,0 +1,13 @@ > > +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ > > +#ifndef _UAPI_PROC_FS_H > > +#define _UAPI_PROC_FS_H > > + > > +/* definitions for hide_pid field */ > > +enum { > > + HIDEPID_OFF = 0, > > + HIDEPID_NO_ACCESS = 1, > > + HIDEPID_INVISIBLE = 2, > > + HIDEPID_NOT_PTRACEABLE = 4, > > +}; > > + > > +#endif > > -- > > 2.25.2 > > > > Should the numeric values still be UAPI if there is string parsing now? I think yes, because these are still valid hidepid= values. -- Rgrds, legion