From patchwork Fri Feb 4 12:23:20 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasiliy Kulikov X-Patchwork-Id: 531791 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 p14CRhCH004512 for ; Fri, 4 Feb 2011 12:27:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751850Ab1BDMXf (ORCPT ); Fri, 4 Feb 2011 07:23:35 -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 S1751799Ab1BDMXY (ORCPT ); Fri, 4 Feb 2011 07:23:24 -0500 Received: by mail-fx0-f46.google.com with SMTP id 20so2343499fxm.19 for ; Fri, 04 Feb 2011 04:23:23 -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=4sTM2BPZal6hFL0epLuBADs5u/V9HzM4GiO4RbXSdWI=; b=DKSIBx2g82AUsL57Nn6FNp7lGzp4vZGysGJeJKds6b8NQ5175SyqWGxz4e5uInhGGH je7QOUyvLGKGPF8yAOlPyxGEOkHmlKjftPFpp6vzW/lQur3+v3ZidAh8p77gm/axcBCp 76LEHkwNophNPp2nKRgxGk5W08CdR68I2jfiQ= 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=FeJcKPfyageQK1t163ndaoJ5rJVzlb7gA9/3HzVlalBPuZ3GU5Lto+4Mnt8UUowalS l4O26DwEFXbvorRA3Vbk6pBc9JdreDANLyvMn1emtHpjq2Bygg9s6FjHfATngwOWHOV0 fRRkg50mvVzc91xqPgl3jYpHURAzBA12ETlH4= Received: by 10.223.114.14 with SMTP id c14mr11170129faq.103.1296822203223; Fri, 04 Feb 2011 04:23:23 -0800 (PST) Received: from localhost (ppp85-141-141-135.pppoe.mtu-net.ru [85.141.141.135]) by mx.google.com with ESMTPS id k6sm199444faa.30.2011.02.04.04.23.21 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 04 Feb 2011 04:23:22 -0800 (PST) From: Vasiliy Kulikov To: linux-kernel@vger.kernel.org Cc: security@kernel.org, Tony Lindgren , Russell King , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 03/20] mach-omap2: smartreflex: world-writable debugfs voltage files Date: Fri, 4 Feb 2011 15:23:20 +0300 Message-Id: <96a2b24548af3a68fde712c68b49e856e53ea1fc.1296818921.git.segoon@openwall.com> 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:27:43 +0000 (UTC) diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index c37e823..95ac336 100644 --- a/arch/arm/mach-omap2/smartreflex.c +++ b/arch/arm/mach-omap2/smartreflex.c @@ -900,7 +900,7 @@ static int __init omap_sr_probe(struct platform_device *pdev) return PTR_ERR(dbg_dir); } - (void) debugfs_create_file("autocomp", S_IRUGO | S_IWUGO, dbg_dir, + (void) debugfs_create_file("autocomp", S_IRUGO | S_IWUSR, dbg_dir, (void *)sr_info, &pm_sr_fops); (void) debugfs_create_x32("errweight", S_IRUGO, dbg_dir, &sr_info->err_weight); @@ -939,7 +939,7 @@ static int __init omap_sr_probe(struct platform_device *pdev) strcpy(name, "volt_"); sprintf(volt_name, "%d", volt_data[i].volt_nominal); strcat(name, volt_name); - (void) debugfs_create_x32(name, S_IRUGO | S_IWUGO, nvalue_dir, + (void) debugfs_create_x32(name, S_IRUGO | S_IWUSR, nvalue_dir, &(sr_info->nvalue_table[i].nvalue)); }