Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3798746pxb; Wed, 13 Oct 2021 13:14:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLGSoxE4pWSmOE5fTlr0SHKzaex58mUcwQoiK6580XvvbANJzt1OOKumbZkC9b2lqFU4eo X-Received: by 2002:a17:902:ab50:b0:13f:4c70:9322 with SMTP id ij16-20020a170902ab5000b0013f4c709322mr1060192plb.89.1634156077426; Wed, 13 Oct 2021 13:14:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634156077; cv=none; d=google.com; s=arc-20160816; b=hfJdVISJ7lCznYiCcNdG6WNN8NB118fa7Ol02VVSzlL62oO3UM041U99e/9KiTK4C4 UuBl1qbaT1wCZwK6jj9DJvjlf9MkG10rIhSuDP5LYx9TbP4CR2wtszuK69yQiQNqzfHJ S7odQhoZ2nlVWv06TnGUxc/Dc3A5lLDKFufHAKrSmi3ZPPonwgVm75T+LRMom4cDJbSY Pz9a++PkI7TRX2ao3AaEITbO8IazuDf6DLcGnNMMioiA5uUlt9qKw2RvRFlzPEF0xshw 8/59KlwXGf1tIm8KJRtle00fYVWi2DgycbDE05u+xd/mHxbSe+HsiNMsynFW63yvVUs2 wfhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:subject:from:to :dkim-signature; bh=2Aa4y4Us+FR2jyMccX84KTkQsvr7Mr0uoXoatsk4aIU=; b=iWM7e7F+AsXMW3VZElBX91u9N+t3DyGSiZCe2xjqEdlFFGQd52a3/CHUAq+p4txMUg twVGUBaiPKEFfd2I7s6uCtlV5gOJnm2qpFthCfYd3NcobMhFo0Ye8hAjgbeBMO4bvoja Db3O70qgrsL5H2aWalxByAPARfj+R0vlDgdgDUMJbSafpmie+C8CGSBKplWaqHWKiRNQ tP2sT/dilgRPFQrHqSAoJMCRDOTMkQMNSLII2Ikt5rZWwp4drRdNQlDTBNoe7T4P6oN/ WhFleb9izKhtMjkKemp1iJ4K8RrXPSj9uOzH6IO/bK27Tyadq0/egAAtQYp2WWLowMzF ai/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20210112.gappssmtp.com header.s=20210112 header.b=oY++jyBr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z10si840484pga.82.2021.10.13.13.14.25; Wed, 13 Oct 2021 13:14:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@landley-net.20210112.gappssmtp.com header.s=20210112 header.b=oY++jyBr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239128AbhJMUO3 (ORCPT + 99 others); Wed, 13 Oct 2021 16:14:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231654AbhJMUOX (ORCPT ); Wed, 13 Oct 2021 16:14:23 -0400 Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE147C061570 for ; Wed, 13 Oct 2021 13:12:19 -0700 (PDT) Received: by mail-qt1-x82a.google.com with SMTP id c28so3753902qtv.11 for ; Wed, 13 Oct 2021 13:12:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20210112.gappssmtp.com; s=20210112; h=to:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=2Aa4y4Us+FR2jyMccX84KTkQsvr7Mr0uoXoatsk4aIU=; b=oY++jyBrNzEdT1LlYyI5ambjGnFGPKL/BS9hKAHoYT2QVdBtKYcUt4dkhXLNiGgV8c QWCe/D1tL6HAFm5xNw9hm4UfDF7SbOJj8S7HBBrUCTlrSWa3CJyMBEPso8/Rlm5zJX2x N6ZU+Xd4fxl6lD5YqSEPqMlKyp+L/d9vweQaoi6FciU/izUTjZz2IbvlG4vnz/2fw/5W oknr1QZmUQHNQyRIMdB1eWK9j7WtBCSSgGRkgyK0dZ0JhTowcpY+gm0OkN4/Uh+4IGvA JIk1yyxLtMUNf7GZFjUaSY7qj0JWClp+0iHymZ3LBna8MExS4qMw9+2CpgJoL1F2vcMz UbtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=2Aa4y4Us+FR2jyMccX84KTkQsvr7Mr0uoXoatsk4aIU=; b=Q7HYIbxDzyKOxc6Apy4MDJP3G/SA3LAHNkuWXgEIK11nub9m8beep/OICWUewfY/Rl otKykaVBRbIRPYoqoODt3elpnobdAEYsOovUZ8r7QPNJRttd9iSXU6Gpf0sK3ZmMqVPY N6+9M5QcVy+BU4RTdC3n0hzzld6psMU11o3hK+DYkMMU7LXNlQaqnWQSxOU0noO4IN3J ZraMEMMeTCAtWEQxNns33Bbw8/IyxbURlIXC8/fJZwcrbefbwBL+w4Aja2Lzxlukd9wt +apCWYzakHUy2hmCh3e7h763opTXjrNMIjZJ9ga4VMQHH5uW8OTFHL7wm8wWHgO+dhjI x9qA== X-Gm-Message-State: AOAM533hZfwHgTM9TH6/S8EP/bw3o8OTrdegBjiy2AQ+2TaBUa/DsH+K k/Ey4nZGEBC9n0IWmF7F5z8cWQLUNCdHjQ== X-Received: by 2002:a05:622a:1444:: with SMTP id v4mr1676745qtx.298.1634155938909; Wed, 13 Oct 2021 13:12:18 -0700 (PDT) Received: from [192.168.39.11] ([172.58.87.41]) by smtp.gmail.com with ESMTPSA id 101sm358957qta.17.2021.10.13.13.12.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Oct 2021 13:12:18 -0700 (PDT) To: "linux-kernel@vger.kernel.org" , Kees Cook , Linux FS Devel From: Rob Landley Subject: The one and only "permission denied" in find /sys Message-ID: Date: Wed, 13 Oct 2021 15:12:16 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is exactly one directory in the whole of sysfs that a normal user can't read (at least on my stock devuan laptop): $ find /sys -name potato find: ‘/sys/fs/pstore’: Permission denied It's the "pstore" filesystem, it was explicitly broken by commit d7caa33687ce, and the commit seems to say this was to fix an issue that didn't exist yet but might someday. Did whatever issue it was concerned about ever actually start happening? Why did you not change the permissions on the files _in_ the directory so they weren't world readable instead? Should /dev/shm stop being world ls-able as well? Confused, Rob