return (s - buf);
}
-#define ATTR_MODE 0644
static struct device_attribute __guid__ =
- __ATTR(guid, ATTR_MODE, sys_id_show, NULL);
+ __ATTR(guid, S_IRUSR | S_IRGRP | S_IROTH,
+ sys_id_show, NULL);
static struct device_attribute __uuid__ =
- __ATTR(uuid, ATTR_MODE, sys_id_show, NULL);
+ __ATTR(uuid, S_IRUSR | S_IRGRP | S_IROTH,
+ sys_id_show, NULL);
static struct device_attribute __name__ =
- __ATTR(name, ATTR_MODE, sys_id_show, NULL);
+ __ATTR(name, S_IRUSR | S_IRGRP | S_IROTH,
+ sys_id_show, NULL);
static struct attribute *sys_attrs[] = {
&__guid__.attr,