8 #include <selinux/selinux.h>
11 #include "udev_version.h"
12 #include "udev_selinux.h"
16 void selinux_add_node(char *filename)
20 if (is_selinux_enabled() > 0) {
21 security_context_t scontext;
22 retval = matchpathcon(filename, 0, &scontext);
24 dbg("matchpathcon(%s) failed\n", filename);
26 retval=setfilecon(filename,scontext);
28 dbg("setfiles %s failed with error '%s'",
29 filename, strerror(errno));