From 456cb387567da8a2beadf003dcbd874022dbc873 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 16 Mar 2007 21:13:07 +0100 Subject: [PATCH] selinux: move selinux_exit() to the main programs --- test-udev.c | 1 + udev_node.c | 1 - udevd.c | 1 + udevstart.c | 1 + 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test-udev.c b/test-udev.c index bbe50eee..e40a4484 100644 --- a/test-udev.c +++ b/test-udev.c @@ -175,6 +175,7 @@ int main(int argc, char *argv[], char *envp[]) fail: udev_rules_cleanup(&rules); sysfs_cleanup(); + selinux_exit(); exit: logging_close(); diff --git a/udev_node.c b/udev_node.c index d069dfc4..1632c2cc 100644 --- a/udev_node.c +++ b/udev_node.c @@ -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 2c92590d..4aad165d 100644 --- 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]); diff --git a/udevstart.c b/udevstart.c index 6e1cb050..6ea18272 100644 --- a/udevstart.c +++ b/udevstart.c @@ -367,6 +367,7 @@ int main(int argc, char *argv[], char *envp[]) udev_rules_cleanup(&rules); sysfs_cleanup(); + selinux_exit(); logging_close(); return 0; } -- 2.39.5