diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2007-03-16 21:13:07 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2007-03-16 21:13:07 +0100 |
commit | 456cb387567da8a2beadf003dcbd874022dbc873 (patch) | |
tree | d5166386130c2001353d111eb5324e4f15dea7ed | |
parent | 6eee03ef45fa3b04cf7ac94fd5bc5f982a33bfb7 (diff) |
selinux: move selinux_exit() to the main programs
-rw-r--r-- | test-udev.c | 1 | ||||
-rw-r--r-- | udev_node.c | 1 | ||||
-rw-r--r-- | udevd.c | 1 | ||||
-rw-r--r-- | udevstart.c | 1 |
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; } @@ -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; } |