/* /sys/kernel/debug/osip */
osip_dir = debugfs_create_dir("osip", NULL);
/* /sys/kernel/debug/osip/cmdline */
- (void) debugfs_create_file("cmdline", S_IFREG | S_IRUGO | S_IWUGO,
+ (void) debugfs_create_file("cmdline", S_IFREG | S_IRUGO | S_IWUSR | S_IWGRP,
osip_dir, (void *)0, &osip_cmdline_fops);
/* /sys/kernel/debug/osip/cmdline_pos */
- (void) debugfs_create_file("cmdline_pos", S_IFREG | S_IRUGO | S_IWUGO,
+ (void) debugfs_create_file("cmdline_pos", S_IFREG | S_IRUGO | S_IWUSR | S_IWGRP,
osip_dir, (void *)1, &osip_cmdline_fops);
/* /sys/kernel/debug/osip/decode */
(void) debugfs_create_file("decode", S_IFREG | S_IRUGO,
*
*/
static struct umevent_attribute data_0 =
- __ATTR(data_0_val, 0666, psb_umevent_attr_show_imp,
+ __ATTR(data_0_val, 0664, psb_umevent_attr_show_imp,
psb_umevent_attr_store_imp);
static struct umevent_attribute data_1 =
- __ATTR(data_1_val, 0666, psb_umevent_attr_show_imp,
+ __ATTR(data_1_val, 0664, psb_umevent_attr_show_imp,
psb_umevent_attr_store_imp);
static struct umevent_attribute data_2 =
- __ATTR(data_2_val, 0666, psb_umevent_attr_show_imp,
+ __ATTR(data_2_val, 0664, psb_umevent_attr_show_imp,
psb_umevent_attr_store_imp);
static struct umevent_attribute data_3 =
- __ATTR(data_3_val, 0666, psb_umevent_attr_show_imp,
+ __ATTR(data_3_val, 0664, psb_umevent_attr_show_imp,
psb_umevent_attr_store_imp);
static struct umevent_attribute data_4 =
- __ATTR(data_4_val, 0666, psb_umevent_attr_show_imp,
+ __ATTR(data_4_val, 0664, psb_umevent_attr_show_imp,
psb_umevent_attr_store_imp);
static struct umevent_attribute data_5 =
- __ATTR(data_5_val, 0666, psb_umevent_attr_show_imp,
+ __ATTR(data_5_val, 0664, psb_umevent_attr_show_imp,
psb_umevent_attr_store_imp);
static struct umevent_attribute data_6 =
- __ATTR(data_6_val, 0666, psb_umevent_attr_show_imp,
+ __ATTR(data_6_val, 0664, psb_umevent_attr_show_imp,
psb_umevent_attr_store_imp);
static struct umevent_attribute data_7 =
- __ATTR(data_7_val, 0666, psb_umevent_attr_show_imp,
+ __ATTR(data_7_val, 0664, psb_umevent_attr_show_imp,
psb_umevent_attr_store_imp);
/**
* define the structure used to seed our ktype.