X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=udevstart.c;h=a381c411a80f437157ed38a622723f52ba531041;hp=0d9b4f4004513cc970ca6fb77f2e0a929207f727;hb=2f2c4fa442f33d7eaee02eda016d6149b9aa0be6;hpb=a4d5ca644ed8bc59274967c17981d7448a075c07 diff --git a/udevstart.c b/udevstart.c index 0d9b4f400..a381c411a 100644 --- a/udevstart.c +++ b/udevstart.c @@ -1,13 +1,9 @@ /* - * udevstart.c + * quick and dirty way to populate a /dev directory * + * Copyright (C) 2004 Harald Hoyer * Copyright (C) 2004 Greg Kroah-Hartman - * Copyright (C) 2004 Kay Sievers - * - * Quick and dirty way to populate a /dev with udev if your system - * does not have access to a shell. Based originally on a patch - * from: - * Harald Hoyer + * Copyright (C) 2004-2006 Kay Sievers * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the @@ -20,7 +16,7 @@ * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., - * 675 Mass Ave, Cambridge, MA 02139, USA. + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ @@ -40,6 +36,7 @@ #include "udev.h" #include "udev_rules.h" +#include "udev_selinux.h" static const char *udev_run_str; static const char *udev_log_str; @@ -123,7 +120,7 @@ static int add_device(const char *devpath) if (dev == NULL) return -1; - udev = udev_device_init(); + udev = udev_device_init(NULL); if (udev == NULL) return -1; @@ -339,6 +336,7 @@ int main(int argc, char *argv[], char *envp[]) logging_init("udevstart"); udev_config_init(); + selinux_init(); dbg("version %s", UDEV_VERSION); udev_run_str = getenv("UDEV_RUN"); @@ -369,6 +367,7 @@ int main(int argc, char *argv[], char *envp[]) udev_rules_cleanup(&rules); sysfs_cleanup(); + selinux_exit(); logging_close(); return 0; }