X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=udev_selinux.c;h=1e1fdb961794409ed3f3d4be13e56ee9a4d86458;hb=d69b2203c37d32bbfbd81153a1fc99b55b7b6cbb;hp=f014ea55359d6653950a419fd33827dff76e2cf9;hpb=65e63a710e0369781c3632dd3fc95e4c72f9ab40;p=elogind.git diff --git a/udev_selinux.c b/udev_selinux.c index f014ea553..1e1fdb961 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;