From f53b45d71fa41b80737e6c28f0da5c08e10b9e9b Mon Sep 17 00:00:00 2001 From: yangyun Date: Wed, 29 Feb 2012 18:15:14 +0800 Subject: [PATCH] for pass cts.FileSystemPermissionTest --- arch/arm/mach-rk29/memcpy_dma.c | 2 +- drivers/input/touchscreen/rk29_i2c_goodix.c | 2 +- drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c | 2 +- drivers/video/hdmi/hdmi-sysfs.c | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-rk29/memcpy_dma.c b/arch/arm/mach-rk29/memcpy_dma.c index f7d4dc0964af..23b303714a6a 100755 --- a/arch/arm/mach-rk29/memcpy_dma.c +++ b/arch/arm/mach-rk29/memcpy_dma.c @@ -57,7 +57,7 @@ static ssize_t memcpy_dma_write(struct device *device, struct device_attribute * return 0; } -static DEVICE_ATTR(dmamemcpy, S_IRUGO|S_IALLUGO, memcpy_dma_read, memcpy_dma_write); +static DEVICE_ATTR(dmamemcpy, S_IRUGO|S_IXUGO, memcpy_dma_read, memcpy_dma_write); static int __devinit dma_memcpy_probe(struct platform_device *pdev) diff --git a/drivers/input/touchscreen/rk29_i2c_goodix.c b/drivers/input/touchscreen/rk29_i2c_goodix.c index 40f649cde589..20159e6fa23c 100755 --- a/drivers/input/touchscreen/rk29_i2c_goodix.c +++ b/drivers/input/touchscreen/rk29_i2c_goodix.c @@ -1629,7 +1629,7 @@ static ssize_t dbg_mode_store(struct class *cls,struct class_attribute *attr, co return _count; } -static CLASS_ATTR(debug, 0666, dbg_mode_show, dbg_mode_store); +static CLASS_ATTR(debug, 0664, dbg_mode_show, dbg_mode_store); static int dbg_sys_init(void) { diff --git a/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c b/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c index 2e54df136b93..90fcf8a52032 100644 --- a/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c +++ b/drivers/net/wireless/wifi_sys/rkwifi_sys_iface.c @@ -55,7 +55,7 @@ static ssize_t wifi_channel_write(struct class *cls, const char *_buf, size_t _c */ static struct class *rkwifi_class = NULL; -static CLASS_ATTR(chip, 0666, wifi_chip_read, NULL); +static CLASS_ATTR(chip, 0664, wifi_chip_read, NULL); int rkwifi_sysif_init(void) { diff --git a/drivers/video/hdmi/hdmi-sysfs.c b/drivers/video/hdmi/hdmi-sysfs.c index 9a7b44fe5fd8..a1ae79ebfdb3 100755 --- a/drivers/video/hdmi/hdmi-sysfs.c +++ b/drivers/video/hdmi/hdmi-sysfs.c @@ -248,9 +248,9 @@ static ssize_t hdmi_restore_init_attrs(struct device *dev, } #endif static struct device_attribute hdmi_attrs[] = { - __ATTR(state, 0777, hdmi_show_state_attrs, hdmi_restore_state_attrs), - __ATTR(enable, 0777, hdmi_show_switch_attrs, hdmi_restore_switch_attrs), - __ATTR(debug, 0777, hdmi_show_debug_attrs, hdmi_restore_debug_attrs), + __ATTR(state, 0774, hdmi_show_state_attrs, hdmi_restore_state_attrs), + __ATTR(enable, 0774, hdmi_show_switch_attrs, hdmi_restore_switch_attrs), + __ATTR(debug, 0774, hdmi_show_debug_attrs, hdmi_restore_debug_attrs), //__ATTR(init, 0777, NULL, hdmi_restore_init_attrs), }; int hdmi_create_attrs(struct hdmi *hdmi) -- 2.34.1