summaryrefslogtreecommitdiff
path: root/udev_selinux.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_selinux.c')
-rw-r--r--udev_selinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_selinux.c b/udev_selinux.c
index f014ea5535..1e1fdb9617 100644
--- a/udev_selinux.c
+++ b/udev_selinux.c
@@ -152,7 +152,7 @@ void selinux_init(void)
* restoration creation purposes.
*/
if (is_selinux_running()) {
- matchpathcon_init_prefix(NULL, "/dev");
+ matchpathcon_init_prefix(NULL, udev_root);
if (getfscreatecon(&prev_scontext) < 0) {
err("getfscreatecon failed\n");
prev_scontext = NULL;