Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3866692pxb; Tue, 17 Nov 2020 05:45:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJy92YDl/T+WKJFnY5Q5zziejG2HBAP/SVABe3vX9hMvjLRckwpYDNq/7y8yKdmxXpIvz2CZ X-Received: by 2002:a05:6402:170e:: with SMTP id y14mr21230110edu.115.1605620745282; Tue, 17 Nov 2020 05:45:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605620745; cv=none; d=google.com; s=arc-20160816; b=tMGBFnO7w2x0xDq49i3GgarwX8L+jgF0OyuaBgyzJlCHRNN/rzaLfSMbfnL2204aBl vxD+YmP8/hYQmHeILnPb5VrWvEYQNM4bTU+40RmllXnRsWOKphUJ0bk9v6xixlnUKAp5 QNbqR0FJUsNinMlNWCKeIJzcEmPRafZk4V/0FSu0uXZnyDjSjx0NR3d5QaS+ya6Dd1TM GkZxl2pn6o/QnHkIb3MYfi9qPswb1cxz1x/bVl3+mLxX6mGdBqQg+WEuopF+D81jsKpw 7q+W/abTmDBT80RtW4ee3/RCKvnqwDhAUS5GxOfjlt3WsXit60gZHSlMRryoWOZFepEQ sF6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=uFIQ92PWvKlctTwjfgbTadk0egjNFM9kccaeAJzj5Zs=; b=pAqdNPXptnIhkYiAvXX6juRW+gFOvX0gCYD63m89qg3nONfFSErFPDEoVkt07LK7tv e3kKN21qGVtonKmp2pSzKGd5g3KszaE0hlbbG2UEc2JvLsq1J9C6a4JftNHE3XsGp/a/ lXD0tUU2kTT/cAxlzkbaunYAB0zN93TYmNEM4J2krqQhYhb8z1R4GPmwMXLRcqu3soKx H8+r1EjeM4eWqIT42EKazow+fU+DeQt3m8y1KxHadI7e5fk1syX9EcEMV6hCnOwruG7A sYSNgePz3GP8NaHrQN0K4Jw8f9efwKvGqFBPRAMvPhMzAQDQ/NgJYPtHkJ0tBQ2pLs7+ 8m7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kEYVCSGG; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id wr19si13351233ejb.218.2020.11.17.05.45.22; Tue, 17 Nov 2020 05:45:45 -0800 (PST) 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=@kernel.org header.s=default header.b=kEYVCSGG; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733081AbgKQNmg (ORCPT + 99 others); Tue, 17 Nov 2020 08:42:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:55078 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387440AbgKQNmb (ORCPT ); Tue, 17 Nov 2020 08:42:31 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 8CC9520729; Tue, 17 Nov 2020 13:42:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605620551; bh=8tw9+Xn/S8KkVCfwmBYzaM8x8dYawQMuzZce+Kn6gfI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kEYVCSGGaDoMyKhZRnpwWyAII8LCGf9YqrTl1hK7FQqBntx9SKWYdYFFdOdpKEQfW n/1yTO8AOOIdOTl/EVZSRpxm11T72OeZ6rxB1RestkYX0g1OMLZKuuoMYiEabfanpR 1KMdoHSn5pz8iZuLoU3LqLfumfskdDg9KZurgJ0k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Naveen Krishna Chatradhi , Guenter Roeck Subject: [PATCH 5.9 218/255] hwmon: (amd_energy) modify the visibility of the counters Date: Tue, 17 Nov 2020 14:05:58 +0100 Message-Id: <20201117122149.547521228@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122138.925150709@linuxfoundation.org> References: <20201117122138.925150709@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Naveen Krishna Chatradhi commit 60268b0e8258fdea9a3c9f4b51e161c123571db3 upstream. This patch limits the visibility to owner and groups only for the energy counters exposed through the hwmon based amd_energy driver. Cc: stable@vger.kernel.org Reviewed-by: Greg Kroah-Hartman Signed-off-by: Naveen Krishna Chatradhi Link: https://lore.kernel.org/r/20201112172159.8781-1-nchatrad@amd.com Signed-off-by: Guenter Roeck Signed-off-by: Greg Kroah-Hartman --- drivers/hwmon/amd_energy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/hwmon/amd_energy.c +++ b/drivers/hwmon/amd_energy.c @@ -209,7 +209,7 @@ static umode_t amd_energy_is_visible(con enum hwmon_sensor_types type, u32 attr, int channel) { - return 0444; + return 0440; } static int energy_accumulator(void *p)