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:
parent
6eee03ef45
commit
456cb38756
@ -175,6 +175,7 @@ int main(int argc, char *argv[], char *envp[])
|
||||
fail:
|
||||
udev_rules_cleanup(&rules);
|
||||
sysfs_cleanup();
|
||||
selinux_exit();
|
||||
|
||||
exit:
|
||||
logging_close();
|
||||
|
@ -237,7 +237,6 @@ int udev_node_add(struct udevice *udev, struct udevice *udev_old)
|
||||
}
|
||||
|
||||
exit:
|
||||
selinux_exit();
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
1
udevd.c
1
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]);
|
||||
|
@ -367,6 +367,7 @@ int main(int argc, char *argv[], char *envp[])
|
||||
|
||||
udev_rules_cleanup(&rules);
|
||||
sysfs_cleanup();
|
||||
selinux_exit();
|
||||
logging_close();
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user