chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] selinux: fix handling during creation of symlinks
[elogind.git]
/
udev_utils.c
diff --git
a/udev_utils.c
b/udev_utils.c
index 5cdfb1421d5d7e6fed15dde7e22a3b6dca08954f..74b55ed40697ef05e3f84366b864304bfb0093c4 100644
(file)
--- a/
udev_utils.c
+++ b/
udev_utils.c
@@
-89,9
+89,11
@@
int udev_init_device(struct udevice *udev, const char* devpath, const char *subs
}
}
- udev->mode = 0660;
- strcpy(udev->owner, "root");
- strcpy(udev->group, "root");
+ if (udev->type == DEV_BLOCK || udev->type == DEV_CLASS) {
+ udev->mode = 0660;
+ strcpy(udev->owner, "root");
+ strcpy(udev->group, "root");
+ }
return 0;
}