Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752970Ab1BDOAo (ORCPT ); Fri, 4 Feb 2011 09:00:44 -0500 Received: from mail-bw0-f46.google.com ([209.85.214.46]:46590 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752697Ab1BDOAm (ORCPT ); Fri, 4 Feb 2011 09:00:42 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=qoP3WfiYsh0+C7UWNWlw3qHSkLy3A6wE6dkIL2Di8aYWBfmVFWxKRVuhR9M2K/itld BKiKFvd6fc3LZ6GGuZiyAl9VnFEjnGHhsD+m/RWvrrg5qUmr1+DIjiLIBGXGNJ6H6jdN Fn4HqPoEgft+tR2/gDfjNM6fxHrUnnjGufYHs= Date: Fri, 4 Feb 2011 17:00:33 +0300 From: Vasiliy Kulikov To: linux-kernel@vger.kernel.org Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org, linux-media@vger.kernel.org, socketcan-core@lists.berlios.de, netdev@vger.kernel.org, platform-driver-x86@vger.kernel.org, acpi4asus-user@lists.sourceforge.net, rtc-linux@googlegroups.com, linux-scsi@vger.kernel.org, open-iscsi@googlegroups.com, linux-mtd@lists.infradead.org, security@kernel.org Subject: [PATCH 00/20] world-writable files in sysfs and debugfs Message-ID: <20110204140033.GA31184@albatros> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3142 Lines: 66 The search was made with trivial shell commands: find | xargs grep S_IWUGO find | xargs grep S_IWOTH I didn't precisely investigate how exactly one may damage the system/hardware because of issues number, maybe the harm is very limited in case of some of these drivers. One suspicious file is ./staging/speakup/speakup.h, but it explitly calls macros as world-writable. I didn't check what speakup's world-writable files provide because it requires some knowledge about the hardware. Vasiliy Kulikov (20): mach-omap2: mux: world-writable debugfs files mach-omap2: pm: world-writable debugfs timer files mach-omap2: smartreflex: world-writable debugfs voltage files mach-ux500: mbox-db5500: world-writable sysfs fifo file leds: lp5521: world-writable sysfs engine* files leds: lp5523: world-writable engine* sysfs files video: sn9c102: world-wirtable sysfs files mfd: ab3100: world-writable debugfs *_priv files mfd: ab3500: world-writable debugfs register-* files mfd: ab8500: world-writable debugfs register-* files misc: ep93xx_pwm: world-writable sysfs files net: can: at91_can: world-writable sysfs files net: can: janz-ican3: world-writable sysfs termination file platform: x86: acer-wmi: world-writable sysfs threeg file platform: x86: asus_acpi: world-writable procfs files platform: x86: tc1100-wmi: world-writable sysfs wireless and jogdial files rtc: rtc-ds1511: world-writable sysfs nvram file scsi: aic94xx: world-writable sysfs update_bios file scsi: iscsi: world-writable sysfs priv_sess file fs: ubifs: world-writable debugfs dump_* files arch/arm/mach-omap2/mux.c | 2 +- arch/arm/mach-omap2/pm-debug.c | 8 ++++---- arch/arm/mach-omap2/smartreflex.c | 4 ++-- arch/arm/mach-ux500/mbox-db5500.c | 2 +- drivers/leds/leds-lp5521.c | 14 +++++++------- drivers/leds/leds-lp5523.c | 20 ++++++++++---------- drivers/media/video/sn9c102/sn9c102_core.c | 6 +++--- drivers/mfd/ab3100-core.c | 4 ++-- drivers/mfd/ab3550-core.c | 6 +++--- drivers/mfd/ab8500-debugfs.c | 6 +++--- drivers/misc/ep93xx_pwm.c | 6 +++--- drivers/net/can/at91_can.c | 2 +- drivers/net/can/janz-ican3.c | 2 +- drivers/platform/x86/acer-wmi.c | 2 +- drivers/platform/x86/asus_acpi.c | 8 +------- drivers/platform/x86/tc1100-wmi.c | 2 +- drivers/rtc/rtc-ds1511.c | 2 +- drivers/scsi/aic94xx/aic94xx_init.c | 2 +- drivers/scsi/scsi_transport_iscsi.c | 2 +- fs/ubifs/debug.c | 6 +++--- 20 files changed, 50 insertions(+), 56 deletions(-) -- Vasiliy Kulikov http://www.openwall.com - bringing security into open computing environments -- 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/