#include <errno.h>
#include <selinux/selinux.h>
+#include "udev.h"
#include "udev_selinux.h"
-#include "logging.h"
static security_context_t prev_scontext = NULL;
* 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;