Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753413AbYKYWpK (ORCPT ); Tue, 25 Nov 2008 17:45:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751528AbYKYWo6 (ORCPT ); Tue, 25 Nov 2008 17:44:58 -0500 Received: from vpnflf.ccur.com ([12.192.68.2]:50491 "EHLO gamx.iccur.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751386AbYKYWo5 (ORCPT ); Tue, 25 Nov 2008 17:44:57 -0500 Date: Tue, 25 Nov 2008 17:44:39 -0500 From: Joe Korty To: Thomas Gleixner , Ingo Molnar Cc: linux-kernel@vger.kernel.org Subject: [PATCH] Fix overbroad /proc/timer_list file permissions Message-ID: <20081125224439.GA24042@tsunami.ccur.com> Reply-To: Joe Korty Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 899 Lines: 25 Fix overbroad file permissions on /proc/timer_list. /proc/timer_list has 0644 permissions, this should be 0444. Signed-off-by: Joe Korty Index: 2.6.28-rc6/kernel/time/timer_list.c =================================================================== --- 2.6.28-rc6.orig/kernel/time/timer_list.c 2008-11-25 17:32:46.000000000 -0500 +++ 2.6.28-rc6/kernel/time/timer_list.c 2008-11-25 17:33:16.000000000 -0500 @@ -286,7 +286,7 @@ { struct proc_dir_entry *pe; - pe = proc_create("timer_list", 0644, NULL, &timer_list_fops); + pe = proc_create("timer_list", 0444, NULL, &timer_list_fops); if (!pe) return -ENOMEM; return 0; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/