Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1009218ybb; Sat, 28 Mar 2020 16:01:21 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtDuLsdEkvV05siUc7boRBQSDiNfEPszqJ4SapbdK+Z3mcngPVqIpU4X+X68UJnVo1LFIWf X-Received: by 2002:a05:6830:2246:: with SMTP id t6mr4073517otd.163.1585436481198; Sat, 28 Mar 2020 16:01:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585436481; cv=none; d=google.com; s=arc-20160816; b=iO6xxvIxQbsk0wXnT4Fzso6JoBIg6MIWqzc8sNVfATfYuf+wgXoeCzgwU+1BIpnS0F 4BPDARgRxqyuxvCO6icTZgTHqTK9VyHYryxEJLNazdoqBVwi2ZGw+hsLmhPFal6Z9otP mfXIr0hwu/cy7p8H5AVvgqHz/2vkNOSyJH4B13edsTice8r48SGpZDywuC/qjrYqYpeZ Z/O4RueDjBzI6brxSlEQi81ukfAgAXA25mlUxUWV2ADuLfRULaudPr45/S5q2gNBonXv YCY2rNSgGHn8o65hX8DLk6Tdd24TESwPbWJrtuvjECeOIzhy07kWWhtWUJOCJTSnqDm8 00Mw== 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=U6A9tj8NcCPrl/cUk48HlkgXjHTIwI9MvVF717M3SpQ=; b=Fco9s9OuBdGsUF23AAqvD5k+t+CpyN6E30Jy+m+TOv3J3xA1dNxli4VBz4eMxvsPH4 5H0msTe3INnBvfZhxYwpUWz9GtiAX9sM/X5ywWOFgiPhOl414CA5Tt95bulDAl2fpWbf mSoCL1b6pne31UixF7LLTlF3KCBREmX6q0XBD2MRdoJx68htXzP06GcJZMU8KeBGwXeo CLfjeb+LWol1w7wlUi5sR5V5GC+nl0hoL35tuSVPSGtHKhQrpwxr97H4XZ1cmxwIkotl +/36yZGkFBoVb0XfNkcTJYcd9iyCWqaA6pi9T659wHUsdIrmf+/AkrgMz76a3ScZY+yj URUg== 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 b11si4083544oii.11.2020.03.28.16.01.08; Sat, 28 Mar 2020 16:01:21 -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 S1727737AbgC1XAx (ORCPT + 99 others); Sat, 28 Mar 2020 19:00:53 -0400 Received: from raptor.unsafe.ru ([5.9.43.93]:39934 "EHLO raptor.unsafe.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727175AbgC1XAw (ORCPT ); Sat, 28 Mar 2020 19:00:52 -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 4FE36209BD; Sat, 28 Mar 2020 23:00:49 +0000 (UTC) Date: Sun, 29 Mar 2020 00:00:46 +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: <20200328230046.v3qbffmbtl4sd7tg@comp-core-i7-2640m-0182e6> References: <20200327172331.418878-1-gladkov.alexey@gmail.com> <20200327172331.418878-8-gladkov.alexey@gmail.com> <202003281340.B73225DCC9@keescook> <20200328212547.xxiqxqhxzwp6w5n5@comp-core-i7-2640m-0182e6> <202003281453.CED94974@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202003281453.CED94974@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 23:00:49 +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 02:53:49PM -0700, Kees Cook wrote: > > > > +/* definitions for hide_pid field */ > > > > +enum { > > > > + HIDEPID_OFF = 0, > > > > + HIDEPID_NO_ACCESS = 1, > > > > + HIDEPID_INVISIBLE = 2, > > > > + HIDEPID_NOT_PTRACEABLE = 4, > > > > +}; > > > Should the numeric values still be UAPI if there is string parsing now? > > > > I think yes, because these are still valid hidepid= values. > > But if we don't expose the values, we can do whatever we like with > future numbers (e.g. the "is this a value or a bit field?" question). Alexey Dobriyan suggested to put these parameters into the UAPI and it makes sense because these are user parameters. -- Rgrds, legion