Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1426311ybp; Fri, 11 Oct 2019 14:10:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzaNPRqw3vLJLs0gAnRl7FA0YZBXsBOqV1q2gY7gWhoiTzIe2BOm3jfpAalhMAVgxq09Iel X-Received: by 2002:aa7:d8c7:: with SMTP id k7mr15674176eds.138.1570828214789; Fri, 11 Oct 2019 14:10:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570828214; cv=none; d=google.com; s=arc-20160816; b=NtaqMXKbkuULtRohtxOivbCB2Bi0+GW1vytjmx6fQwZ1ND4zNHCgflfY2s/gCUm4Y5 o+51u9zuy4x2lMx27vPeJd1RyfXHtkNErC6iVcXE1g+4LRlewiIyMXuNjxlbcM5UJC8j DOdYnsJNguv/3F0pyql7IAKi0uW/StXq8gPdxC6GkOV+q5/qTxUtbH+1zQiVytqB/74I PKNT9J8OSzIk4HOmHkU5WyOjOkS4FE3uu69q7DW98WSF+aPxm+MOA6GOXVpANdb86YJk HIk2zdSRxr9Ny/UHYLicMmlpGv8VKIgO/U8md1/vZTUqXeC4gOPkWIZ5lBU3jnY39wsr lE6g== 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=SKr4WHC3iR8iedd+96HoEDT1mA0iwz01QLINNBDqvTA=; b=S9doQ2qouEZKBMkVSFmm4WwyENm4S2IkJJKhyI2VOLWImJKgVu97z9O0gx7d7ofI0/ iH34PL3ocnYth5qJa7NbxDw8j6I6wuyRdsvve2FBcCb/1UaTE9yWFuAVgYVs6KYNrB/E w3R07P5zP53RcjRD29WyKvktzVb7plFCk+9wtaRktTOLq9NoYUKXHLJXdcvbtqCQoldR NoidOuE1C9yZWF4ZGVRdmVDa+q5pjjEYkXImFji+ypZUa5Fh3E33OovkvCeyZRNuvmyu X0fUjHo5yod72xVtiBFdBqh6ylw2WuhnHIye0m/UfMbfJseq3l3FDo59fJnW1YNuNAk7 jzsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=AjD32CNE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u20si6211028edy.284.2019.10.11.14.09.50; Fri, 11 Oct 2019 14:10:14 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=AjD32CNE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729150AbfJKVBK (ORCPT + 99 others); Fri, 11 Oct 2019 17:01:10 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:38252 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbfJKVBK (ORCPT ); Fri, 11 Oct 2019 17:01:10 -0400 Received: by mail-lf1-f67.google.com with SMTP id u28so7963869lfc.5 for ; Fri, 11 Oct 2019 14:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SKr4WHC3iR8iedd+96HoEDT1mA0iwz01QLINNBDqvTA=; b=AjD32CNEE5D2mrL1SxTGTAcIg8rDu5TsWXuC3JWTpw/d7RSutnwDdzYzC2ZDXXNEQs xbRUdI2G9Bdey7J+lF7C19PmyyR/h7paQAvoZ3B7DeLBGHQM7JosujRghPkyJaObtcaK WflPEvqjO32pHzc6ziczhzVrcfZHPdGY8qVxg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SKr4WHC3iR8iedd+96HoEDT1mA0iwz01QLINNBDqvTA=; b=b/wkBp/C2puFguauhSrijKqB/oOVnh6JpTSSClehXwACWXgBcx5zuqyOSZgGSWtOGU DGBINUDO8Wob+l5rjttZf5RkvrIzuJaQYUAgOENvvThUaj3z6hUHoSMe/US7zw+8CD3V /t6OpVnT5B5E8Wo4YtNASaa+O0aZQUvB/2JQI1Mi3KF3zCN5lKYiL4DFG5UqMfw9OQTy EcOMHL3UlSZ+xaUK/wKdQyBgzFrC+j5BM6r9A8CmNDTq5pBeXcJQsrLRSZA9PnDZfrEp 4cLoAV0fHN5g1wePskifcgH70HgmwBuxgL1GmS1JlM2lAje9U1YeVS1N3/8q6mPl0PqK D/3A== X-Gm-Message-State: APjAAAUIdbI6emQGsUQDN8FmllpXfZ1DwiykSYPtja7ZFFipVUSusaT7 Pt96IB06bb5ja2MA46zbKS5c3bpgJu8= X-Received: by 2002:ac2:4578:: with SMTP id k24mr9565269lfm.84.1570827668198; Fri, 11 Oct 2019 14:01:08 -0700 (PDT) Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com. [209.85.167.48]) by smtp.gmail.com with ESMTPSA id t25sm2139056ljj.93.2019.10.11.14.01.07 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Oct 2019 14:01:07 -0700 (PDT) Received: by mail-lf1-f48.google.com with SMTP id y127so7984084lfc.0 for ; Fri, 11 Oct 2019 14:01:07 -0700 (PDT) X-Received: by 2002:ac2:5924:: with SMTP id v4mr9785397lfi.29.1570827666846; Fri, 11 Oct 2019 14:01:06 -0700 (PDT) MIME-Version: 1.0 References: <20191011135458.7399da44@gandalf.local.home> <20191011162518.2f8c99ca@gandalf.local.home> <20191011165455.32666d53@gandalf.local.home> In-Reply-To: <20191011165455.32666d53@gandalf.local.home> From: Linus Torvalds Date: Fri, 11 Oct 2019 14:00:50 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] tracefs: Do not allocate and free proxy_ops for lockdown To: Steven Rostedt Cc: LKML , Matthew Garrett , James Morris James Morris , LSM List , Linux API , Ben Hutchings , Al Viro 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 Fri, Oct 11, 2019 at 1:55 PM Steven Rostedt wrote: > > I guess I can keep it this way. Thoughts? That looks fine to me. I'm still not sure you actually need to do all this, but it doesn't look _wrong_. That said, I still do think that if things are locked down from the very get-go, tracefs_create_file() shouldn't even create the files. That's mostly an independent thing from the "what about if they exists and things got locked down afterwards", though. I do wonder about the whole "well, if you started tracing before locking things down, don't you want to see the end results"? Linus