summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorVasiliy Kulikov <segoon@openwall.com>2012-04-25 16:01:51 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2012-04-25 21:26:34 -0700
commitdb7b122cf5f769046d410f82a1e9fe7006ed955a (patch)
tree22310d7b8bac92c1fcf88e521cd4ae47f076cfa9 /arch
parent65ed76010dfed3cb75c863c9052c367a1bacf80a (diff)
downloadlinux-db7b122cf5f769046d410f82a1e9fe7006ed955a.tar.bz2
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 <segoon@openwall.com> Cc: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Cc: Russell King <linux@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-ux500/mbox-db5500.c2
1 files changed, 1 insertions, 1 deletions
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)
{