diff options
Diffstat (limited to 'src/udev/udevadm.c')
-rw-r--r-- | src/udev/udevadm.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/udev/udevadm.c b/src/udev/udevadm.c index 492b2f4c25..befc3bad7b 100644 --- a/src/udev/udevadm.c +++ b/src/udev/udevadm.c @@ -23,6 +23,7 @@ #include "selinux-util.h" #include "string-util.h" #include "udev.h" +#include "udev-util.h" static int adm_version(struct udev *udev, int argc, char *argv[]) { printf("%s\n", PACKAGE_VERSION); @@ -87,14 +88,16 @@ int main(int argc, char *argv[]) { unsigned int i; int rc = 1, c; - udev = udev_new(); - if (udev == NULL) - goto out; - + udev_parse_config(); log_parse_environment(); log_open(); + mac_selinux_init(); + udev = udev_new(); + if (udev == NULL) + goto out; + while ((c = getopt_long(argc, argv, "+dhV", options, NULL)) >= 0) switch (c) { |