chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bus: merge sd_bus_get_owner() and sd_bus_get_owner_creds() into one call
[elogind.git]
/
src
/
core
/
selinux-setup.c
diff --git
a/src/core/selinux-setup.c
b/src/core/selinux-setup.c
index e9c0de92f1fb5157d665b97e238535d38104d2af..7a32ed59a0a8020c3f1b9431e119242eafc1d07d 100644
(file)
--- a/
src/core/selinux-setup.c
+++ b/
src/core/selinux-setup.c
@@
-58,9
+58,6
@@
int selinux_setup(bool *loaded_policy) {
cb.func_log = null_log;
selinux_set_callback(SELINUX_CB_LOG, cb);
cb.func_log = null_log;
selinux_set_callback(SELINUX_CB_LOG, cb);
- /* Make sure getcon() works, which needs /proc and /sys */
- mount_setup_early();
-
/* Already initialized by somebody else? */
r = getcon_raw(&con);
if (r == 0) {
/* Already initialized by somebody else? */
r = getcon_raw(&con);
if (r == 0) {
@@
-104,7
+101,7
@@
int selinux_setup(bool *loaded_policy) {
after_load = now(CLOCK_MONOTONIC);
log_info("Successfully loaded SELinux policy in %s.",
after_load = now(CLOCK_MONOTONIC);
log_info("Successfully loaded SELinux policy in %s.",
-
format_timespan(timespan, sizeof(timespan), after_load - before_load
));
+
format_timespan(timespan, sizeof(timespan), after_load - before_load, 0
));
*loaded_policy = true;
*loaded_policy = true;