1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-30 06:25:25 +03:00

selinux: move selinux_exit() to the main programs

This commit is contained in:
Kay Sievers 2007-03-16 21:13:07 +01:00
parent 6eee03ef45
commit 456cb38756
4 changed files with 3 additions and 1 deletions

View 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();

View File

@ -237,7 +237,6 @@ int udev_node_add(struct udevice *udev, struct udevice *udev_old)
}
exit:
selinux_exit();
return retval;
}

View File

@ -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]);

View 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;
}