From: Vasiliy Kulikov Date: Thu, 12 Apr 2012 22:51:39 +0000 (+1000) Subject: arch/arm/mach-ux500/mbox-db5500.c: world-writable sysfs fifo file X-Git-Tag: next-20120417~2^2~129 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2c9e834bdca3cefc16035c46abfb2a37d63f7da0;p=karo-tx-linux.git arch/arm/mach-ux500/mbox-db5500.c: world-writable sysfs fifo file Don't allow everybody to use a modem. Signed-off-by: Vasiliy Kulikov Cc: Srinidhi Kasagar Cc: Linus Walleij Cc: Russell King Signed-off-by: Andrew Morton --- diff --git a/arch/arm/mach-ux500/mbox-db5500.c b/arch/arm/mach-ux500/mbox-db5500.c index 2b2d51caf9d8..0127490218cd 100644 --- a/arch/arm/mach-ux500/mbox-db5500.c +++ b/arch/arm/mach-ux500/mbox-db5500.c @@ -168,7 +168,7 @@ static ssize_t mbox_read_fifo(struct device *dev, return sprintf(buf, "0x%X\n", mbox_value); } -static DEVICE_ATTR(fifo, S_IWUGO | S_IRUGO, mbox_read_fifo, mbox_write_fifo); +static DEVICE_ATTR(fifo, S_IWUSR | S_IRUGO, mbox_read_fifo, mbox_write_fifo); static int mbox_show(struct seq_file *s, void *data) {