kernel-ark/fs/sysfs
Vivien Didelot d8bf8c92e8 sysfs: Only accept read/write permissions for file attributes
For sysfs file attributes, only read and write permissions make sense.
Mask provided attribute permissions accordingly and send a warning
to the console if invalid permission bits are set.

This patch is originally from Guenter [1] and includes the fixup
explained in the thread, that is printing permissions in octal format
and limiting the scope of attributes to SYSFS_PREALLOC | 0664.

[1] https://lkml.org/lkml/2015/1/19/599

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-03-25 13:27:57 +01:00
..
dir.c
file.c kernfs: remove KERNFS_STATIC_NAME 2015-02-13 21:21:36 -08:00
group.c sysfs: Only accept read/write permissions for file attributes 2015-03-25 13:27:57 +01:00
Kconfig
Makefile
mount.c kernfs: move the last knowledge of sysfs out from kernfs 2014-05-27 14:33:17 -07:00
symlink.c
sysfs.h