Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp709512imu; Thu, 20 Dec 2018 04:11:34 -0800 (PST) X-Google-Smtp-Source: AFSGD/UrHq3mAHOFIebMnDzymT+VJ1kn7kKMlL1WKkQyE+cqEmyYnf5pLgI/8FVuaL+/3F/ZuryA X-Received: by 2002:a62:6143:: with SMTP id v64mr24018416pfb.142.1545307894816; Thu, 20 Dec 2018 04:11:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545307894; cv=none; d=google.com; s=arc-20160816; b=OyybEhFFK9bEHRAj8hNak04DyzobqoeN2tDOCh2EUN0ifoCLT3JhDaiUY3V/eBMwQ2 8Xi5VHSHnFeAo7hvcM113OzgW7b8Eg86JFMysd0CaHxror/rLMLf6Ygn4SRtIyI68nbJ W88CwdAzkO2ILlf16BlGT9Lmhp9mQ0HN8oUgFZT4H+uanE0AEral2K6rzffa3TV73u+y DqEdSAJWoISBJ7faStXEeobm0fKNyZc9uOp99KH+Q0GoY0EZld6JS6gPxhWFXIy17Ag4 6xsTruVYZgmT3A9RdU2igpJfc0dzov8lMWZcQBEVAmNhXlqTUEgJKP/JT2cOuTWEHCcl E7Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3mkd4EzfQ5OW8XkjpTOaCD1r55MqLGDdrp4EDA3s4I4=; b=iGhcPdlHy1CNHkx4Wg7cgF53LQFjq/4U1KnEjbClCsY98Hk4t5JS3IIk+iffFr5TMo G0H10QIDtViN9fy6qnpePZ3jghX+v/OzLNjQHCIOK389ZKOXI4z27luKf2qC05gDSXwL hr4pf1E6CCbrKxAdeNYaQdE7yAI55hyZzIAgCFv5KvDW/LZ+3guTca0SfxQRK2SRWlhu fUyPgt06cAZj+C0M/Vk7ljRvJRxhb/DupjfkmfF0n0LqqXaw5bKEmet8d5uY2a5o/9J2 qO6aZWNkJYpMbm2MViOojhj64D0UIYa4zLvEL+DdL6T9MYGNSJdzSslnpWknbyG5T974 G0tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Uf39BjWf; 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 b12si18615464plx.159.2018.12.20.04.11.07; Thu, 20 Dec 2018 04:11:34 -0800 (PST) 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=@kernel.org header.s=default header.b=Uf39BjWf; 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 S1729864AbeLTJXT (ORCPT + 99 others); Thu, 20 Dec 2018 04:23:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:51942 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731499AbeLTJXQ (ORCPT ); Thu, 20 Dec 2018 04:23:16 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8E9A120656; Thu, 20 Dec 2018 09:23:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545297796; bh=VM8VmnhOGahDE9+80xpGj8GDOfEKcVOGVd1nn4qRQJM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Uf39BjWfA5D15qSb/JOmz0n5tWOZplwK6KHmpmobFvbA12V4UondNEvkQ5wlaTKQV SJGZQmv1mbK1KRWqcNMdcsUxzeD5XoWbkCD5jiLx+NozAgSWF7mfs5UxFugbxu+ub5 K9gkWOCNGbuOaRVpePbuP2A+DiKDZ8MdpF2tuaqk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linus Torvalds , Thomas Gleixner , Peter Zijlstra , Ingo Molnar , Sasha Levin Subject: [PATCH 4.9 07/61] timer/debug: Change /proc/timer_list from 0444 to 0400 Date: Thu, 20 Dec 2018 10:18:07 +0100 Message-Id: <20181220085844.024304430@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181220085843.743900603@linuxfoundation.org> References: <20181220085843.743900603@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 8e7df2b5b7f245c9bd11064712db5cb69044a362 ] While it uses %pK, there's still few reasons to read this file as non-root. Suggested-by: Linus Torvalds Acked-by: Thomas Gleixner Cc: Peter Zijlstra Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar Signed-off-by: Sasha Levin --- kernel/time/timer_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/time/timer_list.c b/kernel/time/timer_list.c index ef4f16e81283..1407ed20ea93 100644 --- a/kernel/time/timer_list.c +++ b/kernel/time/timer_list.c @@ -399,7 +399,7 @@ static int __init init_timer_list_procfs(void) { struct proc_dir_entry *pe; - pe = proc_create("timer_list", 0444, NULL, &timer_list_fops); + pe = proc_create("timer_list", 0400, NULL, &timer_list_fops); if (!pe) return -ENOMEM; return 0; -- 2.19.1