From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1EBEC433F5 for ; Wed, 13 Oct 2021 20:12:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C83F860EDF for ; Wed, 13 Oct 2021 20:12:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239148AbhJMUOe (ORCPT ); Wed, 13 Oct 2021 16:14:34 -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-Google-Smtp-Source: ABdhPJx4zdxYJSt0EevBomv3rQbbQ4b37KN/6V2YFRu2hE3Q4HWDzRT5ObF4KPkBzDyL37PZoHpsLQ== 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