From patchwork Fri Feb 4 12:23:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasiliy Kulikov X-Patchwork-Id: 531621 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p14CODF0002506 for ; Fri, 4 Feb 2011 12:24:14 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751812Ab1BDMXZ (ORCPT ); Fri, 4 Feb 2011 07:23:25 -0500 Received: from mail-fx0-f46.google.com ([209.85.161.46]:32973 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751535Ab1BDMXU (ORCPT ); Fri, 4 Feb 2011 07:23:20 -0500 Received: by mail-fx0-f46.google.com with SMTP id 20so2343499fxm.19 for ; Fri, 04 Feb 2011 04:23:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:date:message-id :x-mailer:in-reply-to:references; bh=PoJg06qyReL9V1nwstjmiRdjlbUgoCbNbxXoNuKSd44=; b=YWHQsUEDcyPIqJBPPfz2wqA2W44GsniBLfEs5AzXSl9QwFi2fmigsEDbi90bQeGpBl oAqd4W1awxOeyWo0k82H1R+Ch1aAIHq6mvpEXLC2tMTqoB/aqU/7ijlaIbLhTqqqB81C mEb08UadMsuD2gqQDm/7etUqXq6rAqBuvsOl8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; b=NoU0bue0RDBP3zc9T9N4q7l26RasqUJYlUVCTG1wkSFd5KQb3fikUz0I05Ki8FBL9v wND6rsX5Z/milACrHyDH70Pb+yQ/PR7R0CiYQ5oABK2bNueK81UXW7JQL1bJBPmwzf8l hpkxTOtsPPO7q1fBElqEPDK8EOIOoWEA/pNwA= Received: by 10.223.79.6 with SMTP id n6mr2386697fak.122.1296822199856; Fri, 04 Feb 2011 04:23:19 -0800 (PST) Received: from localhost (ppp85-141-141-135.pppoe.mtu-net.ru [85.141.141.135]) by mx.google.com with ESMTPS id n2sm199914fam.28.2011.02.04.04.23.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 04 Feb 2011 04:23:19 -0800 (PST) From: Vasiliy Kulikov To: linux-kernel@vger.kernel.org Cc: security@kernel.org, Kevin Hilman , Tony Lindgren , Russell King , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 02/20] mach-omap2: pm: world-writable debugfs timer files Date: Fri, 4 Feb 2011 15:23:16 +0300 Message-Id: X-Mailer: git-send-email 1.7.0.4 In-Reply-To: References: Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 04 Feb 2011 12:24:14 +0000 (UTC) diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c index 125f565..a5a83b3 100644 --- a/arch/arm/mach-omap2/pm-debug.c +++ b/arch/arm/mach-omap2/pm-debug.c @@ -637,14 +637,14 @@ static int __init pm_dbg_init(void) } - (void) debugfs_create_file("enable_off_mode", S_IRUGO | S_IWUGO, d, + (void) debugfs_create_file("enable_off_mode", S_IRUGO | S_IWUSR, d, &enable_off_mode, &pm_dbg_option_fops); - (void) debugfs_create_file("sleep_while_idle", S_IRUGO | S_IWUGO, d, + (void) debugfs_create_file("sleep_while_idle", S_IRUGO | S_IWUSR, d, &sleep_while_idle, &pm_dbg_option_fops); - (void) debugfs_create_file("wakeup_timer_seconds", S_IRUGO | S_IWUGO, d, + (void) debugfs_create_file("wakeup_timer_seconds", S_IRUGO | S_IWUSR, d, &wakeup_timer_seconds, &pm_dbg_option_fops); (void) debugfs_create_file("wakeup_timer_milliseconds", - S_IRUGO | S_IWUGO, d, &wakeup_timer_milliseconds, + S_IRUGO | S_IWUSR, d, &wakeup_timer_milliseconds, &pm_dbg_option_fops); pm_dbg_init_done = 1;