summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-03-16 21:13:07 +0100
committerKay Sievers <kay.sievers@vrfy.org>2007-03-16 21:13:07 +0100
commit456cb387567da8a2beadf003dcbd874022dbc873 (patch)
treed5166386130c2001353d111eb5324e4f15dea7ed
parent6eee03ef45fa3b04cf7ac94fd5bc5f982a33bfb7 (diff)
selinux: move selinux_exit() to the main programs
-rw-r--r--test-udev.c1
-rw-r--r--udev_node.c1
-rw-r--r--udevd.c1
-rw-r--r--udevstart.c1
4 files changed, 3 insertions, 1 deletions
diff --git a/test-udev.c b/test-udev.c
index bbe50eeeb4..e40a448436 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 d069dfc4aa..1632c2cc3c 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 2c92590dcd..4aad165d8a 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 6e1cb050c4..6ea18272ea 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;
}