@@ -1673,9 +1673,9 @@ static ssize_t tun_show_group(struct device *dev, struct device_attribute *attr,
sprintf(buf, "-1\n");
}
-static DEVICE_ATTR(tun_flags, 0444, tun_show_flags, NULL);
-static DEVICE_ATTR(owner, 0444, tun_show_owner, NULL);
-static DEVICE_ATTR(group, 0444, tun_show_group, NULL);
+static DEVICE_ATTR(tun_flags, S_IRUSR | S_IRGRP | S_IROTH, tun_show_flags, NULL);
+static DEVICE_ATTR(owner, S_IRUSR | S_IRGRP | S_IROTH, tun_show_owner, NULL);
+static DEVICE_ATTR(group, S_IRUSR | S_IRGRP | S_IROTH, tun_show_group, NULL);
static struct attribute *tun_dev_attrs[] = {
&dev_attr_tun_flags.attr,