]> err.no Git - systemd/commitdiff
selinux: move selinux_exit() to the main programs
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 16 Mar 2007 20:13:07 +0000 (21:13 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 16 Mar 2007 20:13:07 +0000 (21:13 +0100)
test-udev.c
udev_node.c
udevd.c
udevstart.c

index bbe50eeeb4c542f6d8be634026da91098b97c6e4..e40a4484367b1b6d35401cb8f63acb0a70b09f04 100644 (file)
@@ -175,6 +175,7 @@ int main(int argc, char *argv[], char *envp[])
 fail:
        udev_rules_cleanup(&rules);
        sysfs_cleanup();
+       selinux_exit();
 
 exit:
        logging_close();
index d069dfc4aada7ab57596be9a6281db431d8c3252..1632c2cc3ce8823a27deeaece3c3cc6618c02b11 100644 (file)
@@ -237,7 +237,6 @@ int udev_node_add(struct udevice *udev, struct udevice *udev_old)
        }
 
 exit:
-       selinux_exit();
        return retval;
 }
 
diff --git a/udevd.c b/udevd.c
index 2c92590dcd2e46e30cf4969db672335bca164d2c..4aad165d8a85c50f91a92344713e6dbda9b9ba76 100644 (file)
--- a/udevd.c
+++ b/udevd.c
@@ -1230,6 +1230,7 @@ int main(int argc, char *argv[], char *envp[])
 exit:
        udev_rules_cleanup(&rules);
        sysfs_cleanup();
+       selinux_exit();
 
        if (signal_pipe[READ_END] >= 0)
                close(signal_pipe[READ_END]);
index 6e1cb050c496318dfb845ef009f80223591a69ba..6ea18272ea013a0788571dfa546e51c89ce7bc71 100644 (file)
@@ -367,6 +367,7 @@ int main(int argc, char *argv[], char *envp[])
 
        udev_rules_cleanup(&rules);
        sysfs_cleanup();
+       selinux_exit();
        logging_close();
        return 0;
 }